DescriptionRaster implementation of diffuse and specular lighting filters. Externally, the caller instantiates a light (distant, point or spot), and an SkDiffuseLightingFilter or SkSpecularLightingImageFilter with that light. A Sobel edge detection filter is applied to the alpha of the incoming bitmap, and the result is used as a height map for lighting calculations.
Patch Set 1 #Patch Set 2 : create factory functions, remove SkLights from header, implement serialization #Patch Set 3 : Moved all factory functions to SkLightingImageFilter; hid subclasses. Tweaked gm lighting params. #
Total comments: 6
Patch Set 4 : switch everything to SkScalar; fix nits #
Total comments: 12
Patch Set 5 : fixes from Tom's comments: renames, comments, non-SkScalar-clean stuff #
MessagesTotal messages: 15
|