16 <label>Rendering options</label>
24 <pref-width>16</pref-width>
25 <pref-height>16</pref-height>
30 <command>dialog-close</command>
38 <halign>center</halign>
47 <label>General</label>
51 <stretch>true</stretch>
57 <label>Wireframe</label>
58 <name>wireframe</name>
59 <property>/sim/rendering/wireframe</property>
61 <command>dialog-apply</command>
62 <object-name>wireframe</object-name>
70 <label>Lighting</label>
74 <stretch>true</stretch>
80 <label>Sun/Moon horizon effect</label>
81 <property>/sim/rendering/horizon-effect</property>
83 <command>dialog-apply</command>
90 <label>Use point sprites for runway lights (requires restart)</label>
91 <property>/sim/rendering/point-sprites</property>
93 <command>dialog-apply</command>
100 <label>Enhanced runway lighting</label>
101 <property>/sim/rendering/enhanced-lighting</property>
103 <command>dialog-apply</command>
108 <halign>left</halign>
109 <label>Runway light distance attenuation</label>
110 <property>/sim/rendering/distance-attenuation</property>
112 <command>dialog-apply</command>
117 <halign>left</halign>
118 <label>Specular reflections on objects</label>
119 <property>/sim/rendering/specular-highlight</property>
121 <command>dialog-apply</command>
127 <layout>hbox</layout>
129 <label>Objects</label>
130 <halign>left</halign>
133 <stretch>true</stretch>
138 <halign>left</halign>
139 <label>Particles (smoke, dust, spray)</label>
140 <name>particles</name>
141 <property>/sim/rendering/particles</property>
143 <command>dialog-apply</command>
144 <object-name>particles</object-name>
149 <halign>left</halign>
150 <label>Precipitation</label>
151 <name>precipitation</name>
152 <property>/sim/rendering/precipitation-gui-enable</property>
154 <command>dialog-apply</command>
155 <object-name>precipitation</object-name>
162 <halign>left</halign>
163 <label>Lightning</label>
164 <property>/sim/rendering/lightning-enable</property>
166 <command>dialog-apply</command>
173 <halign>left</halign>
174 <label>Random objects</label>
175 <name>random-objects</name>
176 <property>/sim/rendering/random-objects</property>
178 <command>dialog-apply</command>
179 <object-name>random-objects</object-name>
182 <command>reinit</command>
183 <subsystem>tile-manager</subsystem>
188 <halign>left</halign>
189 <label>Random vegetation</label>
190 <name>random-vegetation</name>
191 <property>/sim/rendering/random-vegetation</property>
193 <command>dialog-apply</command>
194 <object-name>random-vegetation</object-name>
197 <command>reinit</command>
198 <subsystem>tile-manager</subsystem>
203 <layout>hbox</layout>
204 <halign>right</halign>
206 <label>Vegetation density</label>
209 <name>vegetation-density</name>
212 <property>/sim/rendering/vegetation-density</property>
214 <command>dialog-apply</command>
215 <object-name>vegetation-density</object-name>
219 <label>12345678</label>
220 <format>%.2f</format>
222 <property>/sim/rendering/vegetation-density</property>
227 <halign>left</halign>
228 <label>Animated jetways</label>
230 <property>/nasal/jetways/enabled</property>
232 <command>dialog-apply</command>
233 <object-name>jetways</object-name>
238 <layout>hbox</layout>
240 <label>Clouds</label>
241 <halign>left</halign>
244 <stretch>true</stretch>
251 <halign>left</halign>
252 <label>2D clouds</label>
253 <property>/sim/rendering/bump-mapping</property>
255 <command>dialog-apply</command>
262 <halign>left</halign>
263 <label>3D clouds</label>
264 <name>3d-clouds</name>
265 <property>/sim/rendering/clouds3d-enable</property>
267 <command>dialog-apply</command>
268 <object-name>3d-clouds</object-name>
273 <layout>hbox</layout>
274 <halign>right</halign>
276 <label>Cloud density</label>
278 <property>/sim/rendering/clouds3d-enable</property>
282 <name>cloud-density</name>
284 <property>/sim/rendering/clouds3d-enable</property>
288 <property>/sim/rendering/clouds3d-density</property>
290 <command>dialog-apply</command>
291 <object-name>cloud-density</object-name>
294 <command>property-toggle</command>
295 <property>/sim/rendering/clouds3d-enable</property>
298 <command>property-toggle</command>
299 <property>/sim/rendering/clouds3d-enable</property>
304 <property>/sim/rendering/clouds3d-enable</property>
306 <label>12345678</label>
307 <format>%.2f</format>
309 <property>/sim/rendering/clouds3d-density</property>
314 <layout>hbox</layout>
315 <halign>right</halign>
317 <label>Cloud visibility range</label>
319 <property>/sim/rendering/clouds3d-enable</property>
323 <name>cloud-vis-range</name>
325 <property>/sim/rendering/clouds3d-enable</property>
329 <property>/sim/rendering/clouds3d-vis-range</property>
331 <command>dialog-apply</command>
332 <object-name>cloud-vis-range</object-name>
337 <property>/sim/rendering/clouds3d-enable</property>
339 <label>12345678</label>
340 <format>%.fm</format>
342 <property>/sim/rendering/clouds3d-vis-range</property>
347 <layout>vbox</layout>
356 <layout>vbox</layout>
359 <layout>hbox</layout>
361 <label>Shader effects</label>
362 <halign>left</halign>
365 <stretch>true</stretch>
370 <layout>vbox</layout>
374 <label>This slider overrides custom settings as set in</label>
375 <halign>left</halign>
379 <label>the (advanced) Shader Options dialog.</label>
380 <halign>left</halign>
385 <layout>hbox</layout>
388 <label>Performance</label>
391 <name>quality-level</name>
395 <fraction>0.17</fraction>
396 <property>/sim/rendering/shaders/quality-level</property>
398 <command>dialog-apply</command>
399 <object-name>quality-level</object-name>
403 <label>Quality</label>
406 <label>12345678</label>
407 <format>(%1.0f)</format>
409 <property>/sim/rendering/shaders/quality-level</property>
414 <layout>hbox</layout>
416 <legend>Shader Options</legend>
418 <command>dialog-show</command>
419 <dialog-name>shaders</dialog-name>
424 <layout>vbox</layout>
428 <property>/sim/rendering/shaders/quality-level</property>
431 <label>Adjust the slider </label>
432 <halign>left</halign>
442 <property>/sim/rendering/shaders/quality-level</property>
445 <label>to enable shaders.</label>
446 <halign>left</halign>
457 <layout>hbox</layout>
459 <label>Experimental effects</label>
460 <halign>left</halign>
468 <stretch>true</stretch>
473 <layout>vbox</layout>
475 <halign>left</halign>
476 <label>Skydome scattering</label>
477 <name>skydome-scattering</name>
478 <property>/sim/rendering/shaders/skydome</property>
480 <command>dialog-apply</command>
481 <object-name>skydome-scattering</object-name>
487 <layout>hbox</layout>
488 <halign>right</halign>
490 <label>Mie factor</label>
492 <property>/sim/rendering/shaders/skydome</property>
496 <name>mie-factor</name>
498 <property>/sim/rendering/shaders/skydome</property>
503 <property>/sim/rendering/mie</property>
505 <command>dialog-apply</command>
506 <object-name>mie-factor</object-name>
511 <property>/sim/rendering/shaders/skydome</property>
513 <label>12345678</label>
514 <format>%.3f</format>
516 <property>/sim/rendering/mie</property>
521 <layout>hbox</layout>
522 <halign>right</halign>
524 <label>Rayleigh factor</label>
526 <property>/sim/rendering/shaders/skydome</property>
530 <name>rayleigh-factor</name>
532 <property>/sim/rendering/shaders/skydome</property>
537 <property>/sim/rendering/rayleigh</property>
539 <command>dialog-apply</command>
540 <object-name>rayleigh-factor</object-name>
545 <property>/sim/rendering/shaders/skydome</property>
547 <label>12345678</label>
548 <format>%.4f</format>
550 <property>/sim/rendering/rayleigh</property>
555 <layout>hbox</layout>
556 <halign>right</halign>
558 <label>Density factor</label>
560 <property>/sim/rendering/shaders/skydome</property>
564 <name>density-factor</name>
566 <property>/sim/rendering/shaders/skydome</property>
571 <property>/sim/rendering/dome-density</property>
573 <command>dialog-apply</command>
574 <object-name>density-factor</object-name>
579 <property>/sim/rendering/shaders/skydome</property>
581 <label>12345678</label>
582 <format>%.1f</format>
584 <property>/sim/rendering/dome-density</property>
598 <legend>Close</legend>
599 <default>true</default>
602 <command>dialog-close</command>
608 gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
610 # overwrite custom shader settings on quality-slider input
611 _setlistener("/sim/rendering/shaders/quality-level", func {
612 var qualityLevel = getprop("/sim/rendering/shaders/quality-level");
613 setprop("/sim/rendering/shaders/landmass",qualityLevel);
614 setprop("/sim/rendering/shaders/urban",qualityLevel);
615 setprop("/sim/rendering/shaders/water",qualityLevel);
616 if (qualityLevel >= 3.0){
619 setprop("/sim/rendering/shaders/model",qualityLevel);
620 if (qualityLevel >= 1.0){
623 setprop("/sim/rendering/shaders/contrails",qualityLevel);
624 setprop("/sim/rendering/shaders/crop",qualityLevel);
625 setprop("/sim/rendering/shaders/generic",qualityLevel);
626 setprop("/sim/rendering/shaders/transition",qualityLevel);