Get screen dimensions for PP shaders
Moderator: GZDoom Developers
Get screen dimensions for PP shaders
I'd like to be able to get the current screen resolution with post processing shaders.
Re: Get screen dimensions for PP shaders
I'm not deleting the thread in case someone in future wants to do the same thing.
This is [Not Needed] as you can retrieve the screen's dimensions this way:
This thread can be closed
This is [Not Needed] as you can retrieve the screen's dimensions this way:
Code: Select all
vec2 texSize = textureSize(InputTexture, 0);
Re: Get screen dimensions for PP shaders
It might be a good idea to post that in Tutorials.