This is the documentation for Enlighten.

struct Enlighten ExporterMaterialProperties

struct Enlighten::ExporterMaterialProperties

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.

LinearColor m_DynamicAlbedo

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

LinearColor m_DynamicEmissive

The uniform emissive color 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 ExporterMaterialProperties &left, const ExporterMaterialProperties &right)

Returns true if left is not equal to right.

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

Returns true if left is equal to right.


static ExporterMaterialProperties Enlighten::ExporterMaterialProperties::Opaque


public: ExporterMaterialProperties Opaque()


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


static ExporterMaterialProperties Enlighten::ExporterMaterialProperties::Thin


public: ExporterMaterialProperties Thin()


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


static ExporterMaterialProperties Enlighten::ExporterMaterialProperties::Translucent


public: ExporterMaterialProperties Translucent()


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


static ExporterMaterialProperties Enlighten::ExporterMaterialProperties::Transmit


public: ExporterMaterialProperties Transmit()


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