Skip to content

Commit

Permalink
Improved webgl_postprocessing_outline example.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 17, 2017
1 parent 73377d1 commit 5e756e4
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions examples/webgl_postprocessing_outline.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!DOCTYPE html>

<html lang="en">
<head>
<title>three.js webgl - post processing - Outline Pass</title>
Expand Down Expand Up @@ -311,25 +310,6 @@

window.addEventListener( 'resize', onWindowResize, false );

var moved = false;

controls.addEventListener( 'change', function() {

moved = true;

} );

window.addEventListener( 'mousedown', function () {

moved = false;

}, false );

window.addEventListener( 'mouseup', function() {
if(!moved)
checkIntersection();
} );

window.addEventListener( 'mousemove', onTouchMove );
window.addEventListener( 'touchmove', onTouchMove );

Expand All @@ -352,6 +332,8 @@
mouse.x = ( x / window.innerWidth ) * 2 - 1;
mouse.y = - ( y / window.innerHeight ) * 2 + 1;

checkIntersection();

}

function addSelectedObject(object) {
Expand Down

2 comments on commit 5e756e4

@xoyofan
Copy link

@xoyofan xoyofan commented on 5e756e4 Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but the shadow on the objects and ground don`t have high quality

@mrdoob
Copy link
Owner Author

@mrdoob mrdoob commented on 5e756e4 Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nobody is perfect 😉

Please sign in to comment.