Skip to main content

Area Light

Syntax

REAL.AreaLight(scene, options)

Options

ParameterTypeRequired
namestringNo
sizenumberNo
widthnumberNo
heightnumberNo
portalbooleanNo
intensitynumberNo
beamAnglenumberNo
shadowEnabledbooleanNo
shadowCausticsbooleanNo
multipleImportancebooleanNo
diffusenumber | string | BABYLON.Color3No

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);