Explorar el Código

fix for retina screens (#9138)

Jaume Sanchez hace 9 años
padre
commit
732fee16c1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 
 			}