Sign Up for Free

RunKit +

Try any Node.js package right in your browser

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:

var fullScreenQuad = require("full-screen-quad")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

full-screen-quad v1.0.0

2-4 dimensional "full-screen quad" useful for full-screen webgl shaders

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
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free