Index: src/core/SkLightingShader.cpp |
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp |
index 473028105a9c5a295b90dd438a43a3c6be0af353..6b9a39f4fb537a030ec7bfa5195042ffac66c470 100644 |
--- a/src/core/SkLightingShader.cpp |
+++ b/src/core/SkLightingShader.cpp |
@@ -176,6 +176,7 @@ public: |
this->emitChild(0, nullptr, &dstNormalName, args); |
fragBuilder->codeAppendf("vec3 normal = %s.xyz;", dstNormalName.c_str()); |
+ |
jvanverth1
2016/07/07 19:08:35
Nit: if you remove this line, then this file doesn
vjiaoblack
2016/07/07 19:17:56
Done.
|
fragBuilder->codeAppendf("float NdotL = clamp(dot(normal, %s), 0.0, 1.0);", |
lightDirUniName); |
// diffuse light |