Jump to content

WaterMaterial, when rotated


levere
 Share

Recommended Posts

WaterMaterial, when applied to a plane that is rotated -90 degrees about the x-axis, appears to have some trouble rendering correctly. Is this expected behavior? Does the water material expect a specific orientation, or is this a bug?

https://www.babylonjs-playground.com/#1SLLOJ#395

The above Playground example is the first demo from the Water Extensions help page (https://doc.babylonjs.com/extensions/water), with the three objects (ground, water and skybox) rotated on their side.

Link to comment
Share on other sites

@levere,

yes, the reflection camera and clip plane are set using the Y value of the normal vector to create the plane:

scene.clipPlane = BABYLON.Plane.FromPositionAndNormal(new BABYLON.Vector3(0, positiony + 0.05, 0), new BABYLON.Vector3(0, 1, 0));
            };
 
Let’s add this feature soon :)
thanks for this feedback !
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...