Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var createWebGLContext = require('fc');
var glslify = require('glslify')
var createGLClear = require('gl-clear');
var createGeometry = require('gl-geometry');
var createCamera = require('orbit-camera');
var computeNormal = require('triangle-normal');
var mat4 = require('gl-matrix-mat4');
var createFont = require('../gl-ttf');
var m4scratch = mat4.create();
var camera = createCamera(
[10, 0, 10],
[0, 0, 0],
[0, 1, 0]
);
camera.distance = 10;
var gl = createWebGLContext(render, true, 3);
var clear = createGLClear({
color: [0.043, 0.043, .086, 1.0]
}).bind(null, gl);
var shader = glslify({