Table of Contents

Namespace OmegaEngine.Graphics.LightSources

Light sources illuminate PositionableRenderables in a Scene.

Tip

To enable lighting in a View, set the Lighting property to true and add light sources to the scene's Lights collection.

var view = new View(scene, camera) { Lighting = true };
scene.Lights.Add(new DirectionalLight
{
    Direction = new(-1, -1, 1),
    Diffuse = Color.White
});

Classes

DirectionalLight

A light source that has no position and shines in one direction.

LightSource

A light source that illuminates PositionableRenderables in a Scene.

PointLight

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