Browse Source

fix for retina screens (#9138)

Jaume Sanchez 9 years ago
parent
commit
732fee16c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/webgl_gpgpu_water.html

+ 1 - 1
examples/webgl_gpgpu_water.html

@@ -480,7 +480,7 @@
 
 			function setMouseCoords( x, y ) {
 
-				mouseCoords.set( ( x / renderer.domElement.width ) * 2 - 1, - ( y / renderer.domElement.height ) * 2 + 1 );
+				mouseCoords.set( ( x / renderer.domElement.clientWidth ) * 2 - 1, - ( y / renderer.domElement.clientHeight ) * 2 + 1 );
 				mouseMoved = true;
 
 			}