We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7565766 commit e5115adCopy full SHA for e5115ad
src/glslCanvas.js
@@ -455,7 +455,7 @@ function renderShader( _billboard ) {
455
mouse.y <= rect.bottom){
456
457
var mouseLocation = _billboard.gl.getUniformLocation(_billboard.program, "u_mouse");
458
- _billboard.gl.uniform2f(mouseLocation,mouse.x-rect.left,_billboard.canvas.height-mouse.y-rect.top);
+ _billboard.gl.uniform2f(mouseLocation,mouse.x-rect.left,_billboard.canvas.height-(mouse.y-rect.top));
459
}
460
461
// set the resolution uniform
0 commit comments