Syntax

dbSetTerrainLight(TerrainID, xDirection.f, yDirection.f, zDirection.f, Red.f, Green.f, Blue.f, Scale.f)

Description

Sets the light properties of the terrain. The direction of the light is set by the parameters xDirection, yDirectionand zDirection. The colour of the light is controlled by the parameters Red, Green and Blue. These parameters must be passed in as floats. Setting them to 1.0, 1.0, 1.0 will result in a bright white light whereas a value of 0.0, 0.0, 0.0 will provide a black light. The Scale paramter controls the intensity of the shadowing. Again this is a floating point value. A value of 0.0 will provide a very dark shadow on the terrain. A value of 1.0 will provide a very light shadow.

See Also

dbSetTerrainScale, dbSetTerrainSplit, dbSetTerrainTexture, dbSetTerrainTiling