Displays a given gl-texture2d on your screen. Useful for debugging.
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.
MIT. See LICENSE.md for details.