Compositor: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 580: Line 580:
|}
|}


==== shadow-map ====
==== csm ====
Renders the scene from a light's point of view.
Implements Cascaded Shadow Mapping by rendering the scene from a light's point of view (the Sun by default). For now it only supports directional light sources.
{| class="wikitable" style="text-align: center; font-size: 85%; width: auto; table-layout: fixed;
{| class="wikitable" style="text-align: center; font-size: 85%; width: auto; table-layout: fixed;
! scope="col" | Parameter Name
! scope="col" | Parameter Name
Line 590: Line 590:
|-
|-
! scope="row"| <tt>light-name</tt>
! scope="row"| <tt>light-name</tt>
| {{No}}
| {{Yes}}
| Valid light name that exists in the scene graph
| Valid light name that exists in the scene graph
|
| <tt>FGLightSource</tt> (Sun)
| The name of the <tt>osg::LightSource</tt> to use for this shadow map
| The name of the <tt>osg::LightSource</tt> to use for this shadow map
|-
! scope="row"| <tt>render-at-night</tt>
| {{Yes}}
| bool
| true
| Whether to render the shadows at night or not
|-
|-
! scope="row"| <tt>near-m, far-m</tt>
! scope="row"| <tt>near-m, far-m</tt>
343

edits

Navigation menu