tags:

views:

38

answers:

1

how to work with z coordinates in a texture in iphone openGl.

A: 

z coordinates are only useful for 3d textures (which are rather unusual) or for cubemaps, which are far more popular (to create environment mapping, reflections, etc.).

for the latter case, the three coordinates represent an unit vector addressing a point on the unit sphere; the correct texel is automatically retreived.

UncleZeiv