LightsettingDynamicLightSettingLoader.DynamicLight
Description of fields:
type: 'ambient'/'rectarea'/'spot'/'directional'
name: set a name for this light to identify it more easily
intensity: light intensity/brightness
color: light color as hex ('#ffffff')
position: position of the light, for example
{"x": 0,"y": 0, "z": 0}, coords are right hand y uptarget: position to which the light should shine, defaults to center
castShadow: defines if this light casts shadows
angle: used for spotlights, defines the light cone of the spotlight
penumbra: used for spotlights, defines how hard the edges of the light are
width: used for rect area light, width of the area
height: used for rect area light, height of the area
movesWithCamera: if true the light will always have the same position and angle as the camera
Table of contents
Properties
Properties
angle
• Optional angle: number
castShadow
• Optional castShadow: boolean
color
• Optional color: string
height
• Optional height: number
intensity
• Optional intensity: number
movesWithCamera
• Optional movesWithCamera: boolean
name
• Optional name: string
penumbra
• Optional penumbra: number
position
• Optional position: Vector3
target
• Optional target: Vector3
type
• type: string
width
• Optional width: number
Last updated