Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Lightmapper::CLightmapper Class Reference

Public Member Functions

void initBaker (u32 hemisphereBakeSize=128)
void release ()
const CSH9bakeAtPosition (CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr, const core::vector3df &position, const core::vector3df &normal, const core::vector3df &tangent, const core::vector3df &binormal, int numFace=NUM_FACES)
void bakeAtPosition (CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr, const core::vector3df *position, const core::vector3df *normal, const core::vector3df *tangent, const core::vector3df *binormal, std::vector< CSH9 > &out, int count, int numFace=NUM_FACES)
void bakeProbes (std::vector< CLightProbe * > &probes, CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr)
void bakeProbes (std::vector< core::vector3df > &position, std::vector< CSH9 > &probes, CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr)
int bakeMeshBuffer (IMeshBuffer *mb, const core::matrix4 &transform, CCamera *camera, IRenderPipeline *rp, CEntityManager *entityMgr, int begin, int count, core::array< SColor > &outColor, core::array< CSH9 > &outSH)

Static Public Member Functions

static void setNumThread (u32 num)
static void setHemisphereBakeSize (u32 size)
static u32 getNumThread ()
static u32 getHemisphereBakeSize ()

Protected Attributes

CBakerm_singleBaker
CMTBakerm_multiBaker
CGPUBakerm_gpuBaker
CSH9 m_temp

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