Simple fisheye lens shader. Uses near clip-plane and raytracing (trace function).
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.
fjs_fisheyelens.sl Sample RIB
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
RenderMan is a registered trademark of Pixar. The RenderMan Repository is maintained by Pixar's RenderMan Products Group