specular_lighting

Function specular_lighting 

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

Renders a specular lighting.

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

Does nothing when src is less than 3x3.

ยงPanics

  • When src and dest have different sizes.