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 submitShadowCutoutState (const shadow_cutout_state &cutout) const
 
void destroy ()
 

Public Attributes

union { 
 
   struct { 
 
      float   m_ambientPass 
 
      float   m_lightingPass 
 
      float   m_unused00 
 
      float   m_numSplits 
 
   }  
 
   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 163 of file shadow.h.

Member Function Documentation

◆ destroy()

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

Definition at line 292 of file shadow.h.

◆ init()

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

Definition at line 165 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 228 of file shadow.h.

◆ submitConstUniforms()

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

Definition at line 247 of file shadow.h.

◆ submitPerDrawUniforms()

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

Definition at line 265 of file shadow.h.

◆ submitPerFrameUniforms()

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

Definition at line 256 of file shadow.h.

◆ submitShadowCutoutState()

void unravel::shadow::Uniforms::submitShadowCutoutState ( const shadow_cutout_state & cutout) const
inline

Definition at line 279 of file shadow.h.

Member Data Documentation

◆ [union]

◆ [union]

◆ [union]

◆ [union]

◆ m_ambientPass

float unravel::shadow::Uniforms::m_ambientPass

Definition at line 331 of file shadow.h.

◆ m_colorPtr

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

Definition at line 386 of file shadow.h.

◆ m_csmFarDistances

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

Definition at line 383 of file shadow.h.

◆ m_depthValuePow

float unravel::shadow::Uniforms::m_depthValuePow

Definition at line 357 of file shadow.h.

◆ m_lightingPass

float unravel::shadow::Uniforms::m_lightingPass

Definition at line 332 of file shadow.h.

◆ m_lightMtxPtr

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

Definition at line 385 of file shadow.h.

◆ m_lightPtr

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

Definition at line 387 of file shadow.h.

◆ m_numSplits

float unravel::shadow::Uniforms::m_numSplits

Definition at line 334 of file shadow.h.

◆ m_params0

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

Definition at line 337 of file shadow.h.

◆ m_params1

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

Definition at line 350 of file shadow.h.

◆ m_params2

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

Definition at line 363 of file shadow.h.

◆ m_paramsBlur

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

Definition at line 376 of file shadow.h.

◆ m_shadowMapBias

float unravel::shadow::Uniforms::m_shadowMapBias

Definition at line 344 of file shadow.h.

◆ m_shadowMapMtx0

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

Definition at line 388 of file shadow.h.

◆ m_shadowMapMtx1

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

Definition at line 389 of file shadow.h.

◆ m_shadowMapMtx2

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

Definition at line 390 of file shadow.h.

◆ m_shadowMapMtx3

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

Definition at line 391 of file shadow.h.

◆ m_shadowMapOffset

float unravel::shadow::Uniforms::m_shadowMapOffset

Definition at line 345 of file shadow.h.

◆ m_shadowMapParam0

float unravel::shadow::Uniforms::m_shadowMapParam0

Definition at line 346 of file shadow.h.

◆ m_shadowMapParam1

float unravel::shadow::Uniforms::m_shadowMapParam1

Definition at line 347 of file shadow.h.

◆ m_shadowMapTexelSize

float unravel::shadow::Uniforms::m_shadowMapTexelSize

Definition at line 359 of file shadow.h.

◆ m_showSmCoverage

float unravel::shadow::Uniforms::m_showSmCoverage

Definition at line 358 of file shadow.h.

◆ m_tetraNormalBlue

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

Definition at line 381 of file shadow.h.

◆ m_tetraNormalGreen

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

Definition at line 379 of file shadow.h.

◆ m_tetraNormalRed

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

Definition at line 382 of file shadow.h.

◆ m_tetraNormalYellow

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

Definition at line 380 of file shadow.h.

◆ m_unused00

float unravel::shadow::Uniforms::m_unused00

Definition at line 333 of file shadow.h.

◆ m_unused23

float unravel::shadow::Uniforms::m_unused23

Definition at line 360 of file shadow.h.

◆ m_XNum

float unravel::shadow::Uniforms::m_XNum

Definition at line 370 of file shadow.h.

◆ m_XOffset

float unravel::shadow::Uniforms::m_XOffset

Definition at line 372 of file shadow.h.

◆ m_YNum

float unravel::shadow::Uniforms::m_YNum

Definition at line 371 of file shadow.h.

◆ m_YOffset

float unravel::shadow::Uniforms::m_YOffset

Definition at line 373 of file shadow.h.


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