聚光灯
语法
REAL.SpotLight(scene, options)
Options
参数 | 类型 | 必填 |
---|---|---|
angle | number | 否 |
decay | number | 否 |
range | number | 否 |
penumbra | number | 否 |
intensity | number | 否 |
shadowEnabled | boolean | 否 |
diffuse | number | string | BABYLON.Color3 | 否 |
示例
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);