View Full Version : VS Texture access in RM1.6v?

01-08-2006, 07:41 PM
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;

01-09-2006, 02:31 AM
do you use the right texture format? ..i think 32bit float, no filtering