WaterMaterial, when rotated

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?


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.

Share this post

Link to post
Share on other sites


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 !

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.