From 8442e0bffe0cdf731449d16494da35f9df956cee Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Tue, 31 Aug 2010 12:02:01 -0700 Subject: Fixing uniform binding for fragment shader. Updating the glsl fragment shader to color the lights. Change-Id: I6f850d1aa22059a2974e379f652f7e99d6a799fb --- libs/rs/rsProgram.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/rs/rsProgram.h') diff --git a/libs/rs/rsProgram.h b/libs/rs/rsProgram.h index 86f85fb70e48..ddc5e8a4d0fb 100644 --- a/libs/rs/rsProgram.h +++ b/libs/rs/rsProgram.h @@ -72,6 +72,11 @@ protected: 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 mConstants[MAX_UNIFORMS]; mutable bool mDirty; -- cgit v1.2.3-59-g8ed1b