1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <p class="desc">
- Utility class for creating instances of [page:LightProbe].
- </p>
- <h2>Import</h2>
- <p>
- [name] is an add-on, and must be imported explicitly.
- See [link:#manual/introduction/Installation Installation / Addons].
- </p>
- <code>
- import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';
- </code>
- <h2>Examples</h2>
- <p>
- [example:webgl_lightprobe WebGL / light probe ]<br />
- [example:webgl_lightprobe_cubecamera WebGL / light probe / cube camera ]
- </p>
- <h2>Static Methods</h2>
- <h3>[method:LightProbe fromCubeTexture] ( [param:CubeTexture cubeTexture] )</h3>
- <p>
- Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.
- </p>
- <h3>[method:LightProbe fromCubeRenderTarget] ( [param:WebGLRenderer renderer], [param:WebGLCubeRenderTarget cubeRenderTarget] )</h3>
- <p>
- Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube render target.
- </p>
- <p>
- The [page:Texture.format format] of the cube render target must be set to `RGBA`.
- </p>
- <h2>Source</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/LightProbeGenerator.js examples/jsm/lights/LightProbeGenerator.js]
- </p>
- </body>
- </html>
|