Skip to main content

Light

An light that interacts with the Dynamic Fog system.

Outside of interacting with the fog system this item has no visuals.

The zIndex parameter for this item is treated specially see Dynamic Fog for a break down on how this works.

Local Only: this Item can only be added to the local scene using the OBR.scene.local API.

Extends Item

TYPE
object

Properties

NAMETYPEDESCRIPTION
type"LIGHT"The type of item
attenuationRadiusnumberThe outer radius of affect for this light source in world coordinates
sourceRadiusnumberThe inner radius for this light in world coordinates. This affects how hard/soft the shadows of this light will be as well as the collision distance for blocking Walls
falloffnumberThe falloff for the outer edge of the light. This is in normalized coordinates where 0 represents no falloff and 1 full falloff. This value can be driven above 1 for even greater falloff
innerAnglenumberThe inner angle to constrain this light from a circle to a cone. For a hard shadowed cone the innerAngle and outerAngle should be the same. For soft shadowed the innerAngle should be less than the outerAngle
outerAnglenumberThe outer angle to constrain this light from a circle to a cone. For a hard shadowed cone the innerAngle and outerAngle should be the same. For soft shadowed the innerAngle should be less than the outerAngle
lightType"PRIMARY" | "SECONDARY" | "AUXILIARY"The type of light. See here for more