Hi I am animating the x,y,z coordinates of vertices in a sphere like manner with horizontal rings around the centre as attributes on a THREE.Points() object. It uses a MeshStandardMaterial() and I have then tilted the Points object slightly along the z axis with points.rotation.z = 0.2. Everything is as expected as shown below:
When I swap the MeshStandardMaterial() for ShaderMaterial() and rewrite the animation part into a shader the z tilt on the points object has gone. I have checked with an axis helper on the Points object and what appears to be happening is the object is still tilted but the shader animation is ignoring the tilt and is moving the vertices around the x, y, z coordinates of the scene rather than the tilted Points object.
As you can see in the picture the sphere and outer ring of particles should all be tilted on the same angle as the axis helpers which is attached the the tilted points object, however they are not tilted, only the axis helpers are tilted
.
Is there a quick fix for this or do I have to change the shader animation and factor in an overall rotation there?
Thanks.