Sunday 12 May 2013

OpenGL ES 1.1: texture mapped object has wrong color

If you use texture to get exact color for an object, make sure at the texture coordinate the texture does not change color suddenly. If so, you will get interpolated color instead of exact color. If the texture coordinates are at the corner or boundary of the texture, make sure the color at the other 3 corners or the reflected boundary are the same, otherwise you may get unwanted interpolated color.

No comments:

Post a Comment