跳到主要内容

区域光

语法

REAL.AreaLight(scene, options)

Options

参数类型必填
namestring
sizenumber
widthnumber
heightnumber
portalboolean
intensitynumber
beamAnglenumber
shadowEnabledboolean
shadowCausticsboolean
multipleImportanceboolean
diffusenumber | 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);