|
@@ -23,8 +23,8 @@
|
|
|
// calculate mouse position in normalized device coordinates
|
|
|
// (-1 to +1) for both components
|
|
|
|
|
|
- mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1
|
|
|
- mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1
|
|
|
+ mouse.x = ( event.clientX / window.innerWidth ) * 2 - 1;
|
|
|
+ mouse.y = - ( event.clientY / window.innerHeight ) * 2 + 1;
|
|
|
|
|
|
}
|
|
|
|