WebGLCubeRenderTarget.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. [page:WebGLRenderTarget] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">
  14. Used by the [page:CubeCamera] as its [page:WebGLRenderTarget].
  15. </p>
  16. <h2>Examples</h2>
  17. <p>See [page:CubeCamera] for examples.</p>
  18. <h2>Constructor</h2>
  19. <h3>[name]([param:Number size], [param:Object options])</h3>
  20. <p>
  21. [page:Float size] - the size, in pixels. <br />
  22. options - (optional) object that holds texture parameters for an auto-generated target
  23. texture and depthBuffer/stencilBuffer booleans.
  24. For an explanation of the texture parameters see [page:Texture Texture]. The following are
  25. valid options:<br /><br />
  26. [page:Constant wrapS] - default is [page:Textures ClampToEdgeWrapping]. <br />
  27. [page:Constant wrapT] - default is [page:Textures ClampToEdgeWrapping]. <br />
  28. [page:Constant magFilter] - default is [page:Textures .LinearFilter]. <br />
  29. [page:Constant minFilter] - default is [page:Textures LinearFilter]. <br />
  30. [page:Constant format] - default is [page:Textures RGBAFormat]. <br />
  31. [page:Constant type] - default is [page:Textures UnsignedByteType]. <br />
  32. [page:Number anisotropy] - default is *1*. See [page:Texture.anistropy]<br />
  33. [page:Constant encoding] - default is [page:Textures LinearEncoding]. <br />
  34. [page:Boolean depthBuffer] - default is *true*. Set this to false if you don't need it. <br />
  35. [page:Boolean stencilBuffer] - default is *true*. Set this to false if you don't need it.<br /><br />
  36. Creates a new [name]
  37. </p>
  38. <h2>Properties</h2>
  39. <h3>See [page:WebGLRenderTarget] for inherited properties</h3>
  40. <h2>Methods</h2>
  41. <h3>See [page:WebGLRenderTarget] for inherited methods</h3>
  42. <h3>[method:WebGLCubeRenderTarget fromEquirectangularTexture]( [param:WebGLRenderer renderer], [param:Texture texture] )</h3>
  43. <p>
  44. [page:WebGLRenderer renderer] — the renderer.<br/>
  45. [page:Texture texture] — the equirectangular texture.
  46. </p>
  47. <p>
  48. Use this method if you want to convert an equirectangular panorama to the cubemap format.
  49. </p>
  50. <h2>Source</h2>
  51. <p>
  52. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  53. </p>
  54. </body>
  55. </html>