[HELP] Replicating the skybox effect with a Quad
Hi everyone and thanks for your time.
Im trying to replicate a skybox with a Quad. How? By scrolling the image based on the camera deltaRotation/angular velocity and plug it into:
Vector2 offset = new Vector2 (angularVelocityX * Time.time, 0);
myRenderer.material.mainTextureOffset = offset;
The Quad is a child of the camera and it's local transform.position = (0,0,100), so that way it stays always in front of the camera regardless of the movement and the rotation of the camera. I thought it would be an easy process, but after struggling a lot and thinking that my math was flawed, I downloaded a project whose sole purpose is to test a script that calculates the angular velocity and it works. I plugged said script to my project and the scrolling isn't working at all. It moves almost randomly.
Are there any ideas that you peeps have? Which value should I pug in as the offset?
Thank you for your time