aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library_gl.js4
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);