I’ll use water again JS cloned the geometry in the model and created it as water. When the camera turns to some angle, it appears black. What’s the reason? Is it the wrong way I use it? The following is the code when I create an object
const geo = child.geometry.clone()
new Water(
geo, {
textureWidth: 512,
textureHeight: 512,
waterNormals: this.textureloader.load('waternormals.jpg', function (texture) {
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
}),
sunDirection: new THREE.Vector3(),
sunColor: 0xffffff,
waterColor: 0x001e0f,
distortionScale: 3.7,
fog: true
}
)