diff options
-rw-r--r-- | src/library_gl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index c5118ee7..d9c3492d 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -1362,8 +1362,8 @@ var LibraryGL = { 'varying vec4 v_color; \n' + 'void main() \n' + '{ \n' + - (textureSize ? 'gl_FragColor = texture2D( u_texture, v_texCoord );\n' : - 'gl_FragColor = v_color;\n') + // XXX multply! + (textureSize ? 'gl_FragColor = v_color * texture2D( u_texture, v_texCoord );\n' : + 'gl_FragColor = v_color;\n') + '} \n'); Module.ctx.compileShader(this.fragmentShader); |