gl-texture2d-display

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i gl-texture2d-display

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hughsk