0
Completed

Enable SF sky shaders to cast ambient light in unity 5

Ben Wilkinson 9 years ago updated by Freya Holmér (Developer) 9 years ago 5
Ive made a sky shader using SF, and put it in the sky slot in Unity 5s new lighting tab. It would be really cool if it could affect the ambient source colour in the same lighting tab.There is also a message in the lighting tab which says "shader of this material does not support skybox rendering". Could it?
Reflections work fine.

Side note - I cannot find a default unity sky shader that does affect ambient light when ambient source is set to sky...I have possibly not enabled a setting to get it to work?

Answer

Answer
Completed
Good catch!
In the next version, you now select between a set of presets when creating a new shader.
One of them is a sky shader, pre-configured like this :)
i upgraded from unity 5.0.0 to 5.0.1 and my shader doesn't work at all now :( Just comes out as a solid colour in a sky box. It works on a sphere. Any ideas?
I had the same problem -- This has to do with the sorting param in the shader. The message is cryptic at best -- I had to open up the source for the built-in default skybox shader and compare with the code generated by shader forge.

However once you spot the difference, this is EASILY fixed --

Under the shader properties in shader forge
- Select: Blending
- uncheck "Auto sort"
- select Background (1000)

The warning will go away.
Answer
Completed
Good catch!
In the next version, you now select between a set of presets when creating a new shader.
One of them is a sky shader, pre-configured like this :)
thanks dude, that's awesome. Its really great how active you are on shader forge. It helps make it an awesome tool.
Did you get a chance to consider my other sky related problem? http://shaderforge.userecho.com/topic/712382-sky-shader-unity-501/