ALS technical notes: Difference between revisions

Jump to navigation Jump to search
Line 720: Line 720:


/sim/rendering/als-secondary-lights/use-flashlight = 2 is light-filter-two
/sim/rendering/als-secondary-lights/use-flashlight = 2 is light-filter-two
'''Special note:'''
The flashlight effect inherits model-interior, model-interior.eff is setup around the opacity cube map, it won't allow you to go without one, and in the event you try, you get an environment reflection cube map as default which happens to have green grass on it and may cast a greenish hue over applied objects.
A workaround is to create a pseudo cubemap by creating a white.png 64x64 square, and creating the following structure to represent a transparent cubemap.
<syntaxhighlight lang="xml">
<texture n="4">
  <type>cubemap</type>
    <images>
      <positive-x>Aircraft/c172p/Models/Effects/interior/white.png</positive-x>
      <negative-x>Aircraft/c172p/Models/Effects/interior/white.png</negative-x>
      <positive-y>Aircraft/c172p/Models/Effects/interior/white.png</positive-y>
      <negative-y>Aircraft/c172p/Models/Effects/interior/white.png</negative-y>
      <positive-z>Aircraft/c172p/Models/Effects/interior/white.png</positive-z>
      <negative-z>Aircraft/c172p/Models/Effects/interior/white.png</negative-z>
  </images>
</texture>
</syntaxhighlight>


=== Implicit lightmap ===
=== Implicit lightmap ===
373

edits

Navigation menu