i would like to make a texture-lookup (i have once posted this issue, but there it was very general)
Now, i want to save the pixel color value of a texture in a float variable.
how can i access it, when i have the texcoord and the texture?
float4 main(float2 uv : TEXCOORD) : COLOR
{
float4 Color = 0;
float4 onePix;
onePix= tex2d(input, uv.xy); //there i get the whole texture, i just want to save one pixels value
Color += memory*0.5;
return Color;
}
Would be cool if someone could tell me how to do it, thank you!