a-big-triangle
Draws a big triangle that covers the entire viewport. Useful for GPGPU or when applying fullscreen postprocessing effects.
If you're wondering why a big triangle and not a big square made from two smaller triangles, there are potentially significant performance advantages in taking the former approach.
Example
var shell = var drawTriangle = var createShader = var shader shell shell
Install
npm install a-big-triangle
API
require("a-big-triangle")(gl)
Draws a fullscreen triangle.
gl
is a WebGL context
Credits
(c) 2013