Go to file
Mathias Agopian 69ca17a124 fix [1610840] Positional light doesn't work correctly on emulator
This bug was introduced when lighting computations was changed from eye-space to object-space.
The light position need to be transformed back to object-space each time the modelview matrix changes which requires us to compute the inverse of the modelview matrix. This computation was done with the assumption that normals where transformed (which was the case when the computation was made in eye-space), however, normals only require the inverse of the upper 3x3 matrix while transforming positions requires the inverse of the whole matrix.
This caused the interesting behavior that lights were more-or-less transformed properly, but not translated at all, which caused improper lighting with directional lights in particular.

There was also another smaller bug affecting directional lights: when vertices are read, only the active component are read, the other ones are ignored, later, the transformation operations are set up to ignore the unset values, howver, in the case of lighting, we use the vertex in object space (that is, before it is transformed), and therefore were using uninitalized values; in particular w.
2009-06-03 15:09:52 -07:00
awt auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
camera/libcameraservice Merge commit '7b7225c8fdbead25235c74811b30ff4ee690dc58' into manual_merge 2009-05-21 10:17:23 -07:00
cmds runtime: Add CAP_SYS_NICE to the system server capabilities list so it 2009-05-21 15:34:56 -07:00
im/java/android/im auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
include Adding TTS error code to signal missing resources (for instance missing language files). 2009-05-28 11:11:25 -07:00
libs Merge change 2747 into donut 2009-05-29 14:55:48 -07:00
opengl fix [1610840] Positional light doesn't work correctly on emulator 2009-06-03 15:09:52 -07:00
tts Cleaning up makefile for libttssynthproxy for the simulator. 2009-06-03 09:43:14 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Start using CLDR for some date-and-time strings and formats. 2009-05-15 10:15:50 -07:00