Header menu logo Nu

Light3dFacetModule Module

Functions and values

Function or value Description

Light3dFacetModule.getCascadedLightOrigin lightRotation lightCutoff world

Full Usage: Light3dFacetModule.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

Light3dFacetModule.getDirectionalLightOrigin lightRotation lightCutoff offsetForwardScalar world

Full Usage: Light3dFacetModule.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.