aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-07-09 09:04:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-09 09:04:16 -0700
commitd17a32966afb2f7fdebfb58d37fa1b2d3e2d474b (patch)
tree9055827bec41d80fa002b3689d45f73374210a54 /gyp
parentef46468063efa99d028c6b40d170fccfb29b2fa8 (diff)
Add normal map sample
This adds an example of an SkShader that does normal mapping. It has a single directional light and an ambient light. Committed: https://skia.googlesource.com/skia/+/8e0da72ba890de395c9946ec6639c9e1e7b16027 Review URL: https://codereview.chromium.org/1212813009
Diffstat (limited to 'gyp')
-rw-r--r--gyp/SampleApp.gyp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gyp/SampleApp.gyp b/gyp/SampleApp.gyp
index 7ccda93619..a1519e5f54 100644
--- a/gyp/SampleApp.gyp
+++ b/gyp/SampleApp.gyp
@@ -86,6 +86,7 @@
'../samplecode/SampleLayerMask.cpp',
'../samplecode/SampleLayers.cpp',
'../samplecode/SampleLCD.cpp',
+ '../samplecode/SampleLighting.cpp',
'../samplecode/SampleLines.cpp',
'../samplecode/SampleLua.cpp',
'../samplecode/SampleManyRects.cpp',
@@ -259,6 +260,11 @@
'android_deps.gyp:Android_SampleApp',
],
}],
+ [ 'skia_os == "chromeos"', {
+ 'sources!': [
+ '../samplecode/SampleLighting.cpp', #doesn't compile due to gpu dependencies
+ ],
+ }],
[ 'skia_gpu == 1', {
'dependencies': [
'gputest.gyp:skgputest',