LightProbeGenerator.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">
  12. Utility class for creating instances of [page:LightProbe].
  13. </p>
  14. <h2>Import</h2>
  15. <p>
  16. [name] is an add-on, and must be imported explicitly.
  17. See [link:#manual/introduction/Installation Installation / Addons].
  18. </p>
  19. <code>
  20. import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';
  21. </code>
  22. <h2>Examples</h2>
  23. <p>
  24. [example:webgl_lightprobe WebGL / light probe ]<br />
  25. [example:webgl_lightprobe_cubecamera WebGL / light probe / cube camera ]
  26. </p>
  27. <h2>Static Methods</h2>
  28. <h3>[method:LightProbe fromCubeTexture] ( [param:CubeTexture cubeTexture] )</h3>
  29. <p>
  30. Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.
  31. </p>
  32. <h3>[method:LightProbe fromCubeRenderTarget] ( [param:WebGLRenderer renderer], [param:WebGLCubeRenderTarget cubeRenderTarget] )</h3>
  33. <p>
  34. Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube render target.
  35. </p>
  36. <p>
  37. The [page:Texture.format format] of the cube render target must be set to `RGBA`.
  38. </p>
  39. <h2>Source</h2>
  40. <p>
  41. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/LightProbeGenerator.js examples/jsm/lights/LightProbeGenerator.js]
  42. </p>
  43. </body>
  44. </html>