Version: 2022.3

DynamicGI

class in UnityEngine

切换到手册

描述

用于控制动态全局光照。

静态变量

indirectScaleAllows for scaling the contribution coming from real-time & baked lightmaps.注意:此值可以在 Lighting 窗口 UI 中设置并且已序列化,但此类中的其他属性不是这种情况。
isConvergedIs precomputed Enlighten Realtime Global Illumination output converged?
materialUpdateTimeSlice可以在材质更新上花费的毫秒数。
synchronousMode启用时,每个帧中均显示新的动态全局光照输出。
updateThresholdDetermines the percentage change in lighting intensity that triggers Unity to recalculate the real-time lightmap.

静态函数

SetEmissive可实现快速为给定渲染器设置发光颜色,无需渲染整个系统的发光输入。
SetEnvironmentDataAllows overriding the distant environment lighting for Enlighten Realtime Global Illumination, without changing the Skybox Material.
UpdateEnvironmentSchedules an update of the environment cubemap.
UpdateMaterials安排更新包含渲染器或地形的系统的反照率和发光纹理。