dagon v0.8.3 (2018-08-21T07:14:35Z)
Home
Dub
Repo
CascadedShadowMap
dagon
graphics
shadow
Undocumented in source.
class
CascadedShadowMap : Owner {
uint
size
;
BaseScene3D
scene
;
ShadowArea
area1
;
ShadowArea
area2
;
ShadowArea
area3
;
GLuint
depthTexture
;
GLuint
framebuffer1
;
GLuint
framebuffer2
;
GLuint
framebuffer3
;
ShadowBackend
sb
;
Material
sm
;
float
projSize1
;
float
projSize2
;
float
projSize3
;
float
zStart
;
float
zEnd
;
Color4f
shadowColor
;
float
shadowBrightness
;
bool
useHeightCorrectedShadows
;
this
(uint size, BaseScene3D scene, float projSizeNear, float projSizeMid, float projSizeFar, float zStart, float zEnd, Owner o);
Vector3f
position
();
void
position
(Vector3f pos);
~this
();
void
update
(RenderingContext* rc, double dt);
void
render
(RenderingContext* rc);
}
Constructors
this
this
(uint size, BaseScene3D scene, float projSizeNear, float projSizeMid, float projSizeFar, float zStart, float zEnd, Owner o)
Undocumented in source.
Destructor
~this
~this
()
Undocumented in source.
Members
Functions
position
void
position
(Vector3f pos)
Undocumented in source. Be warned that the author may not have intended to support it.
position
Vector3f
position
()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void
render
(RenderingContext* rc)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void
update
(RenderingContext* rc, double dt)
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
area1
ShadowArea
area1
;
Undocumented in source.
area2
ShadowArea
area2
;
Undocumented in source.
area3
ShadowArea
area3
;
Undocumented in source.
depthTexture
GLuint
depthTexture
;
Undocumented in source.
framebuffer1
GLuint
framebuffer1
;
Undocumented in source.
framebuffer2
GLuint
framebuffer2
;
Undocumented in source.
framebuffer3
GLuint
framebuffer3
;
Undocumented in source.
projSize1
float
projSize1
;
Undocumented in source.
projSize2
float
projSize2
;
Undocumented in source.
projSize3
float
projSize3
;
Undocumented in source.
sb
ShadowBackend
sb
;
Undocumented in source.
scene
BaseScene3D
scene
;
Undocumented in source.
shadowBrightness
float
shadowBrightness
;
Undocumented in source.
shadowColor
Color4f
shadowColor
;
Undocumented in source.
size
uint
size
;
Undocumented in source.
sm
Material
sm
;
Undocumented in source.
useHeightCorrectedShadows
bool
useHeightCorrectedShadows
;
Undocumented in source.
zEnd
float
zEnd
;
Undocumented in source.
zStart
float
zStart
;
Undocumented in source.
Meta
Source
See Implementation
dagon
graphics
shadow
classes
CascadedShadowMap
ShadowArea
ShadowBackend