跳到主要内容

区域光

语法​

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