Lune
January 22, 2016, 6:30pm
1
Hello, im researching about shaders that use LOD, i have seen the tag before but i dont fully understand how does it works.
I’m guessing that if the current pass is not compatible with the specified LOD then it will go to another pass? or will it use another subshader?
thanks!
I believe it’s pretty well described here:
http://docs.unity3d.com/Manual/SL-ShaderLOD.html
Unity goes through the shader fallback chain to find a shader with the appropriate LOD.
Lune
January 22, 2016, 6:47pm
3
Mostly in how the LOD number is used and how can i trigger the usage of different sub shaders according to different LOD levels.
My goal is to set up different LOD levels in quality settings and trigger different shaders with that automatically.
Lune
January 22, 2016, 8:57pm
4
So i found a solution to my question here:
it seems that you have to manually set the maximun LOD level with Shader.globalMaximumLOD where a high number in LOD means better quality and lower means a cheaper version of it, however it would be great that you could set it on the graphics quality settings profile.