empaempa / GLOW

GLOW is a WebGL wrapper, which focuses on easy creation and use of shaders.
http://i-am-glow.com
MIT License
244 stars 28 forks source link

Can not leave texture object null #9

Open skbizport opened 12 years ago

skbizport commented 12 years ago

Shader might check for a boolean variable for either using texture or color. So, texture object need not be created during setup. Current code does not handle it. It tries to call uniforms[ name ].data.init() in compiler.createUniforms(..) function

empaempa commented 12 years ago

I'm not really following... A texture is a texture and you use a vec3 or vec4 if you like a color. Or? :)