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

Public Types

enum  ERasterPass {
  Space4A = 0 , Space2BX , Space2BY , Space4C ,
  Space1DX , Space1DY , Space1E , PassCount
}

Public Member Functions

 CRasterisation (int width, int height)
void resetBake ()
int getPixelStep (ERasterPass pass)
int getPassOffsetX (ERasterPass pass)
int getPassOffsetY (ERasterPass pass)
bool isInterpolateX (ERasterPass pass)
bool isInterpolateY (ERasterPass pass)
core::vector2di setTriangle (const core::vector3df *position, const core::vector2df *uv, const core::vector3df *normal, const core::vector3df *tangent, ERasterPass pass)
bool samplingTrianglePosition (core::vector3df &outPosition, core::vector3df &outNormal, core::vector3df &outTangent, core::vector3df &outBinormal, core::vector2di &lmPixel)
void imageDilate ()
bool moveNextPixel (core::vector2di &lmPixel)
bool isFinished (const core::vector2di &lmPixel)
void setInterpolationThreshold (float f)
int getWidth ()
int getHeight ()
unsigned char * getTestBakeImage ()
unsigned char * getLightmapData ()
bool tryInterpolate (int x, int y)
void getLightmapPixel (int x, int y, float *color)
bool isBaked (int x, int y)
core::array< SBakePixel > & getBakePixelQueue ()
void flushPixel (std::vector< CSH9 > &bakeResults)
void save (CMemoryStream *stream)
void load (CMemoryStream *stream)

Protected Attributes

bool * m_bakedData
int m_width
int m_height
core::vector2di m_uvMin
core::vector2di m_uvMax
core::vector2df m_uvf [3]
core::vector3df m_position [3]
core::vector2df m_uv [3]
core::vector3df m_normal [3]
core::vector3df m_tangent [3]
core::array< SBakePixelm_bakePixels
ERasterPass m_currentPass
unsigned char * m_lightmapData
unsigned char * m_testBakedData
float m_interpolationThreshold

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