Click or drag to resize
Ab4d.SharpEngine logo

AmbientLight Class

AmbientLight is a light that adds the specified color to all objects in the scene (as a light would be illuminating the scene from all directions).
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.CoreComponentBase
    Ab4d.SharpEngine.LightsLight
      Ab4d.SharpEngine.LightsAmbientLight

Namespace: Ab4d.SharpEngine.Lights
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public class AmbientLight : Light, 
	IAmbientLight, ILight

The AmbientLight type exposes the following members.

Constructors
 NameDescription
Public methodAmbientLight Initializes a new instance of the AmbientLight class and sets its intensity to 0.3.
Public methodAmbientLight(Color3) Initializes a new instance of the AmbientLight class.
Public methodAmbientLight(Single) Initializes a new instance of the AmbientLight class.
Top
Methods
 NameDescription
Public methodSetIntensity Sets the intensity of the ambient light - intensity can be from 0 to 1 - 0 means Black color, 1 means White color.
Public methodToString Returns a string that represents the current object.
(Overrides ObjectToString)
Top
See Also