rendering false vbox 20 hbox 1 1 /sim/gui/dialogs/rendering/shader-warning 1 1.0 0.6 0.6 center hbox vbox 1 vbox hbox left true left wireframe /sim/rendering/wireframe dialog-apply wireframe left /sim/rendering/point-sprites dialog-apply hbox left frame-rate-throttle /sim/gui/frame-rate-throttled dialog-apply frame-rate-throttle nasal 46 frame-rate /sim/frame-rate-throttle-hz 0 15.0 70.0 1.0 true /sim/frame-rate-throttle-hz dialog-apply frame-rate /sim/frame-rate-throttle-hz 0 %2.0f Hz true /sim/frame-rate-throttle-hz left sim/current-view/field-of-view-compensation nasal 1 hbox left true table 0 0 left 0 1 3 texture-set fill true 180 sim/gui/dialogs/rendering/texture-set Region-specific Global Global alternative (DDS format) dialog-apply texture-set nasal reload-materials 1 0 left jetways /nasal/jetways/enabled dialog-apply jetways 2 0 left random-buildings /sim/rendering/random-buildings dialog-apply random-buildings 2 1 3 1.0 0.6 0.6 3 0 left random-objects /sim/rendering/random-objects dialog-apply random-objects 4 0 left random-vegetation /sim/rendering/random-vegetation dialog-apply random-vegetation 4 1 left vegetation-density 0 5.0 0.1 /sim/rendering/vegetation-density dialog-apply vegetation-density 4 2 left %.1f true /sim/rendering/vegetation-density /sim/rendering/random-vegetation /sim/rendering/shaders/skydome 5 0 left tree-shadows /sim/rendering/random-vegetation-shadows dialog-apply tree-shadows /sim/rendering/shaders/skydome 5 1 2 1.0 0.6 0.6 vbox 1 vbox 1 vbox 1 vbox hbox left true table left 0 0 custom-settings /sim/rendering/shaders/custom-settings dialog-apply custom-settings hbox 1 0 /sim/rendering/shaders/custom-settings quality-level 0.0 5.0 1.0 0.17 /sim/rendering/shaders/quality-level-internal dialog-apply quality-level (%1.0f) true /sim/rendering/shaders/quality-level-internal hbox 1 0 /sim/rendering/shaders/custom-settings /sim/rendering/shaders/skydome hbox 1 0 /sim/rendering/shaders/custom-settings /sim/rendering/shaders/skydome /sim/rendering/rembrandt/enabled hbox left true left particles /sim/rendering/particles dialog-apply particles left precipitation /sim/rendering/precipitation-gui-enable dialog-apply precipitation left 3d-clouds /sim/rendering/clouds3d-enable dialog-apply 3d-clouds hbox right /sim/rendering/clouds3d-enable cloud-density 0 1.0 /sim/rendering/clouds3d-density dialog-apply cloud-density property-toggle /sim/rendering/clouds3d-enable property-toggle /sim/rendering/clouds3d-enable /sim/rendering/clouds3d-enable %.2f true /sim/rendering/clouds3d-density hbox right /sim/rendering/clouds3d-enable cloud-vis-range 1000.0 150000.0 /sim/rendering/clouds3d-vis-range dialog-apply cloud-vis-range /sim/rendering/clouds3d-enable %.fm true /sim/rendering/clouds3d-vis-range table vbox 35 left 0 0 left skydome-scattering /sim/rendering/rembrandt/enabled /sim/rendering/shaders/skydome dialog-apply skydome-scattering hbox 2 0 left /sim/rendering/rembrandt/enabled left 1.0 0.6 0.6 /sim/rendering/rembrandt/enabled true /sim/rendering/rembrandt/enabled 1 vbox 1 var materials = { "Region-specific" : "Materials/regions/materials.xml", "Global" : "Materials/default/materials.xml", "Global alternative (DDS format)" : "Materials/dds/materials.xml" }; gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets")); props.globals.getNode("/sim/rendering/shaders/quality-level", 1).setAttribute("userarchive", 0); setprop("/sim/gui/frame-rate-throttled", (getprop("/sim/frame-rate-throttle-hz") > 0)); var matfile = getprop("/sim/rendering/materials-file"); foreach (var name; keys(materials)) { if (matfile == materials[name]) { setprop("/sim/gui/dialogs/rendering/texture-set", name); } } var vendor = getprop("/sim/rendering/gl-vendor"); if (vendor != nil) { vendor = string.lc(vendor); if (find("intel", vendor) != -1) { setprop("/sim/gui/dialogs/rendering/shader-warning", 1); } else { setprop("/sim/gui/dialogs/rendering/shader-warning", 0); } } var reload_props = [ "/sim/rendering/materials-file", "/sim/rendering/random-buildings", "/sim/rendering/random-objects", "/sim/rendering/random-vegetation", "/sim/rendering/random-vegetation-shadows", "/sim/rendering/vegetation-density", "/sim/rendering/clouds3d-enable", "/sim/rendering/clouds3d-density"]; var reload_vals = {}; foreach (var p; reload_props) { reload_vals[p] = getprop(p); }