2 ms·
Why? WebGL won't give you too much of a benefit when you're dealing with 2D textures.
by windsurfer 15y ago
Why? WebGL won't give you too much of a benefit when you're dealing with 2D textures.
- strags 15y agoWithout being 100% sure (not having played with WebGL too much), I'd guess it would enable you to perform a large amount of expensive image processing on the GPU, using shaders. For certain things (eg. blur), this would be a huge performance boost.
- modeless 15y agoA common misconception, but completely false. OpenGL, and by extension WebGL, is not just for 3D; it's perfectly suited to 2D image manipulation. With programmable shaders you can perform practically any image processing operation (interactive brushes, resizing, compositing, filters; really any of the tools in the Photoshop palette) at hundreds of times the speed of JavaScript.