gl-white-texture
Creates an opaque white 2x2 texture. This is often used as an optimization when drawing colored and filled lines/rectangles alongside textured sprites, as it allows us to use the same shader.
var tex = gl //bind and draw that suckertex
Usage
tex = createWhiteTexture(gl)
Creates and returns a new 2x2 RGBA texture using an unsigned byte array filled with 0xFF
bytes.
License
MIT, see LICENSE.md for details.