WebGL

WebGL trás graficos 3D para Web através da introduçãode uma API que está de acordo com OpenGL ES 2.0 que pode ser usada no HTML5 com a utilização do elemento canvas. Suporte para WebGL está presente a partir do Firefox 4 e Google Chrome 9.

Development topics

Getting started with WebGL
Como configurar um contexto com WebGL.
Adding 2D content to a WebGL context
Como renderizar simples formas planas utilizando WebGL.
Using shaders to apply color in WebGL
Veja como adicionar cor a formas usando shaders.
Animating objects with WebGL
Shows how to rotate and translate objects to create simple animations.
Creating 3D objects using WebGL
Shows how to create and animate a 3D object (in this case, a cube).
Using textures in WebGL
Demonstrates how to map textures onto the faces of an object.
Lighting in WebGL
How to simulate lighting effects in your WebGL context.
Animating textures in WebGL
Shows how to animate textures; in this case, by mapping an Ogg video onto the faces of a rotating cube.
WebGL best practices
Tips and suggestions to improve your WebGL content.
Cross-domain textures
Information about loading textures from domains other than the one from which your content was loaded.
Using extensions
How to use extensions that are available in WebGL.
WebGL Specification
A especificação do  WebGL.
Khronos WebGL site
O site principal para WebGL no Grupo Khronos.
Learning WebGL
Um site com tutoriais de como usar WebGL.
The WebGL Cookbook
Um site com dicas práticas para escrever código WebGL.
Planet WebGL
A feed aggregator for people involved in the WebGL community.
ewgl-matrices
A blazing fast matrix library for WebGL
glMatrix
JavaScript Matrix and Vector library for High Performance WebGL apps
mjs
A JavaScript vector and matrix math library, optimized for WebGL usage.
Sylvester
An open source library for manipulating vectors and matrices. Not optimized for WebGL but extremely robust.
WebGL playground
An online tool for creating and sharing WebGL projects. Good for quick prototyping and experimenting.

Browser compatibility

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 4.0 (2.0) 9 Não suportado Não suportado Nightly build
Context name experimental-webgl experimental-webgl n/a n/a experimental-webgl
OES_texture_float 6.0 (6.0) ? ? ? ?
OES_standard_derivatives 10.0 (10.0) ? ? ? ?
EXT_texture_filter_anisotropic 13.0 (13.0) ? ? ? ?
WEBGL_compressed_texture_s3tc 15.0 (15.0) ? ? ? ?
drawingBufferWidth and drawingBufferHeight attributes 9.0 (9.0) ? ? ? ?
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?
Context name ? ? ? ? ?
OES_texture_float 6.0 (6.0) ? ? ? ?
OES_standard_derivatives 10.0 (10.0) ? ? ? ?
EXT_texture_filter_anisotropic 13.0 (13.0) ? ? ? ?
WEBGL_compressed_texture_s3tc 15.0 (15.0) ? ? ? ?
drawingBufferWidth and drawingBufferHeight attributes 9.0 (9.0) ? ? ? ?

Gecko notes

WebGL debugging and testing

Starting with Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7), there are two preferences available which let you control the capabilities of WebGL for testing purposes:

webgl.min_capability_mode
A Boolean property that, when true, enables a minimum capability mode. When in this mode, WebGL is configured to only support the bare minimum feature set and capabilities required by the WebGL specification. This lets you ensure that your WebGL code will work on any device or browser, regardless of their capabilities. This is false by default.
webgl.disable_extensions
A Boolean property that, when true, disables all WebGL extensions. This is false by default.

Document Tags and Contributors

Contributors to this page: fvargaspf@gmail.com
Última atualização por: fvargaspf@gmail.com,