The root issue is that `shadow_punctual_footprint_ratio` was not fed with Z distance but by radial distances to camera and light. This commit cleans up this computation by only precomputing the film pixel radius on CPU. This allow the LOD computation to be more local and easier to read. Fix #119725 Pull Request: https://projects.blender.org/blender/blender/pulls/121167