Class DirectionalLight
Immutable world-space light emitting parallel rays, without shadows.
Inherited Members
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public sealed class DirectionalLight
Constructors
| Edit this page View SourceDirectionalLight(Vector3, uint, float)
Creates a light with a finite nonzero ray direction, opaque color, and intensity in [0,1].
Declaration
public DirectionalLight(Vector3 direction, uint color = 4294967295, float intensity = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | direction | |
| uint | color | |
| float | intensity |
Properties
| Edit this page View SourceColor
Opaque packed RGB light color.
Declaration
public uint Color { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Direction
Normalized direction in which rays travel, from the light toward the scene.
Declaration
public Vector3 Direction { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Intensity
Diffuse intensity in [0,1].
Declaration
public float Intensity { get; }
Property Value
| Type | Description |
|---|---|
| float |