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

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