Howto:Illuminate faces: Difference between revisions

Line 142: Line 142:
   </emission>
   </emission>
  </animation>
  </animation>
===Changing illumination color directly via parameters===
It is possible to perform the change of color through the use of properties through the tag '''<red-prop>, <green-prop> or <blue-prop>''' to be associated with a parameter defined in the property tree.
For example:
<source>
    <emission>
        <red>0.12</red>
        <green>0.012</green>
        <blue-prop>sim/G91/Test/V0_1B</blue-prop>
        <factor-prop>sim/G91/re_emit/gauge_red_light</factor-prop>
    </emission>
</source>
<factor-pro> always works on the three colors, so any color mixing should be managed using a NASAL or JSBSim function so that the colors are harmonized together.


=== Changing texture if illuminated ===
=== Changing texture if illuminated ===
408

edits