I have a box that is a particle emitter, I want it to always follow the x and z axis of the camera. I tried to make code inside the loop, but it says the variable was not defined.
That´s my 2 lines of code:
block_snow.position.x = camera.position.x;
block_snow.position.z = camera.position.z;
This block exists and is working perfectly, it only gives error when I add these lines into runRenderLoop.
Thanks!!!