I am trying to do a texture access in the VS and I have a 7800GT, I can’t get it to work so am unsure thats its possible? Here is my code…
uniform sampler2D hm;
void main(void)
{
vec4 displacement = texture2D(hm, gl_MultiTexCoord0.xy);
vec4 position = gl_Vertex;
position.y += (displacement.r * 2.0);
gl_Position = gl_ModelViewProjectionMatrix * position;
}
Thanks