Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ShadowConstantSetter Class Reference

#include <shadowsshadercallbacks.h>

+ Inheritance diagram for ShadowConstantSetter:
+ Collaboration diagram for ShadowConstantSetter:

Public Member Functions

 ShadowConstantSetter ()=default
 
 ~ShadowConstantSetter ()=default
 
virtual void onSetConstants (video::IMaterialRendererServices *services) override
 
- Public Member Functions inherited from IShaderConstantSetter
virtual ~IShaderConstantSetter ()=default
 
virtual void onSetMaterial (const video::SMaterial &material)
 

Private Attributes

CachedPixelShaderSetting< f32, 16 > m_shadow_view_proj {"m_ShadowViewProj"}
 
CachedPixelShaderSetting< f32, 3 > m_light_direction {"v_LightDirection"}
 
CachedPixelShaderSetting< f32 > m_texture_res {"f_textureresolution"}
 
CachedPixelShaderSetting< f32 > m_shadow_strength {"f_shadow_strength"}
 
CachedPixelShaderSetting< f32, 3 > m_shadow_tint { "shadow_tint" }
 
CachedPixelShaderSetting< f32 > m_time_of_day {"f_timeofday"}
 
CachedPixelShaderSetting< f32 > m_shadowfar {"f_shadowfar"}
 
CachedPixelShaderSetting< f32, 4 > m_camera_pos {"CameraPos"}
 
CachedPixelShaderSetting< s32 > m_shadow_texture {"ShadowMapSampler"}
 
CachedVertexShaderSetting< f32 > m_perspective_bias0_vertex {"xyPerspectiveBias0"}
 
CachedPixelShaderSetting< f32 > m_perspective_bias0_pixel {"xyPerspectiveBias0"}
 
CachedVertexShaderSetting< f32 > m_perspective_bias1_vertex {"xyPerspectiveBias1"}
 
CachedPixelShaderSetting< f32 > m_perspective_bias1_pixel {"xyPerspectiveBias1"}
 
CachedVertexShaderSetting< f32 > m_perspective_zbias_vertex {"zPerspectiveBias"}
 
CachedPixelShaderSetting< f32 > m_perspective_zbias_pixel {"zPerspectiveBias"}
 

Constructor & Destructor Documentation

◆ ShadowConstantSetter()

ShadowConstantSetter::ShadowConstantSetter ( )
default

◆ ~ShadowConstantSetter()

ShadowConstantSetter::~ShadowConstantSetter ( )
default

Member Function Documentation

◆ onSetConstants()

void ShadowConstantSetter::onSetConstants ( video::IMaterialRendererServices * services)
overridevirtual

Member Data Documentation

◆ m_camera_pos

CachedPixelShaderSetting<f32, 4> ShadowConstantSetter::m_camera_pos {"CameraPos"}
private

Referenced by onSetConstants().

◆ m_light_direction

CachedPixelShaderSetting<f32, 3> ShadowConstantSetter::m_light_direction {"v_LightDirection"}
private

Referenced by onSetConstants().

◆ m_perspective_bias0_pixel

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_perspective_bias0_pixel {"xyPerspectiveBias0"}
private

Referenced by onSetConstants().

◆ m_perspective_bias0_vertex

CachedVertexShaderSetting<f32> ShadowConstantSetter::m_perspective_bias0_vertex {"xyPerspectiveBias0"}
private

Referenced by onSetConstants().

◆ m_perspective_bias1_pixel

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_perspective_bias1_pixel {"xyPerspectiveBias1"}
private

Referenced by onSetConstants().

◆ m_perspective_bias1_vertex

CachedVertexShaderSetting<f32> ShadowConstantSetter::m_perspective_bias1_vertex {"xyPerspectiveBias1"}
private

Referenced by onSetConstants().

◆ m_perspective_zbias_pixel

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_perspective_zbias_pixel {"zPerspectiveBias"}
private

Referenced by onSetConstants().

◆ m_perspective_zbias_vertex

CachedVertexShaderSetting<f32> ShadowConstantSetter::m_perspective_zbias_vertex {"zPerspectiveBias"}
private

Referenced by onSetConstants().

◆ m_shadow_strength

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_shadow_strength {"f_shadow_strength"}
private

Referenced by onSetConstants().

◆ m_shadow_texture

CachedPixelShaderSetting<s32> ShadowConstantSetter::m_shadow_texture {"ShadowMapSampler"}
private

Referenced by onSetConstants().

◆ m_shadow_tint

CachedPixelShaderSetting<f32, 3> ShadowConstantSetter::m_shadow_tint { "shadow_tint" }
private

Referenced by onSetConstants().

◆ m_shadow_view_proj

CachedPixelShaderSetting<f32, 16> ShadowConstantSetter::m_shadow_view_proj {"m_ShadowViewProj"}
private

Referenced by onSetConstants().

◆ m_shadowfar

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_shadowfar {"f_shadowfar"}
private

Referenced by onSetConstants().

◆ m_texture_res

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_texture_res {"f_textureresolution"}
private

Referenced by onSetConstants().

◆ m_time_of_day

CachedPixelShaderSetting<f32> ShadowConstantSetter::m_time_of_day {"f_timeofday"}
private

Referenced by onSetConstants().


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