Monday, 26 December 2016

WebGLSampler

WebGLSampler

This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The WebGLSampler interface is part of the WebGL 2 API and stores sampling parameters for WebGLTexture access inside of a shader.
When working with WebGLSampler objects, the following methods of the WebGL2RenderingContext are useful:

Examples

Creating a WebGLSampler object

in this example, gl must be a WebGL2RenderingContextWebGLSampler objects are not available in WebGL 1.
var sampler = gl.createSampler();

Specifications

SpecificationStatusComment
WebGL 2.0
The definition of 'WebGLSample' in that specification.
Editor's DraftInitial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafariServo
Basic SupportNo support1No support51.0No supportNo supportNo supportNo support
1. To use an experimental implementation of WebGL 2 in Chrome, you have to start Chrome with the runtime flag --enable-unsafe-es3-apis.


0 comments:

Post a Comment

Popular Posts

Powered by Blogger.

Translate