summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2009-08-11 18:01:14 +0200
committerMartin Storsjo <martin@martin.st>2009-08-11 18:01:14 +0200
commit79ad0e6623998ca2006aa0c17f902340132c3e1c (patch)
treec1406618051242f89465a68930f117eee56aaf34 /include
parentbae0f8e729866610b876372477753c8b458644f5 (diff)
downloadframeworks_base-79ad0e6623998ca2006aa0c17f902340132c3e1c.zip
frameworks_base-79ad0e6623998ca2006aa0c17f902340132c3e1c.tar.gz
frameworks_base-79ad0e6623998ca2006aa0c17f902340132c3e1c.tar.bz2
Calculate specular lighting correctly
Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.
Diffstat (limited to 'include')
-rw-r--r--include/private/opengles/gl_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/opengles/gl_context.h b/include/private/opengles/gl_context.h
index a85f275..e32e332 100644
--- a/include/private/opengles/gl_context.h
+++ b/include/private/opengles/gl_context.h
@@ -285,6 +285,7 @@ struct light_t {
vec4_t normalizedObjPosition;
vec4_t spotDir;
vec4_t normalizedSpotDir;
+ vec4_t objViewer;
GLfixed spotExp;
GLfixed spotCutoff;
GLfixed spotCutoffCosine;