If you disable lighting then re-enable it, the light position will depend on the modelview matrix when you enable the lighting. This can causes light position to change between frames. This may be a bug of iOS 6.1.
If you want to keep the light position fixed when re-enable lighting, you need to set light position again after re-enabling lighting. Also you need to make sure the modelview matrix is the same each time you set the light position.
No comments:
Post a Comment