用于创建 [page:LightProbe] 实例的工具类。
[name] 是一个附加组件,必须显式导入。 See [link:#manual/introduction/Installation Installation / Addons].
import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';
[example:webgl_lightprobe WebGL / light probe ]
[example:webgl_lightprobe_cubecamera WebGL / light probe / cube camera ]
从传入的(辐射)环境贴图创建一个光照探针。该方法期望将环境贴图表示为一个立方体纹理。
从传入的(辐射)环境贴图创建一个光照探针。该方法期望将环境贴图表示为一个立方体渲染目标。
立方体渲染目标的 [page:Texture.format format] 必须被设为 *RGBA*。
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/LightProbeGenerator.js examples/jsm/lights/LightProbeGenerator.js]