Skip to main content

Spotlight

Syntax

REAL.SpotLight(scene, options)

Options

ParameterTypeRequired
anglenumberNo
decaynumberNo
rangenumberNo
penumbranumberNo
intensitynumberNo
shadowEnabledbooleanNo
diffusenumber | string | BABYLON.Color3No

Example

import * as REAL from "real_api_bbl";

const options = {
range: 20,
angle: 1.5,
intensity: 2,
shadowEnabled: true,
diffuse: new BABYLON.Color3(0.66, 0.56, 0.2)
}
const light = new REAL.SpotLight(scene, options);