提交 024f9b04 编写于 作者: J Jaume Sanchez

fixed merge

上级 de987726
......@@ -252,14 +252,8 @@
function onMouseMove( event ) {
<<<<<<< HEAD
mouse.x = ( ( event.clientX * window.devicePixelRatio ) / renderer.domElement.width ) * 2 - 1;
mouse.y = - ( ( event.clientY * window.devicePixelRatio ) / renderer.domElement.height ) * 2 + 1;
=======
mouse.x = ( event.clientX / renderer.domElement.clientWidth ) * 2 - 1;
mouse.y = - ( event.clientY / renderer.domElement.clientHeight ) * 2 + 1;
>>>>>>> d865453bf872fe15e2f417d4fa598dab2164cae7
raycaster.setFromCamera( mouse, camera );
// See if the ray from the camera into the world hits one of our meshes
......@@ -280,4 +274,4 @@
</script>
</body>
</html>
</html>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册