View Single Post
Old 22nd June 2020, 19:35   #8
Major Dude
Join Date: Mar 2008
Location: Erlangen
Posts: 937
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.
Attached Files
File Type: milk martin - leer.milk (6.9 KB, 381 views)
Nitorami is online now   Reply With Quote