gpu-curtains
    Preparing search index...

    Interface DirectionalLightBaseParams

    Base parameters used to create a DirectionalLight.

    interface DirectionalLightBaseParams {
        position?: Vec3;
        target?: Vec3;
        shadow?: Omit<DirectionalShadowParams, "light">;
        label?: string;
        color?: Vec3;
        intensity?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    position?: Vec3

    The DirectionalLight position. Default to Vec3(1).

    target?: Vec3

    The DirectionalLight target. Default to Vec3(0).

    shadow?: Omit<DirectionalShadowParams, "light">

    The DirectionalLight shadow parameters used to create a DirectionalShadow. If not set, the DirectionalShadow won't be set as active and won't cast any shadows. On the other hand, if anything is passed (even an empty object), the DirectionalShadow will start casting shadows, so use with caution. Default to null (which means the DirectionalLight will not cast shadows).

    label?: string

    Optional label of the Light.

    color?: Vec3

    The Light color. Default to Vec3(1).

    intensity?: number

    The Light intensity. Default to 1.