Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

struct Enlighten::BakeInputTexture

Texture object for the Baking.

Variables

NameDescription
Geo::s32 m_Height

Texture height.

Enlighten::CpuTextureElement * m_TextureData

Texture content.

Geo::s32 m_Width

Texture width.

Functions

NameDescription
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.


Anchor
ad8c9292c2290d497c6152af671eaee63
ad8c9292c2290d497c6152af671eaee63

Geo::s32 Enlighten::BakeInputTexture::ConvertToXindex

...

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

...

Return the x coordinate given u.


Anchor
a96a91add836870030294c5741939426d
a96a91add836870030294c5741939426d

Geo::s32 Enlighten::BakeInputTexture::ConvertToYindex

...

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

...

Return the y coordinate given v.


Anchor
ab866a9531d9913c1b6b45dfa80ffb1d2
ab866a9531d9913c1b6b45dfa80ffb1d2

CpuTextureElement Enlighten::BakeInputTexture::SampleTexture

...

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

...

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