summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
Commit message (Collapse)AuthorAgeFilesLines
* fix [1610840] Positional light doesn't work correctly on emulatorMathias Agopian2009-06-033-78/+39
| | | | | | | | 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.
* fix a bug in GL lighting where the specular component could be ommited when ↵Mathias Agopian2009-06-021-0/+5
| | | | | | vertex material was disabled. the specular enable flag wasn't computed in that case.
* only export the GL entry-points, hide everything else.Mathias Agopian2009-05-081-0/+2
| | | | | | | | Conflicts: opengl/libagl/Android.mk opengl/libs/Android.mk opengl/libs/egl_impl.h
* integrate some OpenGL ES changes back from master_gl in preparation of ↵Mathias Agopian2009-04-231-25/+43
| | | | opening GLES to the NDK.
* Automated import from //branches/donutburger/...@142484,142484Jack Palevich2009-03-241-6/+18
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0332-0/+11463
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0332-11461/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-4/+2
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-2/+4
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-103-46/+11
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-0/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-177-120/+192
|
* Initial ContributionThe Android Open Source Project2008-10-2132-0/+11419