Index: gm/shadowmaps.cpp |
diff --git a/gm/shadowmaps.cpp b/gm/shadowmaps.cpp |
index b343d9b142221b60379c52901808e317462838d2..f953550d4bb55ac74b169d96dc64a8c261f6d4d7 100644 |
--- a/gm/shadowmaps.cpp |
+++ b/gm/shadowmaps.cpp |
@@ -70,11 +70,11 @@ public: |
// - soft white ambient light |
SkLights::Builder builder; |
- builder.add(SkLights::Light(SkColor3f::Make(0.2f, 0.3f, 0.4f), |
- SkVector3::Make(0.2f, 0.1f, 1.0f))); |
- builder.add(SkLights::Light(SkColor3f::Make(0.4f, 0.3f, 0.2f), |
- SkVector3::Make(0.1f, 0.2f, 1.0f))); |
- builder.add(SkLights::Light(SkColor3f::Make(0.4f, 0.4f, 0.4f))); |
+ builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(0.2f, 0.3f, 0.4f), |
+ SkVector3::Make(0.2f, 0.1f, 1.0f))); |
+ builder.add(SkLights::Light::MakeDirectional(SkColor3f::Make(0.4f, 0.3f, 0.2f), |
+ SkVector3::Make(0.1f, 0.2f, 1.0f))); |
+ builder.add(SkLights::Light::MakeAmbient(SkColor3f::Make(0.4f, 0.4f, 0.4f))); |
fLights = builder.finish(); |
} |