shaders-lightfield false vbox 20 hbox 1 1 hbox left true hbox right left landmass 0.0 5.0 1.0 0.17 true /sim/rendering/shaders/landmass dialog-apply landmass 55 hbox right water 0.0 5.0 1.0 0.17 true /sim/rendering/shaders/water dialog-apply water 55 hbox /local-weather/tiles/tile-counter left true hbox right /local-weather/tiles/tile-counter mie-factor 0.0 0.01 0.001 true /sim/rendering/mie dialog-apply mie-factor %.3f true /sim/rendering/mie hbox right /local-weather/tiles/tile-counter rayleigh-factor 0.0 0.001 0.0001 /sim/rendering/rayleigh dialog-apply rayleigh-factor %.4f true /sim/rendering/rayleigh hbox right /local-weather/tiles/tile-counter density-factor 0.0 1.0 0.1 /sim/rendering/dome-density dialog-apply density-factor %.1f true /sim/rendering/dome-density hbox left true if (props.globals.getNode("/sim/rendering/shaders/aircraft") != nil) { var group = cmdarg().getChildren("group")[9]; group.removeChildren("slider"); group.removeChildren("hrule"); group.removeChildren("text"); var shaders = props.globals.getNode("/sim/rendering/shaders/aircraft").getChildren(); for(i=0; size(shaders) > i; i+=1) { var fraction = 0.5; var min = 0; var max = 1; var step = 1; var name = shaders[i].getNode("name"); if (shaders[i].getNode("step") != nil){ step = shaders[i].getNode("step"); } if (shaders[i].getNode("min") != nil){ min = shaders[i].getNode("min"); } if (shaders[i].getNode("max") != nil){ max = shaders[i].getNode("max"); } if (min != nil and max != nil and step != nil){ fraction = step/(max+step); } var target = group.getChild("slider", i, 1); props.copy(group.getNode("slider-template"), target); target.getNode("label").setValue(name != nil ? name.getValue() : (shaders[i].getName())); target.getNode("name").setValue("aircraftshader"~i); target.getNode("binding").getNode("object-name").setValue("aircraftshader"~i); target.getNode("min").setValue(min); target.getNode("max").setValue(max); target.getNode("step").setValue(step); target.getNode("fraction").setValue(fraction); target.getNode("property").setValue(shaders[i].getPath()~"/quality-level"); } } vbox left dialog-apply hbox