Trouble with applyDisplacementMap

Hello! Can anyone help me? I have some trouble with dispacement map, when i uncomment line 78
model.forceSharedVertices();
it works, but incorrectly.
Here PG link :
https://www.babylonjs-playground.com/#96ZPVV#7

Here is your fix:
MOM_WebXR | Babylon.js Playground (babylonjs-playground.com)

The loaded mesh is using shared buffers and thus you have to force the update and not flag the data as updatable (as this is not enough)

Now I understand, thank you so much!

1 Like