OpenSceneGraph
3.4.0
|
ShadowSettings provides the parameters that the ShadowTechnique should use as a guide for setting up shadowing. More...
ShadowSettings provides the parameters that the ShadowTechnique should use as a guide for setting up shadowing.
osgShadow::ShadowSettings::ShadowSettings | ( | const ShadowSettings & | ss, |
const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
) |
virtual osgShadow::ShadowSettings::~ShadowSettings | ( | ) | [protected, virtual] |
unsigned int osgShadow::ShadowSettings::getBaseShadowTextureUnit | ( | ) | const [inline] |
unsigned int osgShadow::ShadowSettings::getCastsShadowTraversalMask | ( | ) | const [inline] |
osg::CullSettings::ComputeNearFarMode osgShadow::ShadowSettings::getComputeNearFarModeOverride | ( | ) | const [inline] |
bool osgShadow::ShadowSettings::getDebugDraw | ( | ) | const [inline] |
int osgShadow::ShadowSettings::getLightNum | ( | ) | const [inline] |
double osgShadow::ShadowSettings::getMaximumShadowMapDistance | ( | ) | const [inline] |
double osgShadow::ShadowSettings::getMinimumShadowMapNearFarRatio | ( | ) | const [inline] |
MultipleShadowMapHint osgShadow::ShadowSettings::getMultipleShadowMapHint | ( | ) | const [inline] |
unsigned int osgShadow::ShadowSettings::getNumShadowMapsPerLight | ( | ) | const [inline] |
double osgShadow::ShadowSettings::getPerspectiveShadowMapCutOffAngle | ( | ) | const [inline] |
unsigned int osgShadow::ShadowSettings::getReceivesShadowTraversalMask | ( | ) | const [inline] |
ShaderHint osgShadow::ShadowSettings::getShaderHint | ( | ) | const [inline] |
ShadowMapProjectionHint osgShadow::ShadowSettings::getShadowMapProjectionHint | ( | ) | const [inline] |
const osg::Vec2s& osgShadow::ShadowSettings::getTextureSize | ( | ) | const [inline] |
Get the size of the shadow map textures.
bool osgShadow::ShadowSettings::getUseOverrideForShadowMapTexture | ( | ) | const [inline] |
Get whether to use osg::StateAttribute::OVERRIDE for the shadow map texture.
osgShadow::ShadowSettings::META_Object | ( | osgShadow | , |
ShadowSettings | |||
) |
void osgShadow::ShadowSettings::setBaseShadowTextureUnit | ( | unsigned int | unit | ) | [inline] |
void osgShadow::ShadowSettings::setCastsShadowTraversalMask | ( | unsigned int | mask | ) | [inline] |
void osgShadow::ShadowSettings::setComputeNearFarModeOverride | ( | osg::CullSettings::ComputeNearFarMode | cnfn | ) | [inline] |
void osgShadow::ShadowSettings::setDebugDraw | ( | bool | debugDraw | ) | [inline] |
void osgShadow::ShadowSettings::setLightNum | ( | int | lightNum | ) | [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.
void osgShadow::ShadowSettings::setMaximumShadowMapDistance | ( | double | distance | ) | [inline] |
void osgShadow::ShadowSettings::setMinimumShadowMapNearFarRatio | ( | double | ratio | ) | [inline] |
void osgShadow::ShadowSettings::setMultipleShadowMapHint | ( | MultipleShadowMapHint | hint | ) | [inline] |
void osgShadow::ShadowSettings::setNumShadowMapsPerLight | ( | unsigned int | numShadowMaps | ) | [inline] |
void osgShadow::ShadowSettings::setPerspectiveShadowMapCutOffAngle | ( | double | angle | ) | [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.
void osgShadow::ShadowSettings::setReceivesShadowTraversalMask | ( | unsigned int | mask | ) | [inline] |
void osgShadow::ShadowSettings::setShaderHint | ( | ShaderHint | shaderHint | ) | [inline] |
void osgShadow::ShadowSettings::setShadowMapProjectionHint | ( | ShadowMapProjectionHint | hint | ) | [inline] |
void osgShadow::ShadowSettings::setTextureSize | ( | const osg::Vec2s & | textureSize | ) | [inline] |
Set the size of the shadow map textures.
void osgShadow::ShadowSettings::setUseOverrideForShadowMapTexture | ( | bool | useOverride | ) | [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.
unsigned int osgShadow::ShadowSettings::_baseShadowTextureUnit [protected] |
unsigned int osgShadow::ShadowSettings::_castsShadowTraversalMask [protected] |
osg::CullSettings::ComputeNearFarMode osgShadow::ShadowSettings::_computeNearFearModeOverride [protected] |
bool osgShadow::ShadowSettings::_debugDraw [protected] |
int osgShadow::ShadowSettings::_lightNum [protected] |
double osgShadow::ShadowSettings::_maximumShadowMapDistance [protected] |
double osgShadow::ShadowSettings::_minimumShadowMapNearFarRatio [protected] |
unsigned int osgShadow::ShadowSettings::_numShadowMapsPerLight [protected] |
double osgShadow::ShadowSettings::_perspectiveShadowMapCutOffAngle [protected] |
unsigned int osgShadow::ShadowSettings::_receivesShadowTraversalMask [protected] |
ShaderHint osgShadow::ShadowSettings::_shaderHint [protected] |
osg::Vec2s osgShadow::ShadowSettings::_textureSize [protected] |
bool osgShadow::ShadowSettings::_useShadowMapTextureOverride [protected] |
![]() | Generated at Tue Dec 8 2015 00:16:49 for the OpenSceneGraph by doxygen 1.7.6.1. |