ideal lamp simulation

by adrien

Simulation of the light coming from a punctual source (imagine a microscopic star) and diffused by a surface that is a “perfect diffusor.” The lamp is at a distance of 1 unit of the center of the surface that measures 6 x 6 units. The luminance for black pixels is set at 5%, and at 95% for white ones. The local luminance decreases as the distance increases following the inverse square root law.

Made under python thanks to Robert Ochshorn.