]> Pileus Git - grits/commit
Fix clipping plane issues
authorAndy Spencer <andy753421@gmail.com>
Sun, 8 Jan 2012 23:06:16 +0000 (23:06 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 8 Jan 2012 23:06:16 +0000 (23:06 +0000)
commit773d3969b71ac45d11ac8ca431167a2a063ec06e
treeb4018f99752b2cf6ccbb4d5876a7cee1fdb5b8dd
parent3b984844a4d368d82859300865b01dd6a8d43b5a
Fix clipping plane issues

The clipping plane is flat, so the distance between the camera and the
clipping plane varies based on where screen location. I.e. it is closest
in the center and farther at the corners. Add a offset to elev to
account of this. It would be better to use a sin or to calculate
distances directly, but this is easy and appears to work.
src/grits-opengl.c