Created
January 13, 2016 16:21
-
-
Save Samsy/73c75f0d97176b8328e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
projectionOnScreen() { | |
this.screenSpacePosition.copy( this.objectposition ).project( this.camera ); | |
this.screenSpacePosition.x = ( this.screenSpacePosition.x + 1 ) / 2; | |
this.screenSpacePosition.y = ( this.screenSpacePosition.y + 1 ) / 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment