1
0
Fork 0

Bug-fix: cap model shader quality to 1.0

When using the slider, model shader should be capped to 1, not 3.
This commit is contained in:
James Turner 2014-01-18 08:47:33 +00:00
parent 0b6dbe9ad0
commit 510357492d

View file

@ -1410,13 +1410,10 @@ var update_shader_settings = func() {
setprop("/sim/rendering/shaders/landmass",qualityLvl);
setprop("/sim/rendering/shaders/urban",qualityLvl);
setprop("/sim/rendering/shaders/water",qualityLvl);
if (qualityLvl >= 3.0){
qualityLvl = 3.0;
}
setprop("/sim/rendering/shaders/model",qualityLvl);
if (qualityLvl >= 1.0){
qualityLvl = 1.0;
}
setprop("/sim/rendering/shaders/model",qualityLvl);
setprop("/sim/rendering/shaders/contrails",qualityLvl);
setprop("/sim/rendering/shaders/crop",qualityLvl);
setprop("/sim/rendering/shaders/generic",qualityLvl);