Class DirectionalLight
- Namespace
- OmegaEngine.Graphics.LightSources
- Assembly
- OmegaEngine.dll
A light source that has no position and shines in one direction.
public sealed class DirectionalLight : LightSource
- Inheritance
-
objectDirectionalLight
- Inherited Members
Constructors
DirectionalLight()
public DirectionalLight()
Properties
Direction
The direction light emitted by this light source travels in
public Vector3 Direction { get; set; }
Property Value
- Vector3
SourceDistance
The distance from the emitting body to the objects being lit.
public float SourceDistance { get; set; }
Property Value
Remarks
Used together with SourceRadius to taper shadow volumes into umbra cones. PositiveInfinity for an idealized parallel source, whose shadow volumes never converge.
Methods
GetShadowed(BoundingSphere, BoundingSphere)
Creates a copy of this light source with simple shadowing applied.
public override LightSource GetShadowed(BoundingSphere receiverSphere, BoundingSphere casterSphere)
Parameters
receiverSphereBoundingSphereThe bounding sphere of the shadow receiver in world space.
casterSphereBoundingSphereThe bounding sphere of the shadow caster in world space.