-
-
获取/设置场景默认环境光。
Example
let app = THING.App.current;
app.scene.ambientLight.color = 'blue';
app.scene.ambientLight.intensity = 0.1;
let ret1 = app.scene.ambientLight.color == 'blue';
let ret2 = app.scene.ambientLight.intensity == 0.1;
// @expect(ret1 == true && ret2 == true);
-
-
获取/设置当前逻辑相机。设置后会同时将该相机设为主渲染相机。
-
-
获取场景渲染相机列表。数组第 0 项为主渲染相机。
-
-
获取/设置环境漫反射强度,取值范围为0到1。
Example
app.scene.envDiffuseIntensity = 0.5;
// @expect(app.scene.envDiffuseIntensity == 0.5);
-
-
获取/设置 环境贴图资源。
-
-
获取/设置环境光照强度,取值范围为0到1。
Example
app.scene.envMapLightIntensity = 0.5;
// @expect(app.scene.envMapLightIntensity == 0.5);
-
-
获取/设置环境镜面反射强度,取值范围为0到1。
Example
app.scene.envSpecularIntensity = 0.5;
// @expect(app.scene.envSpecularIntensity == 0.5);
-
-
获取/设置实例化绘制偏移量,会影响所有实例化绘制对象的相对位置。
Example
app.scene.instancedOffset = [10000, 10000, 10000];
-
-
获取/设置场景主平行光。
-
-
-
-
-
-
获取/设置渲染配置。
-
-
获取/设置静态模式,用于开启或关闭变换矩阵缓存以优化矩阵计算。加载资源时通常关闭,预览渲染时再开启。
-
-
获取/设置场景是否参与主渲染。