LightProbeGenerator.html 1.3 KB

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