When using the tex2d
function in a HLSL shader, as so:
float height = tex2D(heightMap, IN.texCoord).r;
What range of values can be returned to the height variable? Is it always a number between 0.0f
- 1.0f
? Or does it depend on the texture or sampler?