This is the documentation for Enlighten.

struct Enlighten BakeInputTexture

struct Enlighten::BakeInputTexture

Texture object for the Baking.

Variables

Name Description
Geo::s32 m_Height

Texture height.

Enlighten::CpuTextureElement * m_TextureData

Texture content.

Geo::s32 m_Width

Texture width.

Functions

Name Description
ConvertToXindex(float)

Return the x coordinate given u.

ConvertToYindex(float)

Return the y coordinate given v.

SampleTexture(float, float)

Sample (nearest) the texture at (u,v) coordinate.


Geo::s32 Enlighten::BakeInputTexture::ConvertToXindex


public: Geo::s32 ConvertToXindex
(
    float u
) const


Return the x coordinate given u.


Geo::s32 Enlighten::BakeInputTexture::ConvertToYindex


public: Geo::s32 ConvertToYindex
(
    float v
) const


Return the y coordinate given v.


CpuTextureElement Enlighten::BakeInputTexture::SampleTexture


public: CpuTextureElement SampleTexture
(
    float u,
    float v
) const


Sample (nearest) the texture at (u,v) coordinate.