full-screen-quad
v1.0.0
Published
2-4 dimensional "full-screen quad" useful for full-screen webgl shaders
Downloads
10
Maintainers
Readme
Full-Screen Quad
This module is useful to get vertices for a "full-screen quad". 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 FullScreenQuad from 'full-screen-quad'
const fsq = FullScreenQuad(2)
// output is a float32array of 2d vertices for your full-screen quad