区域光
语法
REAL.AreaLight(scene, options)
Options
参数 | 类型 | 必填 |
---|---|---|
name | string | 否 |
size | number | 否 |
width | number | 否 |
height | number | 否 |
portal | boolean | 否 |
intensity | number | 否 |
beamAngle | number | 否 |
shadowEnabled | boolean | 否 |
shadowCaustics | boolean | 否 |
multipleImportance | boolean | 否 |
diffuse | number | string | BABYLON.Color3 | 否 |
示例
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);