SetTerrainSpecular

Definition

SetTerrainSpecular(float red, float green, float blue)

Description

This function sets the specular color of terrain object.

Parameters

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

Example

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

function Update()

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