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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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