Index: gm/lightingshader.cpp |
diff --git a/gm/lightingshader.cpp b/gm/lightingshader.cpp |
index 54318ee445d661ca61d1e3f545ca49ea58497438..4a79ebea1d9bbd6f72f5ad23eec0d5560c691395 100644 |
--- a/gm/lightingshader.cpp |
+++ b/gm/lightingshader.cpp |
@@ -48,11 +48,11 @@ public: |
SkLights::Builder builder; |
- builder.add(SkLights::Light(SkColor3f::Make(1.0f, 1.0f, 1.0f), |
- SkVector3::Make(SK_ScalarRoot2Over2, |
- 0.0f, |
- SK_ScalarRoot2Over2))); |
- 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), |
+ SkVector3::Make(SK_ScalarRoot2Over2, |
+ 0.0f, |
+ SK_ScalarRoot2Over2))); |
+ builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.2f, 0.2f, 0.2f))); |
fLights = builder.finish(); |
} |