Simulating real camera/lens optics in cycles

There’s a nice example here by Fox on the LuxCore Forum:

https://forums.luxcorerender.org/viewtopic.php?f=4&t=1049#p12086
image

And I don’t know if you’ve read through this thread either: