1.0.0 • Published 10 years ago

gl-texture2d-display v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gl-texture2d-display experimental

Displays a given gl-texture2d on your screen. Useful for debugging.

Usage

NPM

display(texture2d, [scale])

Displays the texture in the center of your screen. Optionally, you can pass in a scale value to change the size of the texture, which defaults to 1.

Note that this will call gl.viewport and bind the texture for you, so you'll want to reset these values afterwards if you plan on using them again.

License

MIT. See LICENSE.md for details.