2
0

WebGLCubeRenderTarget.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. [page:WebGLRenderTarget] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Used by the [page:CubeCamera] as its [page:WebGLRenderTarget].
  14. </p>
  15. <h2>Examples</h2>
  16. <p>See [page:CubeCamera] for examples.</p>
  17. <h2>Constructor</h2>
  18. <h3>[name]([param:Number size], [param:Object options])</h3>
  19. <p>
  20. [page:Float size] - the size, in pixels. <br />
  21. options - (optional) object that holds texture parameters for an auto-generated target
  22. texture and depthBuffer/stencilBuffer booleans.
  23. For an explanation of the texture parameters see [page:Texture Texture]. The following are
  24. valid options:<br /><br />
  25. [page:Constant wrapS] - default is [page:Textures ClampToEdgeWrapping]. <br />
  26. [page:Constant wrapT] - default is [page:Textures ClampToEdgeWrapping]. <br />
  27. [page:Constant magFilter] - default is [page:Textures .LinearFilter]. <br />
  28. [page:Constant minFilter] - default is [page:Textures LinearFilter]. <br />
  29. [page:Boolean generateMipmaps] - default is *false*.<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*.<br />
  35. [page:Boolean stencilBuffer] - default is *false*.<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. <h3>[method:undefined clear]( [param:WebGLRenderer renderer], [param:Boolean color], [param:Boolean depth], [param:Boolean stencil] )</h3>
  51. <p>
  52. Call this to clear the renderTarget's color, depth, and/or stencil buffers.
  53. The color buffer is set to the renderer's current clear color. Arguments default to *true*.
  54. </p>
  55. <h2>Source</h2>
  56. <p>
  57. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  58. </p>
  59. </body>
  60. </html>