Header menu logo Nu

Light3dModule Module

3D light operations.

Functions and values

Function or value Description

Light3dModule.getCascadedLightOrigin lightRotation lightCutoff world

Full Usage: Light3dModule.getCascadedLightOrigin lightRotation lightCutoff world

Parameters:
Returns: Vector3

Compute the origin for a cascaded light's shadow map, snapping it to texel-sized increments.

lightRotation : Quaternion
lightCutoff : 'a
world : World
Returns: Vector3

Light3dModule.getDirectionalLightOrigin lightRotation lightCutoff offsetForwardScalar world

Full Usage: Light3dModule.getDirectionalLightOrigin lightRotation lightCutoff offsetForwardScalar world

Parameters:
    lightRotation : Quaternion
    lightCutoff : float32
    offsetForwardScalar : single
    world : World

Returns: Vector3

Compute the origin for a directional light's shadow map, snapping it to texel-sized increments and offsetting it by its forward offset scalar.

lightRotation : Quaternion
lightCutoff : float32
offsetForwardScalar : single
world : World
Returns: Vector3

Type something to start searching.