This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
full-screen-quad with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
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 ).
import FullScreenQuad from 'full-screen-quad' const fsq = FullScreenQuad(2) // output is a float32array of 2d vertices for your full-screen quad