Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
ShadowDepthShaderCB Class Reference

#include <shadowsshadercallbacks.h>

+ Inheritance diagram for ShadowDepthShaderCB:
+ Collaboration diagram for ShadowDepthShaderCB:

Public Member Functions

void OnSetMaterial (const video::SMaterial &material) override
 
void OnSetConstants (video::IMaterialRendererServices *services, s32 userData) override
 

Public Attributes

f32 MaxFar {2048.0f}
 
f32 MapRes {1024.0f}
 
f32 PerspectiveBiasXY {0.9f}
 
f32 PerspectiveBiasZ {0.5f}
 
v3f CameraPos
 

Private Attributes

CachedVertexShaderSetting< f32, 16 > m_light_mvp_setting {"LightMVP"}
 
CachedVertexShaderSetting< f32 > m_map_resolution_setting {"MapResolution"}
 
CachedVertexShaderSetting< f32 > m_max_far_setting {"MaxFar"}
 
CachedPixelShaderSetting< s32 > m_color_map_sampler_setting {"ColorMapSampler"}
 
CachedVertexShaderSetting< f32 > m_perspective_bias0 {"xyPerspectiveBias0"}
 
CachedVertexShaderSetting< f32 > m_perspective_bias1 {"xyPerspectiveBias1"}
 
CachedVertexShaderSetting< f32 > m_perspective_zbias {"zPerspectiveBias"}
 
CachedVertexShaderSetting< f32, 4 > m_cam_pos_setting {"CameraPos"}
 

Member Function Documentation

◆ OnSetConstants()

void ShadowDepthShaderCB::OnSetConstants ( video::IMaterialRendererServices * services,
s32 userData )
override

References CameraPos, m_cam_pos_setting, m_color_map_sampler_setting, m_light_mvp_setting, m_map_resolution_setting, m_max_far_setting, m_perspective_bias0, m_perspective_bias1, m_perspective_zbias, MapRes, MaxFar, PerspectiveBiasXY, PerspectiveBiasZ, and CachedShaderSetting< T, count, cache >::set().

+ Here is the call graph for this function:

◆ OnSetMaterial()

void ShadowDepthShaderCB::OnSetMaterial ( const video::SMaterial & material)
inlineoverride

Member Data Documentation

◆ CameraPos

v3f ShadowDepthShaderCB::CameraPos

◆ m_cam_pos_setting

CachedVertexShaderSetting<f32, 4> ShadowDepthShaderCB::m_cam_pos_setting {"CameraPos"}
private

Referenced by OnSetConstants().

◆ m_color_map_sampler_setting

CachedPixelShaderSetting<s32> ShadowDepthShaderCB::m_color_map_sampler_setting {"ColorMapSampler"}
private

Referenced by OnSetConstants().

◆ m_light_mvp_setting

CachedVertexShaderSetting<f32, 16> ShadowDepthShaderCB::m_light_mvp_setting {"LightMVP"}
private

Referenced by OnSetConstants().

◆ m_map_resolution_setting

CachedVertexShaderSetting<f32> ShadowDepthShaderCB::m_map_resolution_setting {"MapResolution"}
private

Referenced by OnSetConstants().

◆ m_max_far_setting

CachedVertexShaderSetting<f32> ShadowDepthShaderCB::m_max_far_setting {"MaxFar"}
private

Referenced by OnSetConstants().

◆ m_perspective_bias0

CachedVertexShaderSetting<f32> ShadowDepthShaderCB::m_perspective_bias0 {"xyPerspectiveBias0"}
private

Referenced by OnSetConstants().

◆ m_perspective_bias1

CachedVertexShaderSetting<f32> ShadowDepthShaderCB::m_perspective_bias1 {"xyPerspectiveBias1"}
private

Referenced by OnSetConstants().

◆ m_perspective_zbias

CachedVertexShaderSetting<f32> ShadowDepthShaderCB::m_perspective_zbias {"zPerspectiveBias"}
private

Referenced by OnSetConstants().

◆ MapRes

f32 ShadowDepthShaderCB::MapRes {1024.0f}

Referenced by OnSetConstants().

◆ MaxFar

f32 ShadowDepthShaderCB::MaxFar {2048.0f}

Referenced by OnSetConstants().

◆ PerspectiveBiasXY

f32 ShadowDepthShaderCB::PerspectiveBiasXY {0.9f}

Referenced by OnSetConstants().

◆ PerspectiveBiasZ

f32 ShadowDepthShaderCB::PerspectiveBiasZ {0.5f}

Referenced by OnSetConstants().


The documentation for this class was generated from the following files: