A minimalistic method for rendering a triangle in WebGL 2 that covers the screen with no buffer inputs.
Usable for post effects or something similar to https://shadertoy.com
All vertex and texture coordinate information are generated in vertex shader from the built-in gl_VertexID variable
I just want to point out that this gives the following warning:
WebGL warning: drawArraysInstanced: Drawing without vertex attrib 0 array enabled forces the browser to do expensive emulation work when running on desktop OpenGL platforms, for example on Mac. It is preferable to always draw with vertex attrib 0 array enabled, by using bindAttribLocation to bind some always-used attribute to location 0.
For the rest it is great.