pub fn diffuse_lighting(
fe: &DiffuseLighting,
light_source: LightSource,
src: ImageRef<'_>,
dest: ImageRefMut<'_>,
)Expand description
Renders a diffuse lighting.
srcpixels can have any alpha method, since only the alpha channel is used.destwill have an unpremultiplied alpha.
Does nothing when src is less than 3x3.
ยงPanics
- When
srcanddesthave different sizes.