Skip to content

Instantly share code, notes, and snippets.

@leeprobert
Created March 23, 2012 10:17
Show Gist options
  • Save leeprobert/2169277 to your computer and use it in GitHub Desktop.
Save leeprobert/2169277 to your computer and use it in GitHub Desktop.
The code required to make an object look pixel perfect in a 3D Papervision environment
Object.z = Math.round((camera.zoom * camera.focus) -Math.abs(camera.z))
+ Object.depth/2; // take or add 0.5 if it's still blurred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment