Index: gm/lightingshader2.cpp |
diff --git a/gm/lightingshader2.cpp b/gm/lightingshader2.cpp |
index 5e0d19b661237784ca7258df78e467094cacb19d..70c9e29f69cae5ba5b00b603e1fcd7fb83a9ed71 100644 |
--- a/gm/lightingshader2.cpp |
+++ b/gm/lightingshader2.cpp |
@@ -43,9 +43,9 @@ protected: |
SkLights::Builder builder; |
const SkVector3 kLightFromUpperRight = SkVector3::Make(0.788f, 0.394f, 0.473f); |
- builder.add(SkLights::Light(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
- kLightFromUpperRight)); |
- builder.add(SkLights::Light(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
+ builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
+ kLightFromUpperRight)); |
+ builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
fLights = builder.finish(); |
fRect = SkRect::MakeIWH(kTexSize, kTexSize); |