Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "gl-util", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Set of practical webgl utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const gl = require('webgl-context')() | ||
const util = require('./') | ||
document.body.appendChild(gl.canvas); | ||
@@ -6,0 +5,0 @@ |
@@ -47,3 +47,3 @@ 'use strict' | ||
if (info.type === gl.SAMPLER_2D || info.type === gl.SAMPLER_CUBE) { | ||
textures[name] = {name: info.name} | ||
textures[info.name] = {name: info.name} | ||
} | ||
@@ -50,0 +50,0 @@ } |
@@ -50,3 +50,3 @@ /* @module gl-util/unifrom */ | ||
else { | ||
uniforms[name] = {name: info.name, type: info.type, data: null} | ||
uniforms[info.name] = {name: info.name, type: info.type, data: null} | ||
} | ||
@@ -53,0 +53,0 @@ } |
81729