Compositor: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Add link to Illuminator add-on)
No edit summary
Line 74: Line 74:


The Compositor introduces a new way of defining lights that is renderer agnostic, so every rendering pipeline will be able to access the lights that have been implemented like this. The resulting light volumes can be visualized for debugging purposes by setting the property <tt>/sim/debug/show-light-volumes</tt> to true.
The Compositor introduces a new way of defining lights that is renderer agnostic, so every rendering pipeline will be able to access the lights that have been implemented like this. The resulting light volumes can be visualized for debugging purposes by setting the property <tt>/sim/debug/show-light-volumes</tt> to true.
You can edit existing lights with the '''[[Illuminator addon|Illuminator]]''', but you have to define them first e.g. in your aircraft. The Illuminator add-on is meant for fine-tuning the light parameters.


[[Project Rembrandt]] light definitions are also read by the Compositor for backwards compatibility reasons. However, it is not recommended to use the old syntax for new/updated projects.
[[Project Rembrandt]] light definitions are also read by the Compositor for backwards compatibility reasons. However, it is not recommended to use the old syntax for new/updated projects.
Line 160: Line 162:
* <tt>'''dim-factor'''</tt> ('''Optional'''). Controls the dimming of the light source through an [[Expressions|expression]].
* <tt>'''dim-factor'''</tt> ('''Optional'''). Controls the dimming of the light source through an [[Expressions|expression]].
* <tt>'''debug-color'''</tt> ('''Optional'''). Sets the color of the debug light volume. By default it's red.
* <tt>'''debug-color'''</tt> ('''Optional'''). Sets the color of the debug light volume. By default it's red.
'''<span style="color:red">Important: </span>'''The following parameters are '''only''' available in the [[HDR Pipeline]].
* <tt>'''color'''</tt>. The color or hue of emitted light. It is expected to be in the sRGB color space.
* <tt>'''intensity'''</tt>. The brightness of the light. This value can be (and will almost always be) higher than 1.
|}
|}
You can edit existing lights in FlightGear with the '''[[Illuminator addon|Illuminator]]''' but you have to define them first e.g. in your aircraft. The Illumintor add-on is ment for fine tuning the light parameters.


=== Shadows ===
=== Shadows ===
343

edits

Navigation menu