three.js shadermaterial not working at all
问题 I've been fiddling around with three.js a bit, and im stumped when it comes to THREE.ShaderMaterial . it started out with copy/pasting directly from the example, shown here: http://threejs.org/examples/#webgl_materials_normalmap i copied it into a function that just returns the material. it wouldnt work (error, i'll get to the specifics later), so i removed all the uniforms that had been set and went for a complete blank material. just to see if the same error would still show. so here's my