x


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;    
}
more ▼

asked Feb 24 '12 at 06:20 PM

numberkruncher gravatar image

numberkruncher
1.9k 36 46 57

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1668
x273
x12

asked: Feb 24 '12 at 06:20 PM

Seen: 592 times

Last Updated: Feb 24 '12 at 06:20 PM