Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::shadow::Uniforms Struct Reference

#include <shadow.h>

Public Member Functions

void init ()
 
void setPtrs (Light *_lightPtr, float *_colorPtr, float *_lightMtxPtr, float *_shadowMapMtx0, float *_shadowMapMtx1, float *_shadowMapMtx2, float *_shadowMapMtx3)
 
void submitConstUniforms () const
 
void submitPerFrameUniforms () const
 
void submitPerDrawUniforms () const
 
void destroy ()
 

Public Attributes

union { 
 
   struct { 
 
      float   m_ambientPass 
 
      float   m_lightingPass 
 
      float   m_unused00 
 
      float   m_unused01 
 
   }  
 
   float   m_params0 [4] 
 
};  
 
union { 
 
   struct { 
 
      float   m_shadowMapBias 
 
      float   m_shadowMapOffset 
 
      float   m_shadowMapParam0 
 
      float   m_shadowMapParam1 
 
   }  
 
   float   m_params1 [4] 
 
};  
 
union { 
 
   struct { 
 
      float   m_depthValuePow 
 
      float   m_showSmCoverage 
 
      float   m_shadowMapTexelSize 
 
      float   m_unused23 
 
   }  
 
   float   m_params2 [4] 
 
};  
 
union { 
 
   struct { 
 
      float   m_XNum 
 
      float   m_YNum 
 
      float   m_XOffset 
 
      float   m_YOffset 
 
   }  
 
   float   m_paramsBlur [4] 
 
};  
 
float m_tetraNormalGreen [3]
 
float m_tetraNormalYellow [3]
 
float m_tetraNormalBlue [3]
 
float m_tetraNormalRed [3]
 
float m_csmFarDistances [4]
 
float * m_lightMtxPtr
 
float * m_colorPtr
 
Lightm_lightPtr
 
float * m_shadowMapMtx0
 
float * m_shadowMapMtx1
 
float * m_shadowMapMtx2
 
float * m_shadowMapMtx3
 

Detailed Description

Definition at line 159 of file shadow.h.

Member Function Documentation

◆ destroy()

void unravel::shadow::Uniforms::destroy ( )
inline

Definition at line 268 of file shadow.h.

◆ init()

void unravel::shadow::Uniforms::init ( )
inline

Definition at line 161 of file shadow.h.

◆ setPtrs()

void unravel::shadow::Uniforms::setPtrs ( Light * _lightPtr,
float * _colorPtr,
float * _lightMtxPtr,
float * _shadowMapMtx0,
float * _shadowMapMtx1,
float * _shadowMapMtx2,
float * _shadowMapMtx3 )
inline

Definition at line 219 of file shadow.h.

◆ submitConstUniforms()

void unravel::shadow::Uniforms::submitConstUniforms ( ) const
inline

Definition at line 238 of file shadow.h.

◆ submitPerDrawUniforms()

void unravel::shadow::Uniforms::submitPerDrawUniforms ( ) const
inline

Definition at line 256 of file shadow.h.

◆ submitPerFrameUniforms()

void unravel::shadow::Uniforms::submitPerFrameUniforms ( ) const
inline

Definition at line 247 of file shadow.h.

Member Data Documentation

◆ [union]

◆ [union]

◆ [union]

◆ [union]

◆ m_ambientPass

float unravel::shadow::Uniforms::m_ambientPass

Definition at line 294 of file shadow.h.

◆ m_colorPtr

float* unravel::shadow::Uniforms::m_colorPtr

Definition at line 349 of file shadow.h.

◆ m_csmFarDistances

float unravel::shadow::Uniforms::m_csmFarDistances[4]

Definition at line 346 of file shadow.h.

◆ m_depthValuePow

float unravel::shadow::Uniforms::m_depthValuePow

Definition at line 320 of file shadow.h.

◆ m_lightingPass

float unravel::shadow::Uniforms::m_lightingPass

Definition at line 295 of file shadow.h.

◆ m_lightMtxPtr

float* unravel::shadow::Uniforms::m_lightMtxPtr

Definition at line 348 of file shadow.h.

◆ m_lightPtr

Light* unravel::shadow::Uniforms::m_lightPtr

Definition at line 350 of file shadow.h.

◆ m_params0

float unravel::shadow::Uniforms::m_params0[4]

Definition at line 300 of file shadow.h.

◆ m_params1

float unravel::shadow::Uniforms::m_params1[4]

Definition at line 313 of file shadow.h.

◆ m_params2

float unravel::shadow::Uniforms::m_params2[4]

Definition at line 326 of file shadow.h.

◆ m_paramsBlur

float unravel::shadow::Uniforms::m_paramsBlur[4]

Definition at line 339 of file shadow.h.

◆ m_shadowMapBias

float unravel::shadow::Uniforms::m_shadowMapBias

Definition at line 307 of file shadow.h.

◆ m_shadowMapMtx0

float* unravel::shadow::Uniforms::m_shadowMapMtx0

Definition at line 351 of file shadow.h.

◆ m_shadowMapMtx1

float* unravel::shadow::Uniforms::m_shadowMapMtx1

Definition at line 352 of file shadow.h.

◆ m_shadowMapMtx2

float* unravel::shadow::Uniforms::m_shadowMapMtx2

Definition at line 353 of file shadow.h.

◆ m_shadowMapMtx3

float* unravel::shadow::Uniforms::m_shadowMapMtx3

Definition at line 354 of file shadow.h.

◆ m_shadowMapOffset

float unravel::shadow::Uniforms::m_shadowMapOffset

Definition at line 308 of file shadow.h.

◆ m_shadowMapParam0

float unravel::shadow::Uniforms::m_shadowMapParam0

Definition at line 309 of file shadow.h.

◆ m_shadowMapParam1

float unravel::shadow::Uniforms::m_shadowMapParam1

Definition at line 310 of file shadow.h.

◆ m_shadowMapTexelSize

float unravel::shadow::Uniforms::m_shadowMapTexelSize

Definition at line 322 of file shadow.h.

◆ m_showSmCoverage

float unravel::shadow::Uniforms::m_showSmCoverage

Definition at line 321 of file shadow.h.

◆ m_tetraNormalBlue

float unravel::shadow::Uniforms::m_tetraNormalBlue[3]

Definition at line 344 of file shadow.h.

◆ m_tetraNormalGreen

float unravel::shadow::Uniforms::m_tetraNormalGreen[3]

Definition at line 342 of file shadow.h.

◆ m_tetraNormalRed

float unravel::shadow::Uniforms::m_tetraNormalRed[3]

Definition at line 345 of file shadow.h.

◆ m_tetraNormalYellow

float unravel::shadow::Uniforms::m_tetraNormalYellow[3]

Definition at line 343 of file shadow.h.

◆ m_unused00

float unravel::shadow::Uniforms::m_unused00

Definition at line 296 of file shadow.h.

◆ m_unused01

float unravel::shadow::Uniforms::m_unused01

Definition at line 297 of file shadow.h.

◆ m_unused23

float unravel::shadow::Uniforms::m_unused23

Definition at line 323 of file shadow.h.

◆ m_XNum

float unravel::shadow::Uniforms::m_XNum

Definition at line 333 of file shadow.h.

◆ m_XOffset

float unravel::shadow::Uniforms::m_XOffset

Definition at line 335 of file shadow.h.

◆ m_YNum

float unravel::shadow::Uniforms::m_YNum

Definition at line 334 of file shadow.h.

◆ m_YOffset

float unravel::shadow::Uniforms::m_YOffset

Definition at line 336 of file shadow.h.


The documentation for this struct was generated from the following file: