sgShadowProjector Class Reference#include <sgObjectBasedProjector.h>
Inheritance diagram for sgShadowProjector:
[legend]List of all members.
|
Public Member Functions |
| | sgShadowProjector (SceneObject *parentobject, LightInfo *light, TSShapeInstance *shapeinstance) |
| | ~sgShadowProjector () |
| virtual void | sgRender (F32 camdist) |
| bool | shouldRender (F32 camDist) |
| void | render (F32 camDist) |
| U32 | getLastRenderTime () const |
Static Public Member Functions |
| static void | collisionCallback (SceneObject *obj, void *shadow) |
| static void | dtsCallback (SceneObject *obj, void *shadow) |
Public Attributes |
| F32 | sgProjectionScale |
| Box3F | sgShadowBox |
| SphereF | sgShadowSphere |
| Point3F | sgShadowPoly [4] |
| DepthSortList | sgPolyGrinder |
| U32 | sgLastRenderTime |
Protected Types |
| | sgspLastSelfShadowLOD = 3 |
| | sgspMaxLOD = 5 |
| | sgsm_1_1 |
| | sgsm_2_0 |
| | sgsmHigh_2_0 |
| enum | {
sgspLastSelfShadowLOD = 3,
sgspMaxLOD = 5
} |
| enum | sgShaderModel {
sgsm_1_1,
sgsm_2_0,
sgsmHigh_2_0
} |
Protected Member Functions |
| sgShaderModel | sgCalculateShaderModel () |
| bool | sgAllowSelfShadowing () |
| void | sgSetupShadowType () |
| U32 | sgGetShadowSize () |
| void | sgGetVariables () |
| void | sgGetLightSpaceBasedOnY () |
| MatrixF | sgGetAdjustedParentWorldTransform () |
| virtual void | sgCalculateBoundingBox () |
| void | sgDebugRenderProjectionVolume () |
| void | sgRenderShape (TSShapeInstance *shapeinst, const MatrixF &trans1, const MatrixF &trans2, bool builder) |
| void | sgRenderShadowBuffer () |
| Point3F | sgGetCompositeShadowLightDirection () |
| void | sgClear () |
| template<class T> |
| void | sgDirtySync (T &dst, T src) |
Static Protected Member Functions |
| static void | texCB (GFXTexCallbackCode code, void *userData) |
Protected Attributes |
| Box3F | sgBoundingBox |
| SceneObject * | sgParentObject |
| bool | sgEnable |
| bool | sgCanMove |
| bool | sgCanRTT |
| bool | sgCanSelfShadow |
| U32 | sgRequestedShadowSize |
| U32 | sgFrameSkip |
| F32 | sgMaxVisibleDistance |
| F32 | sgProjectionDistance |
| F32 | sgSphereAdjust |
| F32 | sgBias |
| bool | sgDTSShadow |
| F32 | sgIntensity |
| sgLightInfo * | sgLight |
| Point3F | sgLightVector |
| MatrixF | sgLightSpaceY |
| MatrixF | sgLightToWorldY |
| MatrixF | sgWorldToLightY |
| MatrixF | sgLightProjToLightY |
| MatrixF | sgWorldToLightProjY |
| Point4F | sgProjectionInfo |
| Point2I | sgShadowLODSize [sgspMaxLOD] |
| sgShadow | sgShadowLODObject |
| GFXStateBlockRef | mRenderShadowBufferSB |
| GFXStateBlockRef | mRenderAFastSB |
| GFXStateBlockRef | mRenderASB |
| GFXStateBlockRef | mRenderBFastSB |
| GFXStateBlockRef | mRenderBSB |
| GFXShaderConstBufferRef | mShadowBuilderConsts |
| GFXShaderConstBufferRef | mShadowConsts |
| GFXShaderConstBufferRef | mShadowFastPartitionConsts |
| GFXShaderConstHandle * | mShadowBuilderLightSpaceSC |
| GFXShaderConstHandle * | mShadowBuilderProjInfoSC |
| GFXShaderConstHandle * | mShadowToScreenSC |
| GFXShaderConstHandle * | mShadowToLightSpaceSC |
| GFXShaderConstHandle * | mShadowProjInfoSC |
| GFXShaderConstHandle * | mShadowBiasSC |
| GFXShaderConstHandle * | mShadowLightVectorSC |
| GFXShaderConstHandle * | mShadowStrideSC |
| GFXShaderConstHandle * | mShadowColorSC |
| GFXShaderConstHandle * | mShadowFastPartitionToScreenSC |
| GFXShaderConstHandle * | mShadowFastPartitionToLightSpaceSC |
| GFXShaderConstHandle * | mShadowFastPartitionProjInfoSC |
| GFXShaderConstHandle * | mShadowFastPartitionBiasSC |
| GFXShaderConstHandle * | mShadowFastPartitionLightVectorSC |
| GFXShaderConstHandle * | mShadowFastPartitionStrideSC |
| GFXShaderConstHandle * | mShadowFastPartitionColorSC |
| ShaderData * | sgShadowBuilderShader |
| ShaderData * | sgShadowShader |
| ShaderData * | sgShadowShaderFastPartition |
| ShaderData * | sgShadowBuilderShader_2_0 |
| ShaderData * | sgShadowBuilderShader_1_1 |
| ShaderData * | sgShadowShaderHigh_2_0 |
| ShaderData * | sgShadowShader_2_0 |
| ShaderData * | sgShadowShader_1_1 |
| TSShapeInstance * | sgShapeInstance |
| Vector< SceneObject * > | sgShadowReceivers |
| Vector< DepthSortList::Poly > | sgShadowPolys |
| Vector< Point3F > | sgShadowPoints |
| GFXVertexBufferHandle< GFXVertexPN > | sgShadowBuffer |
| GFXTextureTargetRef | mShadowBufferTarget |
| Point3F | testRenderPoints [8] |
| Point3F | testRenderPointsWorld [8] |
| bool | sgFirstMove |
| bool | sgFirstRTT |
| sgShaderModel | sgCachedShaderModel |
| Point3F | sgCachedParentPos |
| U32 | sgLastFrame |
| U32 | sgCachedTextureDetailSize |
| U32 | sgCachedParentTransformHash |
| U32 | sgPreviousShadowTime |
| VectorF | sgPreviousShadowLightingVector |
| bool | sgShadowTypeDirty |
| S32 | mTexCallbackHandle |
Classes |
| class | sgShadow |
Member Enumeration Documentation
anonymous enum [protected] |
- Enumerator:
-
| sgspLastSelfShadowLOD |
|
| sgspMaxLOD |
|
- Enumerator:
-
| sgsm_1_1 |
|
| sgsm_2_0 |
|
| sgsmHigh_2_0 |
|
Constructor & Destructor Documentation
| sgShadowProjector::~sgShadowProjector |
( |
|
) |
|
Member Function Documentation
| sgShaderModel sgShadowProjector::sgCalculateShaderModel |
( |
|
) |
[protected] |
| bool sgShadowProjector::sgAllowSelfShadowing |
( |
|
) |
[inline, protected] |
| void sgShadowProjector::sgSetupShadowType |
( |
|
) |
[protected] |
| U32 sgShadowProjector::sgGetShadowSize |
( |
|
) |
[inline, protected] |
| void sgShadowProjector::sgGetVariables |
( |
|
) |
[protected] |
| void sgShadowProjector::sgGetLightSpaceBasedOnY |
( |
|
) |
[protected] |
| MatrixF sgShadowProjector::sgGetAdjustedParentWorldTransform |
( |
|
) |
[protected] |
| virtual void sgShadowProjector::sgCalculateBoundingBox |
( |
|
) |
[protected, virtual] |
| void sgShadowProjector::sgDebugRenderProjectionVolume |
( |
|
) |
[protected] |
| void sgShadowProjector::sgRenderShadowBuffer |
( |
|
) |
[protected] |
| Point3F sgShadowProjector::sgGetCompositeShadowLightDirection |
( |
|
) |
[protected] |
| void sgShadowProjector::sgClear |
( |
|
) |
[protected] |
template<class T>
| void sgShadowProjector::sgDirtySync |
( |
T & |
dst, |
|
|
T |
src | |
|
) |
| | [inline, protected] |
| virtual void sgShadowProjector::sgRender |
( |
F32 |
camdist |
) |
[virtual] |
| bool sgShadowProjector::shouldRender |
( |
F32 |
camDist |
) |
[virtual] |
| void sgShadowProjector::render |
( |
F32 |
camDist |
) |
[virtual] |
| U32 sgShadowProjector::getLastRenderTime |
( |
|
) |
const [inline, virtual] |
Member Data Documentation
|