NeonAngel
Listen. This is not a bug. Aspect is just the screen aspect, not the image's.
uv goes from (0;0), top left, to (1;1) bottom right. tex2D(sampler_image, uv) will stretch any image to the entire screen.
Multiplying uv by aspect.xy (which is the screen aspect, i.e. 16:9) just means that your image will be squeezed accordingly; a square image will then not be stretched over the entire screen but appear in correct proportions. But ONLY a square image !
You need to use the proportions of your IMAGE to scale it. This is what matters.
See the attached example. Hope that helps.
|