33 video::SColorf lightColor = video::SColor(0xffffffff),
34 f32 farValue = 100.0f);
static v2f dir(const v2f &pos_dist)
Definition camera.cpp:191
Definition dynamicshadows.h:29
v3f getPlayerPos() const
Definition dynamicshadows.cpp:153
bool should_update_map_shadow
Definition dynamicshadows.h:88
u32 getMapResolution() const
Gets the shadow map resolution for this light.
Definition dynamicshadows.h:83
DirectionalLight(const u32 shadowMapResolution, const v3f &position, video::SColorf lightColor=video::SColor(0xffffffff), f32 farValue=100.0f)
Definition dynamicshadows.cpp:92
void commitFrustum()
Definition dynamicshadows.cpp:133
core::matrix4 getViewProjMatrix()
Definition dynamicshadows.cpp:183
void setDirection(v3f dir)
Definition dynamicshadows.cpp:142
~DirectionalLight()=default
bool dirty
Definition dynamicshadows.h:108
f32 getFarValue() const
Gets the current far value of the light.
Definition dynamicshadows.h:64
f32 getMaxFarValue() const
Gets the light's maximum far value, i.e. the shadow boundary.
Definition dynamicshadows.h:58
const core::matrix4 & getFutureViewMatrix() const
Definition dynamicshadows.cpp:173
shadowFrustum shadow_frustum
Definition dynamicshadows.h:106
v3f getPosition() const
Definition dynamicshadows.cpp:148
void createSplitMatrices(const Camera *cam)
Definition dynamicshadows.cpp:28
v3f last_look
Definition dynamicshadows.h:104
void setLightColor(const video::SColorf &lightColor)
Sets the light's color.
Definition dynamicshadows.h:77
v3f direction
Definition dynamicshadows.h:101
const core::matrix4 & getViewMatrix() const
Gets the light's matrices.
Definition dynamicshadows.cpp:163
video::SColorf diffuseColor
Definition dynamicshadows.h:95
const core::matrix4 & getProjectionMatrix() const
Definition dynamicshadows.cpp:168
v3f getFuturePlayerPos() const
Definition dynamicshadows.cpp:158
void update_frustum(const Camera *cam, Client *client, bool force=false)
Definition dynamicshadows.cpp:99
v3f last_cam_pos_world
Definition dynamicshadows.h:103
v3f pos
Definition dynamicshadows.h:100
u32 mapRes
Definition dynamicshadows.h:98
v3f getDirection() const
Definition dynamicshadows.h:43
f32 farPlane
Definition dynamicshadows.h:97
const video::SColorf & getLightColor() const
Gets the light's color.
Definition dynamicshadows.h:71
const core::matrix4 & getFutureProjectionMatrix() const
Definition dynamicshadows.cpp:178
shadowFrustum future_frustum
Definition dynamicshadows.h:107
#define BS
Definition constants.h:61
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
core::vector3df v3f
Definition irr_v3d.h:11
Definition activeobjectmgr.cpp:11
Definition dynamicshadows.h:16
f32 radius
Definition dynamicshadows.h:20
v3f position
Definition dynamicshadows.h:23
f32 zFar
Definition dynamicshadows.h:18
f32 length
Definition dynamicshadows.h:19
v3f player
Definition dynamicshadows.h:24
v3s16 camera_offset
Definition dynamicshadows.h:25
f32 zNear
Definition dynamicshadows.h:17
core::matrix4 ViewMat
Definition dynamicshadows.h:22
core::matrix4 ProjOrthMat
Definition dynamicshadows.h:21