373
edits
No edit summary |
|||
Line 66: | Line 66: | ||
[[File:Als secondary light fog.jpg|400px|ALS generic lights illuminating dense fog]] | [[File:Als secondary light fog.jpg|400px|ALS generic lights illuminating dense fog]] | ||
== ALS flashlight == | |||
This effect is meant to imitate a hand held flashlight for use in getting instruments in the cockpit turned on in dark conditions. | |||
It is almost identical in nature to ALS searchlight only it is applied using interior-model.eff. | |||
It has two user defined light color filters that can be applied and also a user defined light radius setting. | |||
[[File:ALS flashlight.jpg|600px|ALS flashlight effect]] | |||
To implement this effect use | |||
<syntaxhighlight lang="xml"><inherits-from>Effects/model-interior</inherits-from></syntaxhighlight> | |||
A full definition looks like this | |||
<syntaxhighlight lang="xml"> | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<PropertyList> | |||
<name>c172-interior</name> | |||
<inherits-from>Effects/model-interior</inherits-from> | |||
<parameters> | |||
<light-filter-one type="vec3d">0.5 0.5 0.5</light-filter-one> | |||
<light-filter-two type="vec3d">0.9 0.2 0.2</light-filter-two> | |||
<light-radius type="float">13</light-radius> | |||
</parameters> | |||
</PropertyList> | |||
</syntaxhighlight> | |||
In the example above light-filter-one is soft white light and light-filter-two is a soft red light. | |||
After defining as above you can turn it on using the following property | |||
/sim/rendering/als-secondary-lights/use-flashlight = 1 is light-filter-one | |||
/sim/rendering/als-secondary-lights/use-flashlight = 2 is light-filter-two | |||
== The grain texture and the rain effect == | == The grain texture and the rain effect == |
edits