ezEngine Release 26.3
Loading...
Searching...
No Matches
ezAmbientCube< T > Struct Template Reference

Template class for storing ambient lighting data in a cube format. More...

#include <AmbientCubeBasis.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
template<typename U >
 ezAmbientCube (const ezAmbientCube< U > &other)
 
template<typename U >
void operator= (const ezAmbientCube< U > &other)
 
bool operator== (const ezAmbientCube &other) const
 
bool operator!= (const ezAmbientCube &other) const
 
void AddSample (const ezVec3 &vDir, const T &value)
 
Evaluate (const ezVec3 &vNormal) const
 
ezResult Serialize (ezStreamWriter &inout_stream) const
 
ezResult Deserialize (ezStreamReader &inout_stream)
 
template<typename U >
EZ_ALWAYS_INLINE ezAmbientCube (const ezAmbientCube< U > &other)
 
template<typename U >
EZ_FORCE_INLINE void operator= (const ezAmbientCube< U > &other)
 

Public Attributes

m_Values [ezAmbientCubeBasis::NumDirs]
 

Detailed Description

template<typename T>
struct ezAmbientCube< T >

Template class for storing ambient lighting data in a cube format.

Stores lighting values for six directions (the cardinal axes) to approximate ambient lighting. Values can be added via directional samples and evaluated for any normal direction using trilinear interpolation.


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