Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: src/core/SkShadowShader.h

Issue 2198933002: Making a sample for shadow maps for more intensive development (Closed) Base URL: https://skia.googlesource.com/skia@shadow-gm
Patch Set: Made req changes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkShadowShader.h
diff --git a/src/core/SkShadowShader.h b/src/core/SkShadowShader.h
index 7cbcbca224ceb82a3b9627b45d626d610cc4a78d..163d58acd7638f444d6937e4b2402634b91d50bd 100644
--- a/src/core/SkShadowShader.h
+++ b/src/core/SkShadowShader.h
@@ -25,6 +25,10 @@ public:
sk_sp<SkLights> lights,
int diffuseWidth, int diffuseHeight);
+ // The shadow shader supports any number of ambient lights, but only
+ // 4 non-ambient lights (currently just refers to directional lights).
+ static constexpr int kMaxNonAmbientLights = 4;
+
SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
};

Powered by Google App Engine
This is Rietveld 408576698