Amount of light reaching the sensor of pinhole camera model Consider hypothetical camera with pinhole (in mathematical sense) lens and is sensor, like in below image. Is it the case that the central region of the sensor will receive more light (pixels will be brighter) than the pixels closer to the border?

Will the darkening be proportional to the cosine of the sensor normal and the direction which the light comes from?

Is this phenomenon occurring in digital cameras, is it corrected digitally?



EDIT:

I mostly interested in case of idealized film. Digital cameras exhibit this effect due to light attenuation caused be some participating media.
I'm asking about pure geometrical effect like in Lambertian law.
This effect is called vignetting. The cases you talk about are specifically natural and pixel vignetting as explained on the wiki page. Digital cameras compensate these effects, but optical vignetting has to be done in image software for DSLR's with interchangeable lenses. For example if you import an image to Lightroom, there's "lens correction" option, which removes vignetting, distortion and chromatic aberration caused by the lens based on the lens profile.