- Home /
How to rotate a skybox in relation to the camera
Hey everybody, I am making a Gear Vr app that takes panoramas of an interior and allows you to view them. There are arrows in the app that once selected change the skybox to a different material, the first time around this works without and issue, but when backtracking it becomes apparent that the skyboxes are oriented the wrong way. How would I write a script that makes the skyboxes' rotation consistent with the camera? Thank you for the help.
See scottm361's reply to this question: http://forum.unity3d.com/threads/rotate-a-skybox.130639/
I don't think you can rotate Unity's skybox, so a workaround is to do as scottm361 suggested: Create a camera that renders the skybox only, rotate this camera and finally render the rest of the scene with your main camera. Alternatively you could create your own Skybox manually, but I think that should be unnecessary.
Your answer
Follow this Question
Related Questions
How to made a normal skybox with a rectangle part of solid color 0 Answers
What happens if I use the wrong shader for a skybox? 1 Answer
Skybox is reflecting from game object in some devices? 0 Answers
DAY and NIGHT Texture on Planet Earth 0 Answers
Can't apply Skybox material to Skybox type variable 1 Answer