Guest User

Untitled

a guest
Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. (defun project-with-perspective (&key (field-of-view *field-of-view*) (depth *z-far*))
  2. (gl:enable :depth-test)
  3. (gl:clear-depth 1.0)
  4. (gl:clear :color-buffer-bit)
  5. (gl:enable :texture-2d :blend)
  6. (set-blending-mode :alpha)
  7. (gl:matrix-mode :projection)
  8. (gl:load-identity)
  9. (glu:perspective field-of-view (/ *gl-screen-width* *gl-screen-height*) *z-near* depth)
  10. (gl:hint :perspective-correction-hint :nicest))
Add Comment
Please, Sign In to add comment