- Home /
Question by
numberkruncher · Feb 24, 2012 at 06:20 PM ·
shadershadersangrybots
Why does AngryBots `QualityManager` alter shader LOD twice?
The developers of AngryBots have altered shader LOD based upon the target hardware by changing Shader.globalMaximumLOD
(which makes complete sense). But they have also enumerated through all shaders and applied maximumLOD
manually.
According to the documentation Shader.globalMaximumLOD
applies globally to all shaders. So why have they chosen to do it this way?
Source from Angry Bots:
Shader.globalMaximumLOD = quality;
for (var s : Shader in shaders.shaders) {
s.maximumLOD = quality;
}
Comment
Your answer
Follow this Question
Related Questions
How to use mesh data in shader 0 Answers
Shader Programming Course 2 Answers
Is it possible to avoid writing to certain g-buffers? 1 Answer
Shader float4 component values computing strangely 0 Answers
Shader issue with a 170 upper angle 0 Answers