Get screen dimensions for PP shaders

Moderator: GZDoom Developers

Post Reply
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Get screen dimensions for PP shaders

Post by Nash »

I'd like to be able to get the current screen resolution with post processing shaders.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Get screen dimensions for PP shaders

Post by Nash »

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:

Code: Select all

vec2 texSize = textureSize(InputTexture, 0);
 
This thread can be closed
User avatar
Rachael
Posts: 13561
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Get screen dimensions for PP shaders

Post by Rachael »

It might be a good idea to post that in Tutorials. ;)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”