1
0
Fork 0

Add lights shader to overall quality slider

This commit is contained in:
Gijs de Rooy 2018-09-13 11:40:00 +02:00
parent eec7ca2fbd
commit 41aaff7a89

View file

@ -1466,9 +1466,11 @@ var update_shader_settings = func() {
setprop("/sim/rendering/shaders/landmass",qualityLvl); setprop("/sim/rendering/shaders/landmass",qualityLvl);
setprop("/sim/rendering/shaders/urban",qualityLvl); setprop("/sim/rendering/shaders/urban",qualityLvl);
setprop("/sim/rendering/shaders/water",qualityLvl); setprop("/sim/rendering/shaders/water",qualityLvl);
if (qualityLvl >= 1.0){ if (qualityLvl >= 4.0)
qualityLvl = 4.0;
setprop("/sim/rendering/shaders/lights",qualityLvl);
if (qualityLvl >= 1.0)
qualityLvl = 1.0; qualityLvl = 1.0;
}
setprop("/sim/rendering/shaders/model",qualityLvl); setprop("/sim/rendering/shaders/model",qualityLvl);
setprop("/sim/rendering/shaders/contrails",qualityLvl); setprop("/sim/rendering/shaders/contrails",qualityLvl);
setprop("/sim/rendering/shaders/crop",qualityLvl); setprop("/sim/rendering/shaders/crop",qualityLvl);