Table of Contents

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
object
DirectionalLight
Inherited Members

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

float

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.

[Pure]
public override LightSource GetShadowed(BoundingSphere receiverSphere, BoundingSphere casterSphere)

Parameters

receiverSphere BoundingSphere

The bounding sphere of the shadow receiver in world space.

casterSphere BoundingSphere

The bounding sphere of the shadow caster in world space.

Returns

LightSource