npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

nogl

1.1.0 • Public • Published

WebGL context minimal shim for node. Useful to make stackgl components not fail in node.

npm install nogl

var Shader = require('gl-shader');
var gl = require('nogl')();
var glslify = require('glslify-sync');
var createProcessor = require('nogl-shader-output');
 
var shader = Shader(gl, glslify('./vertex.glsl'), glslify('./fragment.glsl'));
 
var draw = createProcessor(shader);
 
draw({
    size: [10, 20]
});

API is compatible with webgl-context. If you need real webgl, use headless-js. For practical use-case look nogl-shader-output. Heavily inspired by emscripten headlessCanvas.

install

npm i nogl

Downloadsweekly downloads

1,170

version

1.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability