LightSource Class |
Namespace: GeonBit.Core.Graphics.Lights
public class LightSource
The LightSource type exposes the following members.
Name | Description | |
---|---|---|
LightSource | Initializes a new instance of the LightSource class |
Name | Description | |
---|---|---|
BoundingSphere |
Light bounding sphere.
| |
Color |
Light color and strength (A field = light strength).
| |
Direction |
Light direction, if its a directional light.
| |
Intensity |
Light Intensity (equivilent to Color.A).
| |
IsDirectionalLight |
Return if this light is a directional light.
| |
IsInfinite |
Return if this light source is infinite, eg has no range and reach anywhere (like a directional light).
| |
ParamsVersion |
So we can cache lights and identify when they were changed.
| |
Position |
Light position in world space.
| |
Range |
Light range.
| |
Specular |
Specular factor.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetFloatBuffer |
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.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
RecalcBoundingSphere |
Recalculate light bounding sphere after transformations or radius change.
| |
Remove |
Remove self from parent lights manager.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateTransforms |
Update light transformations.
|