Index: samplecode/SampleLighting.cpp |
diff --git a/samplecode/SampleLighting.cpp b/samplecode/SampleLighting.cpp |
index 079cb68708a9d138608494e83a3ca4a76338d386..3cda0c6a5692b826341e58b6bff1302fcec47e24 100755 |
--- a/samplecode/SampleLighting.cpp |
+++ b/samplecode/SampleLighting.cpp |
@@ -41,7 +41,7 @@ public: |
fAmbientColor = SkColorSetRGB(0x1f, 0x1f, 0x1f); |
fShader.reset(SkLightingShader::Create(fDiffuseBitmap, fNormalBitmap, |
- light, fAmbientColor)); |
+ light, fAmbientColor, nullptr)); |
} |
virtual ~LightingView() {} |
@@ -67,7 +67,7 @@ protected: |
light.fDirection.fZ = SkScalarCos(SK_ScalarPI*0.25f); |
fShader.reset(SkLightingShader::Create(fDiffuseBitmap, fNormalBitmap, |
- light, fAmbientColor)); |
+ light, fAmbientColor, nullptr)); |
SkPaint paint; |
paint.setShader(fShader); |