diff options
author | Mathias Agopian <mathias@google.com> | 2010-02-02 18:48:15 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-02-03 12:13:15 -0800 |
commit | e304bdd5ee5ed0b0d37fe388021c9cd138feda7f (patch) | |
tree | 4253c134c46166a9fd963adbdbe97a103f83b7dc /opengl/libagl/light.h | |
parent | ecf04ec19a1a72af7e38938fbad88d43934e3e7d (diff) | |
download | frameworks_base-e304bdd5ee5ed0b0d37fe388021c9cd138feda7f.zip frameworks_base-e304bdd5ee5ed0b0d37fe388021c9cd138feda7f.tar.gz frameworks_base-e304bdd5ee5ed0b0d37fe388021c9cd138feda7f.tar.bz2 |
fix [2133133] Software OpenGL ES Lighting is buggy (GL Gears washed out bug)
A typo caused GL_AMBIENT_AND_DIFFUSE to only set the the ambient color.
Fix another typo which caused the viewer position to be wrong for
specular highlights.
Switch back to eye-space lighting, since there are still some issues
with some demos (San Angeles in particular).
Diffstat (limited to 'opengl/libagl/light.h')
-rw-r--r-- | opengl/libagl/light.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/opengl/libagl/light.h b/opengl/libagl/light.h index 6dae25f..39e3309 100644 --- a/opengl/libagl/light.h +++ b/opengl/libagl/light.h @@ -22,6 +22,13 @@ #include <stddef.h> #include <sys/types.h> + +// Set to 1 for object-space lighting evaluation. +// There are still some bugs with object-space lighting, +// especially visible in the San Angeles demo. +#define OBJECT_SPACE_LIGHTING 0 + + namespace android { namespace gl { |