Jump to content

BABYLON.serializeAsTexture() is undefined


Eric McG
 Share

Recommended Posts

Hi,

I'm trying to use the waterMaterial as shown in the tutorial found here: http://doc.babylonjs.com/extensions/Water.

In the tutorial it refers to the waterMaterial.js file located here:  https://github.com/BabylonJS/Babylon.js/blob/master/materialsLibrary/dist/babylon.waterMaterial.js.

In the waterMaterial.js file there is a call to BABYLON.serializeAsTexture().

When I use the waterMaterial.js file, my scene (http://n0code.net/bc/csci305/water_scene.html) won't render and complains that BABYLON.serializeAsTexture() is undefined.

I'm using http://cdn.babylonjs.com/2-3/babylon.js and can't find serializeAsTexture() defined in the babylon.js file.  Can anyone tell me if I'm using the wrong babylon.js file or where I'm going wrong? Thanks!!!

~Eric

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