rotation - How to rotate a THREE.PlaneBufferGeometry with THREE.WaterShader and MirrorMesh -


in this example have three.planebuffergeometry watershader , water normals texture. if try delete rotation @ line 119, plane rotates expected shader , normals aren't working correct anymore distorted.

how can rotate without distortion?is changed @ watershader.js file?

i managed solve problem.. thought there changed @ watershader.js file. @ vertexshader (line 24) need change line 34 :

worldposition = mirrorcoord.xyz  

to

worldposition = mirrorcoord.xzy  

and problem solved!


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -