From d02ce108018bedaf26e92085f1df3b0543d1797f Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sat, 29 Jan 2022 15:05:57 +0100 Subject: [PATCH] Add generic combined ALS procedural lights and Compositor lights --- Aircraft/Generic/light.ac | 24 +++++ Aircraft/Generic/pointlight.xml | 151 +++++++++++++++++++++++++++++++ Aircraft/Generic/spotlight.xml | 155 ++++++++++++++++++++++++++++++++ 3 files changed, 330 insertions(+) create mode 100644 Aircraft/Generic/light.ac create mode 100644 Aircraft/Generic/pointlight.xml create mode 100644 Aircraft/Generic/spotlight.xml diff --git a/Aircraft/Generic/light.ac b/Aircraft/Generic/light.ac new file mode 100644 index 000000000..8bf59a79f --- /dev/null +++ b/Aircraft/Generic/light.ac @@ -0,0 +1,24 @@ +AC3Db +MATERIAL "DefaultWhite" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0.5 0.5 0.5 shi 64 trans 0 +MATERIAL "DefaultWhite.001" rgb 1 1 1 amb 0.2 0.2 0.2 emis 0 0 0 spec 0.025 0.025 0.025 shi 50 trans 0.1 +OBJECT world +kids 1 +OBJECT poly +name "light" +data 8 +Mesh.001 +crease 30.000000 +numvert 4 +-2e-06 -1 -1 +0 1 -1 +0 -1 1 +2e-06 1 1 +numsurf 1 +SURF 0x20 +mat 1 +refs 4 +1 0.0 0.0 +0 0.0 0.0 +2 0.0 0.0 +3 0.0 0.0 +kids 0 diff --git a/Aircraft/Generic/pointlight.xml b/Aircraft/Generic/pointlight.xml new file mode 100644 index 000000000..3a11e7d2f --- /dev/null +++ b/Aircraft/Generic/pointlight.xml @@ -0,0 +1,151 @@ + + + + light.ac + + + + /controls/lighting/nav-lights + pointlight + 0 + 0 + 0 + + + + + + + 0.5 + 0.5 + 0.4 + + + 1.0 + 1.0 + 1.0 + + + 1.3 + 1.5 + 4 + + 0.75 + 0.85 + 0.9 + 0.1 + 1.5 + 50 + + + + scale + 0.175 + 0.175 + 0.175 + + + + dist-scale + light + + + 0 + + + + 300 + 4 + + + 1500 + 8 + + + + + + noshadow + light + + + + select + light + + + + + + + light + Effects/procedural-light + + + white + + + + + + + + + + + + true + false + + + + + /environment/ground-visibility-m + /environment/visibility-m + /environment/ground-haze-thickness-m + /environment/mean-terrain-elevation-m + /sim/rendering/eye-altitude-m + /environment/terminator-relative-position-m + + + + + + point + + + + + + + + + + + + + + + 1.0 + + + + + + 1.0 + + + + + + 1.0 + + + + + + + + + + diff --git a/Aircraft/Generic/spotlight.xml b/Aircraft/Generic/spotlight.xml new file mode 100644 index 000000000..5057d0be4 --- /dev/null +++ b/Aircraft/Generic/spotlight.xml @@ -0,0 +1,155 @@ + + + + light.ac + + + + /controls/lighting/nav-lights + spotlight + 0 + 0 + 0 + + + + + + + 0.5 + 0.5 + 0.4 + + + 1.0 + 1.0 + 1.0 + + + 1.3 + 1.5 + 4 + + 0.75 + 0.85 + 0.9 + 0.1 + 80 + 0.5 + 1.5 + 50 + + + + scale + 0.175 + 0.175 + 0.175 + + + + dist-scale + light + + + 0 + + + + 300 + 4 + + + 1500 + 8 + + + + + + noshadow + light + + + + select + light + + + + + + + light + Effects/procedural-light + + + white + + + + + + + + + + + + true + false + + + + + /environment/ground-visibility-m + /environment/visibility-m + /environment/ground-haze-thickness-m + /environment/mean-terrain-elevation-m + /sim/rendering/eye-altitude-m + /environment/terminator-relative-position-m + + + + + + spot + + + + + + + + + + + + + + + 1.0 + + + + + + 1.0 + + + + + + 1.0 + + + + + + + + + + + +