So i’ve been trying to figure out the best way to get a nice scrolling background and a skybox seemed the best solution.
I’ve made a 2nd camera in my game. My main camera is orthographic since it’s a 2d game.
As far as i know i have done everything correctly, set the depth of the background camera lower than the main camera and added a rotation script to it.
Everything works fine but when the background scrolls it seems weird, it’s not flat and it looks kind of weird. I know that’s the property of a skybox but is there any way to fix this?
The script i’ve added in case anyone wants to see it :
public float rotateSpeed = 0.5f;
void Update () {
Quaternion rot = transform.rotation;
float y = rot.eulerAngles.y;
y += rotateSpeed * Time.deltaTime;
rot = Quaternion.Euler (0,y,0);
transform.rotation = rot;
}
(This is attached to the background camera)
Thanks to anyone willing to help!