Creating a water scene using JavaScript. I followed the official examples to set up the scene, but the reflection seems off after loading an external GLTF model.
Initially everything looks fine, but once I start moving the camera, things go awry.
I suspect it might be related to my code for camera movement, but I'm having trouble pinpointing the issue.
Here is the code snippet:
let div = document.body.children[0];
...
You can find the codepen Here.
Would greatly appreciate any insights or assistance. Thank you in advance!