Created
February 22, 2017 12:13
-
-
Save brendandawes/19637ac23c4e2f52de6378b43088722c to your computer and use it in GitHub Desktop.
Better non clipping perspective in processing
This file contains hidden or 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
float fov = PI/3; | |
float nearClip = 1; | |
float farClip = 100000; | |
float aspect; | |
// void setup() | |
aspect = float(width)/float(height); | |
// void draw() | |
perspective(fov, aspect, nearClip, farClip); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment