|
openscenegraph
|
Public Types | |
| enum | ShadowMapProjectionHint { ORTHOGRAPHIC_SHADOW_MAP, PERSPECTIVE_SHADOW_MAP } |
| enum | MultipleShadowMapHint { PARALLEL_SPLIT, CASCADED } |
| enum | ShaderHint { NO_SHADERS, PROVIDE_FRAGMENT_SHADER, PROVIDE_VERTEX_AND_FRAGMENT_SHADER } |
Public Types inherited from osg::Object | |
| enum | DataVariance { DYNAMIC, STATIC, UNSPECIFIED } |
Protected Member Functions | |
| virtual | ~ShadowSettings () |
Protected Member Functions inherited from osg::Object | |
| virtual | ~Object () |
Protected Member Functions inherited from osg::Referenced | |
| virtual | ~Referenced () |
| void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| unsigned int | _receivesShadowTraversalMask |
| unsigned int | _castsShadowTraversalMask |
| osg::CullSettings::ComputeNearFarMode | _computeNearFearModeOverride |
| int | _lightNum |
| unsigned int | _baseShadowTextureUnit |
| bool | _useShadowMapTextureOverride |
| osg::Vec2s | _textureSize |
| double | _minimumShadowMapNearFarRatio |
| double | _maximumShadowMapDistance |
| ShadowMapProjectionHint | _shadowMapProjectionHint |
| double | _perspectiveShadowMapCutOffAngle |
| unsigned int | _numShadowMapsPerLight |
| MultipleShadowMapHint | _multipleShadowMapHint |
| ShaderHint | _shaderHint |
| bool | _debugDraw |
Protected Attributes inherited from osg::Object | |
| std::string | _name |
| DataVariance | _dataVariance |
| osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
| OpenThreads::AtomicPtr | _observerSet |
| OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
| static OpenThreads::Mutex * | getGlobalReferencedMutex () |
| static void | setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting) |
| static bool | getThreadSafeReferenceCounting () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| static DeleteHandler * | getDeleteHandler () |
ShadowSettings provides the parameters that the ShadowTechnique should use as a guide for setting up shadowing.
| osgShadow::ShadowSettings::ShadowSettings | ( | ) |
| osgShadow::ShadowSettings::ShadowSettings | ( | const ShadowSettings & | ss, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
| ) |
|
protectedvirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the size of the shadow map textures.
|
inline |
Get whether to use osg::StateAttribute::OVERRIDE for the shadow map texture.
| osgShadow::ShadowSettings::META_Object | ( | osgShadow | , |
| ShadowSettings | |||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the LightNum of the light in the scene to assign a shadow for. Default value is -1, which signifies that shadow technique should automatically select an active light to assign a shadow, typically this will be the first active light found.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the cut off angle, in degrees, between the light direction and the view direction that determines whether perspective shadow mapping is appropriate, or thar orthographic shadow map should be used instead. Default is 2 degrees so that for any angle greater than 2 degrees perspective shadow map will be used, and any angle less than 2 degrees orthographic shadow map will be used. Note, if ShadowMapProjectionHint is set to ORTHOGRAPHIC_SHADOW_MAP then an orthographic shadow map will always be used.
|
inline |
|
inline |
|
inline |
|
inline |
Set the size of the shadow map textures.
|
inline |
Set whether to use osg::StateAttribute::OVERRIDE for the shadow map texture. Enabling override will force the shadow map texture to override any texture set on the shadow maps texture unit.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.6