Displacement map on a box

Hi everybody,

I do not know if it is a bug but the behavior of the displacement map seems not to be correct on a box.

Here’s a PG to illustrate what I mean : https://playground.babylonjs.com/#PTLSUP#3

I thought that each face of the cube would behave like the plane.

Is there something wrong in my code ?

Thanks in advance,

Boris

Your mesh must be tesselated for the displacement to be visible. You can use mesh.increaseVertices for that:

2 Likes

Thanks again and again and again for your help… :pray:

1 Like