I am working on simple parallax shader and I have problem with sampling height texture for value.
My aproach amples texture and give me RGB values of picture:
tex2D(TextureHeightSampler, input.BaseOutput.TexCoordAndViewDistance.xy)
But I am not sure how to convert RGB data to height value. How to solve that?