Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::ShadowMap::Layer Class Reference

Public Member Functions

 Layer (const String &name)
 
void renderDepthOnly (class RenderDevice *renderDevice, const ShadowMap *shadowMap, const Array< shared_ptr< Surface > > &shadowCaster, CullFace cullFace, TransparencyTestMode transparencyTestMode, const Color3 &transmissionWeight) const
 Calls the other method of the same name multiple times with appropriate culling faces and polygon offsets. More...
 
void renderDepthOnly (class RenderDevice *renderDevice, const ShadowMap *shadowMap, const Array< shared_ptr< Surface > > &shadowCaster, CullFace cullFace, float polygonOffset, TransparencyTestMode transparencyTestMode, const Color3 &transmissionWeight) const
 
void setSize (Vector2int16 desiredSize)
 
void updateDepth (RenderDevice *renderDevice, ShadowMap *shadowMap, const Array< shared_ptr< Surface > > &shadowCaster, CullFace cullFace, TransparencyTestMode transparencyTestMode, const shared_ptr< Framebuffer > &initialValues, const Color3 &transmissionWeight)
 Called from ShadowMap::updateDepth. More...
 

Public Attributes

shared_ptr< TexturedepthTexture
 
size_t entityHash
 Used to detect when something has been removed from this shadow map. More...
 
shared_ptr< Framebufferframebuffer
 
RealTime lastUpdateTime
 
String name
 

Constructor & Destructor Documentation

◆ Layer()

G3D::ShadowMap::Layer::Layer ( const String name)
inline

Member Function Documentation

◆ renderDepthOnly() [1/2]

void G3D::ShadowMap::Layer::renderDepthOnly ( class RenderDevice renderDevice,
const ShadowMap shadowMap,
const Array< shared_ptr< Surface > > &  shadowCaster,
CullFace  cullFace,
TransparencyTestMode  transparencyTestMode,
const Color3 transmissionWeight 
) const

Calls the other method of the same name multiple times with appropriate culling faces and polygon offsets.

◆ renderDepthOnly() [2/2]

void G3D::ShadowMap::Layer::renderDepthOnly ( class RenderDevice renderDevice,
const ShadowMap shadowMap,
const Array< shared_ptr< Surface > > &  shadowCaster,
CullFace  cullFace,
float  polygonOffset,
TransparencyTestMode  transparencyTestMode,
const Color3 transmissionWeight 
) const

◆ setSize()

void G3D::ShadowMap::Layer::setSize ( Vector2int16  desiredSize)

◆ updateDepth()

void G3D::ShadowMap::Layer::updateDepth ( RenderDevice renderDevice,
ShadowMap shadowMap,
const Array< shared_ptr< Surface > > &  shadowCaster,
CullFace  cullFace,
TransparencyTestMode  transparencyTestMode,
const shared_ptr< Framebuffer > &  initialValues,
const Color3 transmissionWeight 
)

Called from ShadowMap::updateDepth.

Parameters
initialValuesIf not nullptr, blit the depth from this buffer instead of clearing to infinity.

Member Data Documentation

◆ depthTexture

shared_ptr<Texture> G3D::ShadowMap::Layer::depthTexture

◆ entityHash

size_t G3D::ShadowMap::Layer::entityHash

Used to detect when something has been removed from this shadow map.

This is zero if there is nothing in the shadow map.

◆ framebuffer

shared_ptr<Framebuffer> G3D::ShadowMap::Layer::framebuffer

◆ lastUpdateTime

RealTime G3D::ShadowMap::Layer::lastUpdateTime
mutable

◆ name

String G3D::ShadowMap::Layer::name

documentation generated on Wed Nov 24 2021 08:02:00 using doxygen 1.8.15