Simple fisheye lens shader. Uses near clip-plane and raytracing (trace function).
Usage:
User must define a square polygon just beyond the near clip-plane distance. Generally, this polygon fills the entire viewing frustrum.
This shader is applied to the polygon and the user should specify the polygon placement and the maximum angle of the lens.
The result is a circular lensed image on the square polygon, with black corners. The angular distribution is like polar graph paper, with angle increasing linearly with distance from the center.
Corners of polygon are assumed to be (in camera space):
[ scale, scale, zdistance]
[-scale, scale, zdistance]
[-scale, -scale, zdistance]
[ scale, -scale, zdistance]
See shader for more description.
Siblings: BMRTShaders AKShaders DPShaders DWShaders EMShaders FGShaders IDShaders DWShaders KMShaders JBUMShaders JMShaders LGShaders LCShaders MBShaders MRShaders MKShaders PQShaders RCShaders SHWShaders SWShaders XMBShaders SIG91 SIG2000 SIG2001 TLShaders
The RMR is Copyright © 1995-2005 Tal L. Lancaster all rights reserved