Add generic combined ALS procedural lights and Compositor lights
This commit is contained in:
parent
2d17217a01
commit
d02ce10801
3 changed files with 330 additions and 0 deletions
24
Aircraft/Generic/light.ac
Normal file
24
Aircraft/Generic/light.ac
Normal file
|
@ -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
|
151
Aircraft/Generic/pointlight.xml
Normal file
151
Aircraft/Generic/pointlight.xml
Normal file
|
@ -0,0 +1,151 @@
|
|||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
|
||||
<path>light.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<params>
|
||||
<power-source>/controls/lighting/nav-lights</power-source>
|
||||
<name>pointlight</name>
|
||||
<x-m>0</x-m>
|
||||
<y-m>0</y-m>
|
||||
<z-m>0</z-m>
|
||||
<direction>
|
||||
<x/>
|
||||
<y/>
|
||||
<z/>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.5</r>
|
||||
<g>0.5</g>
|
||||
<b>0.4</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>1.0</g>
|
||||
<b>1.0</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.3</c>
|
||||
<l>1.5</l>
|
||||
<q>4</q>
|
||||
</attenuation>
|
||||
<inner-angle>0.75</inner-angle>
|
||||
<outer-angle>0.85</outer-angle>
|
||||
<zero-angle>0.9</zero-angle>
|
||||
<outer-gain>0.1</outer-gain>
|
||||
<dist-scale>1.5</dist-scale>
|
||||
<range-m>50</range-m>
|
||||
</params>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.175</x-offset>
|
||||
<y-offset>0.175</y-offset>
|
||||
<z-offset>0.175</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>light</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep alias="/params/dist-scale"/>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>light</object-name>
|
||||
<condition>
|
||||
<property alias="/params/power-source"/>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<object-name>light</object-name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
<light_color_base_r alias="/params/ambient/r"/>
|
||||
<light_color_base_g alias="/params/ambient/g"/>
|
||||
<light_color_base_b alias="/params/ambient/b"/>
|
||||
<light_color_center_r alias="/params/specular/r"/>
|
||||
<light_color_center_g alias="/params/specular/g"/>
|
||||
<light_color_center_b alias="/params/specular/b"/>
|
||||
<intensity_scale alias="/params/power-source"/>
|
||||
<pointing_x alias="/params/direction/x"/>
|
||||
<pointing_y alias="/params/direction/y"/>
|
||||
<pointing_z alias="/params/direction/z"/>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle alias="/params/inner-angle"/>
|
||||
<outer_angle alias="/params/outer-angle"/>
|
||||
<zero_angle alias="/params/zero-angle"/>
|
||||
<outer_gain alias="/params/outer-gain"/>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</effect>
|
||||
|
||||
<light>
|
||||
<name alias="/params/name"/>
|
||||
<type>point</type>
|
||||
<position>
|
||||
<x alias="/params/x-m"/>
|
||||
<y alias="/params/y-m"/>
|
||||
<z alias="/params/z-m"/>
|
||||
</position>
|
||||
<direction>
|
||||
<pointing_x alias="/params/direction/x"/>
|
||||
<pointing_y alias="/params/direction/y"/>
|
||||
<pointing_z alias="/params/direction/z"/>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r alias="/params/ambient/r"/>
|
||||
<g alias="/params/ambient/g"/>
|
||||
<b alias="/params/ambient/b"/>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r alias="/params/specular/r"/>
|
||||
<g alias="/params/specular/g"/>
|
||||
<b alias="/params/specular/b"/>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r alias="/params/specular/r"/>
|
||||
<g alias="/params/specular/g"/>
|
||||
<b alias="/params/specular/b"/>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c alias="/params/attenuation/c"/>
|
||||
<l alias="/params/attenuation/l"/>
|
||||
<q alias="/params/attenuation/q"/>
|
||||
</attenuation>
|
||||
<range-m alias="/params/range-m"/>
|
||||
</light>
|
||||
|
||||
</PropertyList>
|
155
Aircraft/Generic/spotlight.xml
Normal file
155
Aircraft/Generic/spotlight.xml
Normal file
|
@ -0,0 +1,155 @@
|
|||
<?xml version="1.0"?>
|
||||
<PropertyList>
|
||||
|
||||
<path>light.ac</path>
|
||||
<nopreview/>
|
||||
|
||||
<params>
|
||||
<power-source>/controls/lighting/nav-lights</power-source>
|
||||
<name>spotlight</name>
|
||||
<x-m>0</x-m>
|
||||
<y-m>0</y-m>
|
||||
<z-m>0</z-m>
|
||||
<direction>
|
||||
<x/>
|
||||
<y/>
|
||||
<z/>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r>0.5</r>
|
||||
<g>0.5</g>
|
||||
<b>0.4</b>
|
||||
</ambient>
|
||||
<specular>
|
||||
<r>1.0</r>
|
||||
<g>1.0</g>
|
||||
<b>1.0</b>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c>1.3</c>
|
||||
<l>1.5</l>
|
||||
<q>4</q>
|
||||
</attenuation>
|
||||
<inner-angle>0.75</inner-angle>
|
||||
<outer-angle>0.85</outer-angle>
|
||||
<zero-angle>0.9</zero-angle>
|
||||
<outer-gain>0.1</outer-gain>
|
||||
<spot-cutoff>80</spot-cutoff>
|
||||
<spot-exponent>0.5</spot-exponent>
|
||||
<dist-scale>1.5</dist-scale>
|
||||
<range-m>50</range-m>
|
||||
</params>
|
||||
|
||||
<animation>
|
||||
<type>scale</type>
|
||||
<x-offset>0.175</x-offset>
|
||||
<y-offset>0.175</y-offset>
|
||||
<z-offset>0.175</z-offset>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>dist-scale</type>
|
||||
<object-name>light</object-name>
|
||||
<interpolation>
|
||||
<entry>
|
||||
<ind>0</ind>
|
||||
<dep alias="/params/dist-scale"/>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>300</ind>
|
||||
<dep>4</dep>
|
||||
</entry>
|
||||
<entry>
|
||||
<ind>1500</ind>
|
||||
<dep>8</dep>
|
||||
</entry>
|
||||
</interpolation>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>noshadow</type>
|
||||
<object-name>light</object-name>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>light</object-name>
|
||||
<condition>
|
||||
<property alias="/params/power-source"/>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<effect>
|
||||
<object-name>light</object-name>
|
||||
<inherits-from>Effects/procedural-light</inherits-from>
|
||||
<parameters>
|
||||
<texture n="0">
|
||||
<type>white</type>
|
||||
</texture>
|
||||
<light_color_base_r alias="/params/ambient/r"/>
|
||||
<light_color_base_g alias="/params/ambient/g"/>
|
||||
<light_color_base_b alias="/params/ambient/b"/>
|
||||
<light_color_center_r alias="/params/specular/r"/>
|
||||
<light_color_center_g alias="/params/specular/g"/>
|
||||
<light_color_center_b alias="/params/specular/b"/>
|
||||
<intensity_scale alias="/params/power-source"/>
|
||||
<pointing_x alias="/params/direction/x"/>
|
||||
<pointing_y alias="/params/direction/y"/>
|
||||
<pointing_z alias="/params/direction/z"/>
|
||||
<is_directional type="bool">true</is_directional>
|
||||
<is_strobe type="bool">false</is_strobe>
|
||||
<inner_angle alias="/params/inner-angle"/>
|
||||
<outer_angle alias="/params/outer-angle"/>
|
||||
<zero_angle alias="/params/zero-angle"/>
|
||||
<outer_gain alias="/params/outer-gain"/>
|
||||
<visibility><use>/environment/ground-visibility-m</use></visibility>
|
||||
<avisibility><use>/environment/visibility-m</use></avisibility>
|
||||
<lthickness><use>/environment/ground-haze-thickness-m</use></lthickness>
|
||||
<terrain_alt><use>/environment/mean-terrain-elevation-m</use></terrain_alt>
|
||||
<eye_alt><use>/sim/rendering/eye-altitude-m</use></eye_alt>
|
||||
<terminator><use>/environment/terminator-relative-position-m</use></terminator>
|
||||
</parameters>
|
||||
</effect>
|
||||
|
||||
<light>
|
||||
<name alias="/params/name"/>
|
||||
<type>spot</type>
|
||||
<position>
|
||||
<x alias="/params/x-m"/>
|
||||
<y alias="/params/y-m"/>
|
||||
<z alias="/params/z-m"/>
|
||||
</position>
|
||||
<direction>
|
||||
<pointing_x alias="/params/direction/x"/>
|
||||
<pointing_y alias="/params/direction/y"/>
|
||||
<pointing_z alias="/params/direction/z"/>
|
||||
</direction>
|
||||
<ambient>
|
||||
<r alias="/params/ambient/r"/>
|
||||
<g alias="/params/ambient/g"/>
|
||||
<b alias="/params/ambient/b"/>
|
||||
<a>1.0</a>
|
||||
</ambient>
|
||||
<diffuse>
|
||||
<r alias="/params/specular/r"/>
|
||||
<g alias="/params/specular/g"/>
|
||||
<b alias="/params/specular/b"/>
|
||||
<a>1.0</a>
|
||||
</diffuse>
|
||||
<specular>
|
||||
<r alias="/params/specular/r"/>
|
||||
<g alias="/params/specular/g"/>
|
||||
<b alias="/params/specular/b"/>
|
||||
<a>1.0</a>
|
||||
</specular>
|
||||
<attenuation>
|
||||
<c alias="/params/attenuation/c"/>
|
||||
<l alias="/params/attenuation/l"/>
|
||||
<q alias="/params/attenuation/q"/>
|
||||
</attenuation>
|
||||
<spot-cutoff alias="/params/spot-cutoff"/>
|
||||
<spot-exponent alias="/params/spot-exponent"/>
|
||||
<range-m alias="/params/range-m"/>
|
||||
</light>
|
||||
|
||||
</PropertyList>
|
Loading…
Add table
Reference in a new issue