Point Light
Syntax
REAL.PointLight(scene, options)
Options
| Parameter | Type | Required |
|---|---|---|
| decay | number | No |
| range | number | No |
| intensity | number | No |
| shadowEnabled | boolean | No |
| diffuse | number | string | BABYLON.Color3 | No |
Example
import * as REAL from "real_api_bbl";
const options = {
range: 20,
intensity: 2,
shadowEnabled: true,
diffuse: new BABYLON.Color3(0.66, 0.56, 0.2)
}
const light = new REAL.PointLight(scene, options);