I promised this a while back and so here it is: A proper fix to Unity’s Sky Shader and a Sky Shader for Maya too. The sky shader uses a cubemap in Maya and is mostly useful for quick previews. With a sufficiently high res cubemap it shouldn’t be an issue though.What i ended up having to do is invert the x component of the uvs for the sky shader (however they are provided) and then flip the Right and Left passes. Its kinda hacky but it works. And much better to fix in the sky shader one time than in each of the reflection/refraction shaders. I’ve also updated the old reflection/refraction shaders to work without the X flip by default now.

Maya CGFX File:

skybox.cgfx
File Size: 8 kb
File Type: cgfx

Download File


Unity SHADER File:

skybox.shader
File Size: 11 kb
File Type: shader

Download File


Leave a Reply

Your email address will not be published. Required fields are marked *