Table of Contents

Class PointLight

Namespace
OmegaEngine.Graphics.LightSources
Assembly
OmegaEngine.dll

A light source that has a fixed position and shines uniformly in all directions.

public sealed class PointLight : LightSource, IPositionable
Inheritance
object
PointLight
Implements
Inherited Members

Properties

Attenuation

Factors describing the attenuation of light intensity over distance.

public Attenuation Attenuation { get; set; }

Property Value

Attenuation

Position

The position of the light source

public DoubleVector3 Position { get; set; }

Property Value

DoubleVector3

Range

The maximum distance at which the light source has an effect.

public float Range { get; }

Property Value

float

RenderAsDirectional

Shall this light source be converted to a pseudo-directional source for each individual PositionableRenderable before rendering?

public bool RenderAsDirectional { get; set; }

Property Value

bool

Shift

Stores an offset used by game logic positioning code. Ignore by the engine itself!

public Vector3 Shift { 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