373
edits
Line 838: | Line 838: | ||
2: light predominantly coming from the horizon (most appropriate for GA aircraft) | 2: light predominantly coming from the horizon (most appropriate for GA aircraft) | ||
The strength of the irradiance map regulates how pronounced the asymmetry of the map will be. A strength of zero always makes the light omnidirectional, whereas a strength of 1 implies that no light is coming from any direction 90 degree to the main direction (i.e. for the option 2, a strength of 1.0 means that no ambient light will fall in from above or below and that hence horizontal surfaces will appear pitch black unless direct light falls on them). | The strength of the irradiance map regulates how pronounced the asymmetry of the map will be. A strength of zero always makes the light omnidirectional, whereas a strength of 1 implies that no light is coming from any direction 90 degree to the main direction (i.e. for the option 2, a strength of 1.0 means that no ambient light will fall in from above or below and that hence horizontal surfaces will appear pitch black unless direct light falls on them) | ||
'''Special note:''' | |||
The irradiance map 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>. | |||
=== Explicit lightmap === | === Explicit lightmap === |
edits