Area Light
Syntax
REAL.AreaLight(scene, options)
Options
| Parameter | Type | Required |
|---|---|---|
| name | string | No |
| size | number | No |
| width | number | No |
| height | number | No |
| portal | boolean | No |
| intensity | number | No |
| beamAngle | number | No |
| shadowEnabled | boolean | No |
| shadowCaustics | boolean | No |
| multipleImportance | boolean | No |
| diffuse | number | string | BABYLON.Color3 | No |
Example
import * as REAL from "real_api_bbl";
const options = {
width: 1,
height: 2,
intensity: 2,
diffuse: new BABYLON.Color3(0.66, 0.56, 0.2)
}
const light = new REAL.AreaLight(scene, options);