SetTerrainAmbient

Definition

SetTerrainAmbient(float red, float green, float blue)

Description

This function sets the ambient color of terrain object.

Parameters

red, green, blue
Specify the red, green and blue components of terrain ambient color. Each value is in the range [0.0,1.0].

Example

function Init()
    SetTerrainAmbient(0.25, 0.5, 0.75)
end

function Update()

end
In this example, the SetTerrainAmbient function sets the red, green, and blue components of the terrain ambient color to (0.25, 0.5, 0.75), respectively.
adminSetTerrainAmbient