big-triangle
v1.0.0
Published
2-4 dimensional "big triangle" useful for full-screen webgl shaders
Downloads
1
Maintainers
Readme
Big Triangle
This module is useful to get vertices for a "big triangle". This is typically used for full-screen fragment shaders. You can pass the number of dimensions ( 2 - 4 ) that you wish to be outputted ( different use-cases may prefer different dimensionality ).
Example useage
import BigTriangle from 'big-triangle'
const bt = BigTriangle(2)
// output is a float32array of 2d vertices for you big triangle