commit | a8eabc4a2a5559a1410fdbb348f967cd1554b325 | [log] [tgz] |
---|---|---|
author | vjiaoblack <vjiaoblack@google.com> | Mon Aug 29 10:22:09 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Aug 29 10:22:09 2016 -0700 |
tree | 03d8a80ef4b2e62eaacbfee605b3ffc3162fa5c7 | |
parent | 84839f6fb3d0de9088be3d53e81df195331ed1c9 [diff] [blame] |
Moved ambient lights out of SkLight's light array BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2287553002 Committed: https://skia.googlesource.com/skia/+/8f98f0aa2d3f7571a890b916c7c4b5ee831e9686 Review-Url: https://codereview.chromium.org/2287553002
diff --git a/samplecode/SampleBevel.cpp b/samplecode/SampleBevel.cpp index e592cf1..cbeb249 100644 --- a/samplecode/SampleBevel.cpp +++ b/samplecode/SampleBevel.cpp
@@ -749,7 +749,7 @@ fLightDefs[i].fDirXY.fY, fLightDefs[i].fDirZ))); } - builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.4f, 0.4f, 0.4f))); + builder.setAmbientLightColor(SkColor3f::Make(0.4f, 0.4f, 0.4f)); fLights = builder.finish(); // Draw shapes