LightingModel.setAmbientLight()
Type | function |
Library | wattageTileEngine.LightingModel.* |
Return value | VOID |
Keywords | |
See also |
Overview
This function sets the values for ambient lighting.
Syntax
LightingModel.setAmbientLight( r, g, b, i )
r (required)
Number. The red value of the light. Number should be in range 0 to 1.
g (required)
Number. The green value of the light. Number should be in range 0 to 1.
b (required)
Number. The blue value of the light. Number should be in range 0 to 1.
intensity (required)
Number. The intensity of the light. Number should be greater than or equal to zero. An intensity greater than one will be quite bright.
Examples
-- Set a medium intensity white ambient light
lightingModelInstance.setAmbientLight(1, 1, 1, 0.5)