Skip to content

Lens Shading Simulator

Simulate relative illumination across the sensor based on chief ray angle, microlens shift optimization, and cos-4 fall-off. Visualize per-channel color shading.

Lens Shading Simulator

Simulate relative illumination across the sensor based on CRA, pixel design, and cos⁴ fall-off. Visualize per-channel color shading.

Center RI
100%
Corner RI
40.9%
Edge RI
64.2%
RI Loss (stops)
1.29 EV
2D Shading Map
41%
100%
Radial Profile
30%40%50%60%70%80%90%100%0.00.30.50.81.0Relative Position (r/r_max)RI (%)

Relative Illumination Model

The relative illumination (RI) at each sensor position combines geometric and optical effects:

RI(r) = cos^4(CRA) x ML_coupling x CF_shift

cos^4 Law

Geometric vignetting follows the fourth power of cosine of the chief ray angle, causing natural brightness fall-off from center to edge.

Microlens Coupling

When the chief ray angle exceeds the microlens acceptance cone, light collection efficiency drops. The ML shift ratio parameter controls how well the microlens array compensates for the CRA by shifting microlens positions toward the optical axis.

Color Shading

Different color channels experience different shading because:

  • Blue light has shorter absorption depth, making it more sensitive to angular coupling
  • Red light penetrates deeper into silicon, reducing angular sensitivity
  • This creates a color cast from center to edge that must be corrected in the ISP

TIP

A ML shift ratio of 1.0 means perfect CRA compensation. Real sensors typically achieve 0.6-0.8 due to manufacturing constraints.