zpelgrims / lentil

Polynomial optics to Arnold. Camera shader with high-order aberrations, including bidirectional filter that adaptively samples out-of-focus highlights (top level repo)
http://www.lentil.xyz
104 stars 11 forks source link

Optical Vignetting incorrect #190

Open zpelgrims opened 4 years ago

zpelgrims commented 4 years ago

Unsure why, seems correct in front of focus dist, but incorrect behind it?

zpelgrims commented 4 years ago

Did some testing with real lenses, and the bokeh should be occluded in the same way for both cases. I can easily switch this for the bidirectional version, since I know if the image of the object is in front or behind the image of the focuspoint.

In the forward version however.. not sure