WebGLMultisampleRenderTarget.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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. 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>Examples</h2>
  17. <p>
  18. [example:webgl2_multisampled_renderbuffers webgl2 / multisampled / renderbuffers ]
  19. </p>
  20. <h2>Constructor</h2>
  21. <h3>[name]([param:Number width], [param:Number height], [param:Object options])</h3>
  22. <p>
  23. [page:Float width] - The width of the render target. <br />
  24. [page:Float height] - The height of the render target.<br />
  25. [page:Object options] - (optional) object that holds texture parameters for an auto-generated target
  26. texture and depthBuffer/stencilBuffer booleans.
  27. </p>
  28. <h2>Properties</h2>
  29. <h3>[property:number samples]</h3>
  30. <p>
  31. Specifies the number of samples to be used for the renderbuffer storage. However, the maximum supported
  32. size for multisampling is platform dependent and defined via *gl.MAX_SAMPLES*.
  33. </p>
  34. <p>[page:WebGLRenderTarget WebGLRenderTarget] properties are available on this class.</p>
  35. <h2>Methods</h2>
  36. <p>[page:WebGLRenderTarget WebGLRenderTarget] methods are available on this class.</p>
  37. <h2>Source</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>