LightProbeGenerator.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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>Examples</h2>
  15. <p>
  16. [example:webgl_lightprobe WebGL / light probe ]<br />
  17. [example:webgl_lightprobe_cubecamera WebGL / light probe / cube camera ]
  18. </p>
  19. <h2>Static Methods</h2>
  20. <h3>[method:LightProbe fromCubeTexture] ( [param:CubeTexture cubeTexture] )</h3>
  21. <p>
  22. Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube texture.
  23. </p>
  24. <h3>[method:LightProbe fromCubeRenderTarget] ( [param:WebGLRenderer renderer], [param:WebGLCubeRenderTarget cubeRenderTarget] )</h3>
  25. <p>
  26. Creates a light probe from the given (radiance) environment map. The method expects that the environment map is represented as a cube render target.
  27. </p>
  28. <p>
  29. The [page:Texture.format format] of the cube render target must be set to *RGBA*.
  30. </p>
  31. <h2>Source</h2>
  32. <p>
  33. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/LightProbeGenerator.js examples/jsm/lights/LightProbeGenerator.js]
  34. </p>
  35. </body>
  36. </html>