GL2.0 shading language

Hi guys. I just read the GL 2.0 shading language specs, and am under the impression that we can only do texture lookups in the pixel shader…

Why not the vertex shader? It would make it really easy to implement various forms of displacement mapping (e.g. for landscapes, fur and grass)

Would a texture fetch in the vertex shader tie the two units too close together, or is there something I’ve overlooked

Cheers,
Nicholas

The texture fetch is taking place in the fragment level, not in the vertex level. Hence I don’t think it will be easy to enable access to the texture color in each vertex.

Shlomi.