Click or drag to resize
LightSource Class
Basic light source entity.
Inheritance Hierarchy
SystemObject
  GeonBit.Core.Graphics.LightsLightSource

Namespace:  GeonBit.Core.Graphics.Lights
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class LightSource

The LightSource type exposes the following members.

Constructors
  NameDescription
Public methodLightSource
Initializes a new instance of the LightSource class
Top
Properties
  NameDescription
Public propertyBoundingSphere
Light bounding sphere.
Public propertyColor
Light color and strength (A field = light strength).
Public propertyDirection
Light direction, if its a directional light.
Public propertyIntensity
Light Intensity (equivilent to Color.A).
Public propertyIsDirectionalLight
Return if this light is a directional light.
Public propertyIsInfinite
Return if this light source is infinite, eg has no range and reach anywhere (like a directional light).
Public propertyParamsVersion
So we can cache lights and identify when they were changed.
Public propertyPosition
Light position in world space.
Public propertyRange
Light range.
Public propertySpecular
Specular factor.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetFloatBuffer
Get the source light as a buffer of floats, in the following format: float3 Color, float3 Position, float Intensity, float Range, float specular. Note: if its a directional light, we'll get Direction instead of Position.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRecalcBoundingSphere
Recalculate light bounding sphere after transformations or radius change.
Public methodRemove
Remove self from parent lights manager.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateTransforms
Update light transformations.
Top
Fields
  NameDescription
Public fieldVisible
Is this light source currently visible?
Top
See Also