WebGLRenderTargetCube.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 width], [param:Number height], [param:Object options])</h3>
  20. <p>
  21. [page:Float width] - The width of the renderTarget. <br />
  22. [page:Float height] - The height of the renderTarget. <br />
  23. options - (optional) object that holds texture parameters for an auto-generated target
  24. texture and depthBuffer/stencilBuffer booleans.
  25. For an explanation of the texture parameters see [page:Texture Texture]. The following are
  26. valid options:<br /><br />
  27. [page:Constant wrapS] - default is [page:Textures ClampToEdgeWrapping]. <br />
  28. [page:Constant wrapT] - default is [page:Textures ClampToEdgeWrapping]. <br />
  29. [page:Constant magFilter] - default is [page:Textures .LinearFilter]. <br />
  30. [page:Constant minFilter] - default is [page:Textures LinearFilter]. <br />
  31. [page:Constant format] - default is [page:Textures RGBAFormat]. <br />
  32. [page:Constant type] - default is [page:Textures UnsignedByteType]. <br />
  33. [page:Number anisotropy] - default is *1*. See [page:Texture.anistropy]<br />
  34. [page:Constant encoding] - default is [page:Textures LinearEncoding]. <br />
  35. [page:Boolean depthBuffer] - default is *true*. Set this to false if you don't need it. <br />
  36. [page:Boolean stencilBuffer] - default is *true*. Set this to false if you don't need it.<br /><br />
  37. Creates a new [name]
  38. </p>
  39. <h2>Properties</h2>
  40. <h3>See [page:WebGLRenderTarget] for inherited properties</h3>
  41. <h2>Methods</h2>
  42. <h3>See [page:WebGLRenderTarget] for inherited methods</h3>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>