summaryrefslogtreecommitdiffstats
path: root/opengl/libagl/light.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-02-02 18:48:15 -0800
committerMathias Agopian <mathias@google.com>2010-02-03 12:13:15 -0800
commit04a3f57d19b471c21f3c83c50793a94908cafdc7 (patch)
tree7892b5f3d47c12a42e854a525d2a2ec8b412cb75 /opengl/libagl/light.h
parentbf0a46d0d5c2f315c2950111c3b9e69da877ef4f (diff)
downloadframeworks_native-04a3f57d19b471c21f3c83c50793a94908cafdc7.tar.gz
frameworks_native-04a3f57d19b471c21f3c83c50793a94908cafdc7.tar.bz2
frameworks_native-04a3f57d19b471c21f3c83c50793a94908cafdc7.zip
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/opengl/libagl/light.h b/opengl/libagl/light.h
index 6dae25f53..39e3309d0 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 {