Skip to content

Instantly share code, notes, and snippets.

@Samsy
Created January 13, 2016 16:21
Show Gist options
  • Save Samsy/73c75f0d97176b8328e2 to your computer and use it in GitHub Desktop.
Save Samsy/73c75f0d97176b8328e2 to your computer and use it in GitHub Desktop.
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