343
edits
mNo edit summary |
No edit summary |
||
Line 580: | Line 580: | ||
|} | |} | ||
==== | ==== csm ==== | ||
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> | ||
| {{ | | {{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> |
edits