2
0

WebGLMultisampleRenderTarget.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. A special render target that can be used to utilize multi-sampled renderbuffers.
  13. Heads up: [name] can only be used with a WebGL 2 rendering context.
  14. </p>
  15. <h2>Constructor</h2>
  16. <h3>[name]([param:Number width], [param:Number height], [param:Object options])</h3>
  17. <p>
  18. [page:Float width] - The width of the render target. <br />
  19. [page:Float height] - The height of the render target.<br />
  20. [page:Object options] - (optional) object that holds texture parameters for an auto-generated target
  21. texture and depthBuffer/stencilBuffer booleans.
  22. </p>
  23. <h2>Properties</h2>
  24. <h3>[property:number samples]</h3>
  25. <p>
  26. Specifies the number of samples to be used for the renderbuffer storage. However, the maximum supported
  27. size for multisampling is platform dependent and defined via *gl.MAX_SAMPLES*.
  28. </p>
  29. <p>[page:WebGLRenderTarget WebGLRenderTarget] properties are available on this class.</p>
  30. <h2>Methods</h2>
  31. <p>[page:WebGLRenderTarget WebGLRenderTarget] methods are available on this class.</p>
  32. <h2>Source</h2>
  33. <p>
  34. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  35. </p>
  36. </body>
  37. </html>