Artistic Experiments
  • Home
  • Reel
  • Shaders
    • Stylized Shaders
    • Lighting Techniques
    • Shader Effects
    • Cubemaps
    • Pixel Lit Shaders (Basic)
    • Vertex Lit Shaders (Basic)
    • Unlit Shaders (Basic)
  • Tools
  • WIP
  • Contact

CG Shaders - Skyboxes

1/24/2014

0 Comments

 
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: 2 kb
File Type: cgfx
Download File

Unity SHADER File:

skybox.shader
File Size: 4 kb
File Type: shader
Download File

0 Comments



Leave a Reply.

    CG Shaders

    Shaders I've built as i teach myself CG. Feel free to download and use for whatever. If you like them you can buy me a beer or something.

    Archives

    December 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.