Simple3D
Search Results for

    Show / Hide Table of Contents

    Class DirectionalLight

    Immutable world-space light emitting parallel rays, without shadows.

    Inheritance
    object
    DirectionalLight
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Simple3D.Core
    Assembly: Simple3D.Core.dll
    Syntax
    public sealed class DirectionalLight

    Constructors

    | Edit this page View Source

    DirectionalLight(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 Source

    Color

    Opaque packed RGB light color.

    Declaration
    public uint Color { get; }
    Property Value
    Type Description
    uint
    | Edit this page View Source

    Direction

    Normalized direction in which rays travel, from the light toward the scene.

    Declaration
    public Vector3 Direction { get; }
    Property Value
    Type Description
    Vector3
    | Edit this page View Source

    Intensity

    Diffuse intensity in [0,1].

    Declaration
    public float Intensity { get; }
    Property Value
    Type Description
    float
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX