Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IColored

The IColored property interface.

This interface provides a generic way to specify individual colors for any of the possible components found in a regular lighting equation, in particular ambient, diffuse, specular and emissive components.

Animation controllers may call the SetColor() method when color keys are present in a given Resource::IAnimation.


Table members

Methods


SetColor(component, color)

Set the color value of a given lighting component.

Boolean SetColor(Murl.IEnums.LightingComponent component, Murl.Color color)

Parameters
componentThe lighting component.
colorThe color to set.
Returns
Boolean true if successful.

GetColor(component)

Get the color value set for a given lighting component.

Murl.Color GetColor(Murl.IEnums.LightingComponent component)

Parameters
componentThe lighting component.
Returns
Murl.Color The current color.