跳到主要内容

太阳光

语法​

REAL.SunLight(scene, options)

选项​

参数类型必填
targetboolean否
intensitynumber否
shadowEnabledboolean否
diffusenumber | string | BABYLON.Color3否

示例​

import * as REAL from "real_api_bbl";

const options = {
intensity: 2,
shadowEnabled: true,
diffuse: new BABYLON.Color3(0.66, 0.56, 0.2)
}
const light = new REAL.SunLight(scene, options);