Raster implementation of diffuse and specular lighting filters. Externally,
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 22 Jun 2012 21:01:23 +0000 (21:01 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 22 Jun 2012 21:01:23 +0000 (21:01 +0000)
commitf49b429ceface4f75f5f96570ea5a8b94896529d
tree15ec6b7d0f904ba949098f286c1588209e267e09
parent7d6afdd795eb4c7ce8f5a327117cfdba5f957ddb
Raster 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.

Review URL:  http://codereview.appspot.com/6302101/

git-svn-id: http://skia.googlecode.com/svn/trunk@4314 2bbb7eff-a529-9590-31e7-b0007b416f81
gm/lighting.cpp [new file with mode: 0644]
gyp/effects.gyp
gyp/gmslides.gypi
include/effects/SkLightingImageFilter.h [new file with mode: 0644]
src/effects/SkLightingImageFilter.cpp [new file with mode: 0644]