diff options
| author | Martin Storsjo <martin@martin.st> | 2009-08-11 18:01:14 +0200 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2009-08-11 18:01:14 +0200 |
| commit | 79ad0e6623998ca2006aa0c17f902340132c3e1c (patch) | |
| tree | c1406618051242f89465a68930f117eee56aaf34 /include | |
| parent | bae0f8e729866610b876372477753c8b458644f5 (diff) | |
| download | frameworks_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.h | 1 |
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; |
