Fixing uniform binding for fragment shader.
Updating the glsl fragment shader to color the lights.
Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb
diff --git a/libs/rs/rsProgram.h b/libs/rs/rsProgram.h
index 86f85fb..ddc5e8a 100644
--- a/libs/rs/rsProgram.h
+++ b/libs/rs/rsProgram.h
@@ -72,6 +72,11 @@
uint32_t mConstantCount;
bool mIsValid;
+ // Applies to vertex and fragment shaders only
+ void appendUserConstants();
+ void setupUserConstants(ShaderCache *sc, bool isFragment);
+ void initAddUserElement(const Element *e, String8 *names, uint32_t *count, const char *prefix);
+
ObjectBaseRef<Allocation> mConstants[MAX_UNIFORMS];
mutable bool mDirty;