by ivanjermakov · 1y ago · 0 comments
I've heard of true 3D bump mapping being done in fragment shaders (not just lighting), but I can't really imagine how more radical geometric distortion could be implemented there.
This answer suggests some other ideas on implementing lens distortion: https://stackoverflow.com/a/44492971
Maybe these methods could be combined somehow, but it seems simpler to use subdivision (as also mentioned in that thread) — perhaps selectively, for objects near the periphery where distortion is strongest.