Versions Compared

Key

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

class Enlighten::PrecompMaterialInfo

Material precompute properties. Assign these to specific instance, mesh and material GUIDs using SetMaterialInfo on an IPrecompInputSystem object.

Variables

NameDescription
ePrecompMaterialBackfaceBehaviourType m_BackfaceBehaviourType

Behaviour of triangle backfaces.

float m_IndirectReflectivity

Indirect reflectivity.

float m_IndirectTransparency

Indirect transparency.

bool m_IsEmissive

Is this material going to be emissive at runtime?

ePrecompMaterialShadowfaceBehaviourType m_ShadowfaceBehaviourType

Which triangle faces cast shadows.

Functions

NameDescription
IsBackfaceValid()

Checks if backfaces of this material are considered valid.

IsClusteringImportant()

materials that are "clustering important" affect precompute preclustering and clustering.

IsEmissive()

Checks if this material is marked as emissive.

IsFullyTransparent()

Checks if this material is fully transparent.

IsOccluder()

Checks if this material is an occluder.

operator==(PrecompMaterialInfo const &)

Comparison between two PrecompMaterialInfos.

PrecompMaterialInfo()

Construct a new PrecompMaterialInfo object.


Anchor
a0564c5bd57d37e622147e8cc5f749e78
a0564c5bd57d37e622147e8cc5f749e78

bool Enlighten::PrecompMaterialInfo::IsBackfaceValid

...

public: bool IsBackfaceValid() const

...

Checks if backfaces of this material are considered valid.


Anchor
a6af69c7860c871d4232fb578459a24cc
a6af69c7860c871d4232fb578459a24cc

bool Enlighten::PrecompMaterialInfo::IsClusteringImportant

...

public: bool IsClusteringImportant() const

...

materials that are "clustering important" affect precompute preclustering and clustering.

preclustering: given leaf cluster can contain only triangles with either non-important materials or triangles with the same important materials i.e. there is no mixing of different important materials and no mixing of important and non-important materials in leaf clusters. clustering: leaf clusters with important materials are cut into separate cluster trees (one per important material)


Anchor
a20c898439765ddac12889f0c5c013b40
a20c898439765ddac12889f0c5c013b40

bool Enlighten::PrecompMaterialInfo::IsEmissive

...

public: bool IsEmissive() const

...

Checks if this material is marked as emissive.


Anchor
ac45da634d9b2d613146e8ca8d0669534
ac45da634d9b2d613146e8ca8d0669534

bool Enlighten::PrecompMaterialInfo::IsFullyTransparent

...

public: bool IsFullyTransparent() const

...

Checks if this material is fully transparent.


Anchor
ac5e5d567caec3e12a5511da20df73e2e
ac5e5d567caec3e12a5511da20df73e2e

bool Enlighten::PrecompMaterialInfo::IsOccluder

...

public: bool IsOccluder() const

...

Checks if this material is an occluder.


Anchor
aed8272135e2dcf90dc951b46827a188b
aed8272135e2dcf90dc951b46827a188b

bool Enlighten::PrecompMaterialInfo::operator==

...

public: bool operator==
(
    PrecompMaterialInfo const & other
) const

...

Comparison between two PrecompMaterialInfos.


Anchor
a6f6bb9ed4397a8908d388c1d3b05f3ad
a6f6bb9ed4397a8908d388c1d3b05f3ad

Enlighten::PrecompMaterialInfo::PrecompMaterialInfo

...

public: PrecompMaterialInfo()

...

Construct a new PrecompMaterialInfo object.