kami-white-texture

1.0.2 • Public • Published

kami-white-texture

stable

Creates a 1x1 white WebGL texture. Often used with kami-batch to render filled rectangles and lines efficiently alongside game sprites.

Usage

NPM

var gl = require('webgl-context')();
var tex = require('kami-white-texture')(gl);
 
//bind it...
tex.bind();
 
//use it...

License

MIT, see LICENSE.md for details.

/kami-white-texture/

    Package Sidebar

    Install

    npm i kami-white-texture

    Weekly Downloads

    10

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • mattdesl