diffuse_lighting

Function diffuse_lighting 

Source
pub fn diffuse_lighting(
    fe: &DiffuseLighting,
    light_source: LightSource,
    src: ImageRef<'_>,
    dest: ImageRefMut<'_>,
)
Expand description

Renders a diffuse lighting.

  • src pixels can have any alpha method, since only the alpha channel is used.
  • dest will have an unpremultiplied alpha.

Does nothing when src is less than 3x3.

ยงPanics

  • When src and dest have different sizes.