PDA

View Full Version : lens-flare effect



Jan
04-24-2003, 03:59 AM
Maybe its more a maths question.
Anyway, to create a lens-flare effect i need the position of the light in screen-space. How do i get it? Can i use the projection matrix for that?
And should i draw the lens-flare in ortho-mode or in perspective mode? (I think ortho, but im not sure.)

Jan.

AdrianD
04-24-2003, 05:15 AM
use gluProject.