'use strict' module.exports = makeReflectTypes //Construct type info for reflection. // // This iterates over the flattened list of uniform type values and smashes them into a JSON object. // // The leaves of the resulting object are either indices or type strings representing primitive glslify types function makeReflectTypes(uniforms, useIndex) { var obj = {} for(var i=0; i 1) { if(!(x[0] in o)) { o[x[0]] = [] } o = o[x[0]] for(var k=1; k