Converting Wave Effects from THREE.js to BabylonJS: Playground Help

I’m seeking help to adapt a wave effect in cloud points, originally created in THREE.js project, to BabylonJS.

I’m struggling with updating the vertex shader correctly. Here’s my BabylonJS Playground link for reference: BabylonJS Playground.

Additionally, here’s the original example’s code on CodeSandbox: Waves by Value Noise on CodeSandbox. Any suggestions or ideas to make this conversion successful would be greatly appreciated.

1 Like

In Threejs, Z is up, whereas it is Y in Babylon.js. So, you must update the vertex shader to take this into account:

3 Likes

Thank you!