From 84cddf6fa7a2ee4a8163f99c9238d5fba6b49566 Mon Sep 17 00:00:00 2001 From: vjiaoblack Date: Mon, 29 Aug 2016 08:38:04 -0700 Subject: Revert of Moved ambient lights out of SkLight's light array (patchset #7 id:120001 of https://codereview.chromium.org/2287553002/ ) Reason for revert: Made Deigo's GM miss their ambient lights Original issue's description: > 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 TBR=robertphillips@google.com,djsollen@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review-Url: https://codereview.chromium.org/2291663002 --- samplecode/SampleLighting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samplecode/SampleLighting.cpp') diff --git a/samplecode/SampleLighting.cpp b/samplecode/SampleLighting.cpp index 2218f31022..bab2b5df92 100755 --- a/samplecode/SampleLighting.cpp +++ b/samplecode/SampleLighting.cpp @@ -22,7 +22,7 @@ static sk_sp create_lights(SkScalar angle, SkScalar blue) { SkLights::Builder builder; builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, blue), dir)); - builder.setAmbientLightColor(SkColor3f::Make(0.1f, 0.1f, 0.1f)); + builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.1f, 0.1f, 0.1f))); return builder.finish(); } -- cgit v1.2.3