I'm doing some experiments on my own to improve my general skills with HLSL and so forth. In other words, I'm not doing any serious game development, but only looking to expand my knowledge within the field.
I'm trying to figure out how I can increase the resolution of a texture, and multiply it X amount of times.
Consider the following low-resolution picture:
A typical scenario for me would be to scale up this picture 3 times in the shader without interpolation, and draw the new result:
I've been experimenting with a shader that transfers the small picture on to a texture as a variable on the shader. I got that far. Now I just need it to take that texture using tex2D or something else, and scale it up.
How would I do that?