Jump to content

Unable to compile effect


enver90
 Share

Recommended Posts

So I've included babylon.js + gridMaterial.js but get the attached error when trying to create a new GridMaterial.

My code is extremely simple, one scene, engine and one GridMaterial.

A bit confused from the documentation (https://doc.babylonjs.com/extensions/Grid) all it says is to load the gridMaterial.js file, which I have done.

- Update: The issue arises when I try to change opacity `gridMaterial.opacity = 0.5;` - I believe I am loading the files correctly as I do not get any other errors if I remove the opacity.

 

 

 

 

effect.JPG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...