Specifies the stencil value used when clearing the stencil buffer. Specifies the depth value used when clearing the depth buffer. Specifies the color values used when clearing color buffers. WebGLRenderingContext.blendFuncSeparate()ĭefines which function is used for blending pixel arithmetic for RGB and alpha components separately. WebGLRenderingContext.blendFunc()ĭefines which function is used for blending pixel arithmetic. Sets the RGB blend equation and alpha blend equation separately. WebGLRenderingContext.blendEquationSeparate() Sets both the RGB blend equation and alpha blend equation to a single equation. Sets the source and destination blending factors. This can be used to start an application using standard 2D presentation, then transition to using a VR or AR mode later. WebGLRenderingContext.makeXRCompatible()Įnsures the context is compatible with the user's XR hardware, re-creating the context if necessary with a new configuration to do so. Returns true if the context is lost, otherwise returns false. Might return null, if the context is lost. Returns a WebGLContextAttributes object that contains the actual context parameters. WebGLRenderingContext.getContextAttributes() Should match the height of the canvas element associated with this context. The read-only height of the current drawing buffer. WebGLRenderingContext.drawingBufferHeight Should match the width of the canvas element associated with this context. The read-only width of the current drawing buffer. Pushes frames back to the original HTMLCanvasElement, if the context is not directly fixed to a specific canvas. Might be null if it is not associated with a element. The following properties and methods provide general information and functionality to deal with the WebGL context: WebGLRenderingContext.canvasĪ read-only back-reference to the HTMLCanvasElement.
0 Comments
Leave a Reply. |