WebGLMultisampleRenderTarget

A special render target that can be used to utilize multi-sampled renderbuffers. Heads up: WebGLMultisampleRenderTarget can only be used with a WebGL 2 rendering context.

Constructor

WebGLMultisampleRenderTarget(width : Number, height : Number, options : Object)

width — The width of the render target.
height — The height of the render target.
options — (optional) object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans.

Properties

.samples : number

Specifies the number of samples to be used for the renderbuffer storage. However, the maximum supported size for multisampling is platform dependent and defined via gl.MAX_SAMPLES.

WebGLRenderTarget properties are available on this class.

Methods

WebGLRenderTarget methods are available on this class.

源代码

关于如何获取此模块的源代码,请查看 本页