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