I'd like to do a shader like this, but for that I need to get screen-space width and height.
I know I can get the value of the current fragment x and y coord with gl_FragCoord.xy, but I need to divide it to get values that range from (0,0) to (1,1).
Does anyone know this?
I know I can get the value of the current fragment x and y coord with gl_FragCoord.xy, but I need to divide it to get values that range from (0,0) to (1,1).
Does anyone know this?
No one?
Hm so if this is not possible, then this should definitely be added, as it is kind of a basic feature/need for many applications.
Hm so if this is not possible, then this should definitely be added, as it is kind of a basic feature/need for many applications.
So you basically want a "resolution" uniform like the one in the landscape shader? Probably isn't hard to add.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill