diff options
author | 2015-07-30 05:09:17 -0700 | |
---|---|---|
committer | 2015-07-30 05:09:17 -0700 | |
commit | 640898f5881df1fd56d306190608dd79b1f32044 (patch) | |
tree | 58e24fcee1e3278c11d9fabe6d55948d1df1372c /samplecode | |
parent | a15cd9cb7fad31b93cd44541993b69bd5d006582 (diff) |
Update SkLightingShader to take a localMatrix
W/o this we can't draw lit objects anywhere but the origin.
Review URL: https://codereview.chromium.org/1253223003
Diffstat (limited to 'samplecode')
-rwxr-xr-x | samplecode/SampleLighting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleLighting.cpp b/samplecode/SampleLighting.cpp index 079cb68708..3cda0c6a56 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); |