Jump to content

Unable to compile effect: default

Shannon Poole

Recommended Posts

I am trying to build babylon using the gulp tool. It all seemed to build fine but when I try to create a simple scene I get some errors.


Chrome console output:

BJS - [20:58:48]: Unable to compile effect: defaultBJS - [20:58:48]: Defines: #define LIGHT0#define POINTDIRLIGHT0#define UV1BJS - [20:58:48]: Optional defines:BJS - [20:58:48]: Error: ERROR: 0:4: 'ifdef' : syntax error

Any ideas?

Link to comment
Share on other sites



It seems gulp have a bug when it strip the bom character of the shaders files before it concat them (the # was striped instead). Maybe because of your os/editor if you have edited this files.


Anyway I will submit a patch after work ;)

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.

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.


  • Recently Browsing   0 members

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