Versions Compared

Key

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

struct Enlighten::PipelineMaterial

The properties of an Enlighten material that are relevant to radiosity.

Note that albedo/emissive are not required by the precompute and included for debugging purposes only.

Variables

NameDescription
ePrecompMaterialBackfaceBehaviourType m_BackfaceType

The way Enlighten interprets the backfaces of surfaces using the material.

Geo::GeoVector4 m_DynamicAlbedo

The uniform albedo colour of the material. This value is used only for debugging and has no effect on the precompute.

Geo::GeoVector4 m_DynamicEmissive

The uniform emissive colour of the material. This value is used only for debugging and has no effect on the precompute.

bool m_Emissive

True if the material is intended to emit light.

float m_IndirectReflectivity

The proportion of incoming indirect light that is reflected by surfaces using the material.

float m_IndirectTransparency

The proportion of incoming indirect light that passes through surfaces using the material.

Functions

NameDescription
Opaque()

The default values used by the HLBS if a material attribute is left unspecified.

Thin()

An opaque material which represents a thin surface of which both sides are visible.

Translucent()

A translucent material which reflects only 50% of the light hitting it.

Transmit()

An opaque material which reflects 50% and transmits 50% of the light hitting it.

Friends

NameDescription
friend bool operator!=(const PipelineMaterial &left, const PipelineMaterial &right)

Returns true if left is not equal to right.

friend bool operator==(const PipelineMaterial &left, const PipelineMaterial &right)

Returns true if left is equal to right.


Anchor
ad95cedf213d9ae2ec3989b4ad29a2ec8
ad95cedf213d9ae2ec3989b4ad29a2ec8

static PipelineMaterial Enlighten::PipelineMaterial::Opaque

...

public: PipelineMaterial Opaque()

...

The default values used by the HLBS if a material attribute is left unspecified.


Anchor
ada46621d9856c0817ddcb5e2a6666a1a
ada46621d9856c0817ddcb5e2a6666a1a

static PipelineMaterial Enlighten::PipelineMaterial::Thin

...

public: PipelineMaterial Thin()

...

An opaque material which represents a thin surface of which both sides are visible.


Anchor
ad783c1ccc917bd3267879b49aebee664
ad783c1ccc917bd3267879b49aebee664

static PipelineMaterial Enlighten::PipelineMaterial::Translucent

...

public: PipelineMaterial Translucent()

...

A translucent material which reflects only 50% of the light hitting it.


Anchor
a4b79369529f1113a6c055fe9bd477061
a4b79369529f1113a6c055fe9bd477061

static PipelineMaterial Enlighten::PipelineMaterial::Transmit

...

public: PipelineMaterial Transmit()

...

An opaque material which reflects 50% and transmits 50% of the light hitting it.