Jump to content

Water Shader Example (Latest Babylon)


reddozen
 Share

Recommended Posts

http://blogs.msdn.com/b/eternalcoding/archive/2013/08/06/babylon-js-creating-a-convincing-world-for-your-game-with-custom-shaders-height-maps-and-skyboxes.aspx

 

I cannot get this example shader to work with Babylon 1.8.0

 

Unable to compile effect: water
Ray(vertexSourceCode=undefined, fragmentSourceCode=undefined, attributesNames=undefined, defines=undefined, optionalDefines=undefined, useFallback=undefined)babylon.1.8.0.js (line 1)
Ray(fragmentCode="\r\n#ifdef GL_ES\r\nprecisi...ec4(finalColor, 1.);\r\n}")babylon.1.8.0.js (line 1)
Ray()babylon.1.8.0.js (line 1)
Link to comment
Share on other sites

I used the one from worldmonger after I tested it and found it was working. I'm not sure what is causing the problem with the one from the blog, but if it's not your blog, you may want to put a disclaimer on the site that it doesn't work with the latest versions. I wasn't able to figure out the problem on my own.

Link to comment
Share on other sites

  • 3 weeks later...

Has there been progress on this?  Could somebody please post/publish the updated shader and/or updated waterMaterial.js... if available?  THANKS!  I might be running into the dreaded XHR allowed-mimetypes problem again... here...

 

this._effect = engine.createEffect("./Water/water", (etc)

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...