- Home /
What happens if I use the wrong shader for a skybox?
I once created a new material, set a texture to that material and set the shader to Particles Additive (or something like that). When I went to the Lighting window, it said "Shader for this material does not support skybox rendering". But I did it anyways. I set the skybox to this material. And it actually worked. To be honest, my game actually doesn't look that bad. Should I keep it this way? Will there be consequences since I'm using a shader that is not compatible with skybox?
Or should I just do it the normal way (by setting material shader to skybox)?
Answer by danw_unity · Jan 16, 2017 at 01:35 PM
Hi,
The warning message "Shader for this material does not support skybox rendering" only means that the shader has not been tagged as a skybox or background shader in one of a few ways, three of which are:
It has a name containing "Skybox" (case sensitive)
It is tagged "RenderType" = "Background"
It is tagged "PreviewType" = "Skybox"
The warning doesn't know about what your shader actually does. As long as it is suitable for rendering after the opaque objects in your scene, you should be fine.
Dan
Unity Support