DEV Community

Discussion on: Context2D Canvas question. But is it Webgl?

Collapse
 
gmartigny profile image
Guillaume Martigny

2D Context and WebGL are two separate things. WebGL (and GLSL) are way more powerful and allow to render 3D environments (QuakeII in the browser without plugin ? sure, why not.)
Working with GLSL can be a real hassle and I don't know any abstraction to avoid that. However, performance wise, shaders are incredibles.

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

That's what I thought, so is 2d still GPU?

Collapse
 
gmartigny profile image
Guillaume Martigny

It must depend of the browser, but I'll say yes it is. Not sure tho