Showing 1 changed files with 12 additions and 1 deletions
+12 -1
flightgear/fgfs_function
... ...
@@ -650,7 +650,18 @@ EOH
650 650
                     ;;
651 651
                 --ortho)
652 652
                     echo 81 utilise Orthoscenery > /dev/null
653
-                    fgfs_args+=("--prop:/sim/rendering/photoscenery/enabled=true")
653
+                    fgfs_args+=("--prop:bool:/sim/rendering/photoscenery/enabled=true")
654
+                    ;;
655
+                --hdr)
656
+                    echo 82 utilise le compositor HDR > /dev/null
657
+                    local compositor=Compositor/HDR/hdr
658
+                    if test -r $fgfs_source/fgdata/$compositor.xml; then
659
+                        fgfs_args+=("--compositor=$compositor")
660
+                        fgfs_args+=("--prop:bool:/sim/rendering/osm-buildings=false")
661
+                        fgfs_args+=("--prop:bool:/sim/rendering/random-buildings=false")
662
+                    else
663
+                        echo "Compositor $compositor inaccessible"
664
+                    fi
654 665
                     ;;
655 666
                 *)
656 667
                     completion_source="$FGDIR/install/flightgear/share/zsh/site-functions/_fgfs"