WebGLMultisampleRenderTarget.html 1.4 KB

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