shaders false vbox 20 hbox 1 1 hbox left true hbox vbox left left left /sim/rendering/rembrandt/enabled left /sim/rendering/rembrandt/enabled left /sim/rendering/rembrandt/enabled left /sim/rendering/rembrandt/enabled /sim/rendering/materials-file Materials/dds/materials.xml left left left left /sim/rendering/rembrandt/enabled vbox generic 0.0 1.0 1.0 0.5 true /sim/rendering/shaders/generic dialog-apply generic crop /sim/rendering/rembrandt/enabled 0.0 1.0 1.0 0.5 true /sim/rendering/shaders/crop dialog-apply crop landmass /sim/rendering/rembrandt/enabled 0.0 5.0 1.0 0.17 true /sim/rendering/shaders/landmass dialog-apply landmass contrails /sim/rendering/rembrandt/enabled 0.0 1.0 1.0 0.5 true /sim/rendering/shaders/contrails dialog-apply contrails transition /sim/rendering/rembrandt/enabled /sim/rendering/materials-file Materials/dds/materials.xml 0.0 1.0 1.0 0.5 true /sim/rendering/shaders/transition dialog-apply transition model 0.0 3.0 1.0 0.25 true /sim/rendering/shaders/model dialog-apply model urban 0.0 5.0 1.0 0.17 true /sim/rendering/shaders/urban dialog-apply urban water 0.0 5.0 1.0 0.17 true /sim/rendering/shaders/water dialog-apply water lights /sim/rendering/rembrandt/enabled 0.0 4.0 1.0 0.2 true /sim/rendering/shaders/lights dialog-apply lights 1.0 0.6 0.6 /sim/rendering/rembrandt/enabled left 1.0 0.6 0.6 /sim/rendering/rembrandt/enabled hbox left true if (props.globals.getNode("/sim/rendering/shaders/aircraft") != nil) { var group = cmdarg().getChildren("group")[4]; 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