Click or drag to resize
Ab4d.SharpEngine logo

SceneSetAmbientLight(Color3) Method

Sets the ambient light for this scene to the specified color.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public void SetAmbientLight(
	Color3 ambientLightColor
)

Parameters

ambientLightColor  Color3
Color3
Remarks

Sets the ambient light for this scene to the specified color.

This method searches for existing AmbientLight in the Lights collection. If found, then its Color is set to the specified color. If no AmbientLight is found, then a new AmbientLight is created and added to the Lights collection. If there are more then one AmbientLight in the Lights collection, then only the first one is preserved, all others are removed.

See Also