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.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
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