Versions Compared

Key

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

class Enlighten::BakeMaterialInfo

The material description for baking.

Functions

NameDescription
ConvertToOpacityBasedOnMode(const Geo::v128 &)

Convert the transparency/opacity based on TransparencyOrOpacityMode.

ConvertToTransparencyBasedOnMode(const Geo::v128 &)

Returns the Opacity colour.

GetOpacityColourBasedOnMode()

Returns the Transparency colour.

GetTransparencyColourBasedOnMode()

Returns the Opacity colour.

Variables

NameDescription
ePrecompMaterialBackfaceBehaviourType BackfaceBehaviourType

How backfaces should behave.

float NormalScale

Scale applied to normal to exaggerate normal perturbation.

GeoTextureString NormalTexture

Texture defining tangent-space normal-mapping.

Geo::v128 NormalUvOffset

Offset applied to UVs used for normal-mapping. This is applied after the UV scale.

Geo::v128 NormalUvScale

Scale applied to UVs used for normal-mapping.

eShadowfaceBehaviourType ShadowfaceBehaviourType

Shadow casting faces.

Geo::v128 TransparencyOrOpacityColour

Solid colour material transparency/opacity. Not used if a texture is defined.

eTransparencyOrOpacityMode TransparencyOrOpacityMode

Returns the Transparency colour.

GeoTextureString TransparencyOrOpacityTexture

Texture defining the transparency/opacity over the material. UVs are taken from channel 0 (the albedo channel).

Geo::v128 TransparencyOrOpacityUvOffset

Offset applied to UVs used for transparency/opacity texture.

Geo::v128 TransparencyOrOpacityUvScale

Scale applied to UVs used for transparency/opacity texture.

Enums

NameDescription
eShadowfaceBehaviourType

Shadowface behaviour type.

eTransparencyOrOpacityMode

A choice of transparency or opacity.


Anchor
abaa20bb6fb3f9332dac67a8fd23d6c77
abaa20bb6fb3f9332dac67a8fd23d6c77

Geo::v128 Enlighten::BakeMaterialInfo::ConvertToOpacityBasedOnMode

...

public: Geo::v128 ConvertToOpacityBasedOnMode
(
    const Geo::v128 & colour
) const

...

Convert the transparency/opacity based on TransparencyOrOpacityMode.


Anchor
a9e2167c79a1b573f11e0683c07894a04
a9e2167c79a1b573f11e0683c07894a04

Geo::v128 Enlighten::BakeMaterialInfo::ConvertToTransparencyBasedOnMode

...

public: Geo::v128 ConvertToTransparencyBasedOnMode
(
    const Geo::v128 & colour
) const

...

Returns the Opacity colour.


Anchor
a6bfea0d37383f0a5cd8e8395745fba43
a6bfea0d37383f0a5cd8e8395745fba43

Geo::v128 Enlighten::BakeMaterialInfo::GetOpacityColourBasedOnMode

...

public: Geo::v128 GetOpacityColourBasedOnMode() const

...

Returns the Transparency colour.


Anchor
af6dc92d85928dd6d8e7b013dac719841
af6dc92d85928dd6d8e7b013dac719841

Geo::v128 Enlighten::BakeMaterialInfo::GetTransparencyColourBasedOnMode

...

public: Geo::v128 GetTransparencyColourBasedOnMode() const

...

Returns the Opacity colour.


Anchor
ad4e31bbb7cc9caca0cf5df2eb1aad4b9
ad4e31bbb7cc9caca0cf5df2eb1aad4b9

eShadowfaceBehaviourType

...

public: enum eShadowfaceBehaviourType
{
    ShadowfaceBehaviourTypeFront,
    ShadowfaceBehaviourTypeBack,
    ShadowfaceBehaviourTypeBoth,
    ShadowfaceBehaviourTypeBothWithInvalidBack,
    ShadowfaceBehaviourTypeDefault = ShadowfaceBehaviourTypeBoth
}

...

Shadowface behaviour type.

enumerators
ShadowfaceBehaviourTypeFront
ShadowfaceBehaviourTypeBack
ShadowfaceBehaviourTypeBoth
ShadowfaceBehaviourTypeBothWithInvalidBack
ShadowfaceBehaviourTypeDefault


Anchor
a1ed7bc3ee44e2d15e0592567fc613a76
a1ed7bc3ee44e2d15e0592567fc613a76

eTransparencyOrOpacityMode

...

public: enum eTransparencyOrOpacityMode
{
    Transparency,
    Opacity
}

...

A choice of transparency or opacity.

enumerators
Transparency

Interpret transparency values as transparency.

Opacity

Interpret transparency values as opacity.