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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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