Cerberus X Documentation

Interface ILayer

Declarations

Methods
EnumLayerLights : Void ( lights:Stack<ILight> ) Get lights to be rendered for layer.
LayerFogColor : Float[] () Get 4 component fog color for layer.
LayerLightMaskImage : Image () Get layer lightmask image.
LayerMatrix : Float[] () Get 4x4 layer matrix.
OnRenderLayer : Void ( drawLists:Stack<DrawList> ) Render current layer.

Methods Documentation

Method EnumLayerLights : Void ( lights:Stack<ILight> )

Get lights to be rendered for layer.

Method LayerFogColor : Float[] ()

Get 4 component fog color for layer.

Method LayerLightMaskImage : Image ()

Get layer lightmask image.

The image should use the LightMaskShader shader.

Method LayerMatrix : Float[] ()

Get 4x4 layer matrix.

Method OnRenderLayer : Void ( drawLists:Stack<DrawList> )

Render current layer.

Classes should push any drawlists that must be rendererd to the drawLists stack.