node package manager

gl-simpleTextureGenerator

gl-simpleTextureGenerator

generates checkerboard test textures for stack-gl

Installation

$ npm install gl-simpleTextureGenerator

Example

var textureGenerator = require("gl-simpleTextureGenerator");
var createTexture = require("gl-texture2d");
 
var texture = generateTexture({width: 64, height: 64});
 
//then load into the gpu 
createTexture(gl, texture);

Badges