Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::ShadowMap Class Reference

#include <ShadowMap.h>

List of all members.

Public Member Functions

TextureRef depthTexture () const
bool enabled () const
const Matrix4lightMVP () const
float polygonOffset () const
void setPolygonOffset (float s)
void setSize (int desiredSize=1024)
 ShadowMap ()
void updateDepth (class RenderDevice *renderDevice, const GLight &light, float lightProjX, float lightProjY, float lightProjNear, float lightProjFar, const Array< PosedModel::Ref > &shadowCaster)


Constructor & Destructor Documentation

G3D::ShadowMap::ShadowMap (  ) 


Member Function Documentation

TextureRef G3D::ShadowMap::depthTexture (  )  const [inline]

bool G3D::ShadowMap::enabled (  )  const

const Matrix4& G3D::ShadowMap::lightMVP (  )  const [inline]

float G3D::ShadowMap::polygonOffset (  )  const [inline]

void G3D::ShadowMap::setPolygonOffset ( float  s  )  [inline]

Increase to hide self-shadowing artifacts, decrease to avoid gap between shadow and object.

Default = 0.5

void G3D::ShadowMap::setSize ( int  desiredSize = 1024  ) 

Call with desiredSize = 0 to turn off shadow maps.

void G3D::ShadowMap::updateDepth ( class RenderDevice renderDevice,
const GLight light,
float  lightProjX,
float  lightProjY,
float  lightProjNear,
float  lightProjFar,
const Array< PosedModel::Ref > &  shadowCaster 
)


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo