Skip to content

Mojo graphics canvas endlighting

mojo:mojo.graphics.Canvas.EndLighting

Method EndLighting:Void( )#

Renders lighting and ends lighting mode.

Renders any lights and shadows casters added to the canvas through calls to AddLight and AddShadowCaster and ends lighting mode.

Any lights and shadow casters added to the canvas are also removed and must be added again later if you want to render them again.

This method must be called while the canvas is in lighting mode.