This is the documentation for Enlighten.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

Name Description
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

Name Description
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

Name Description
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.


static PipelineMaterial Enlighten::PipelineMaterial::Opaque


public: PipelineMaterial Opaque()


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


static PipelineMaterial Enlighten::PipelineMaterial::Thin


public: PipelineMaterial Thin()


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


static PipelineMaterial Enlighten::PipelineMaterial::Translucent


public: PipelineMaterial Translucent()


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


static PipelineMaterial Enlighten::PipelineMaterial::Transmit


public: PipelineMaterial Transmit()


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

  • No labels