Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Vignette/Cinematic Shader
- - By DaFatBrainbug Date 2018-04-07 16:34
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?
Reply
Parent - By DaFatBrainbug [de] Date 2018-04-09 15:29
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.
Reply
Parent - - By Luchs Date 2018-04-09 15:48
So you basically want a "resolution" uniform like the one in the landscape shader? Probably isn't hard to add.
Parent - By DaFatBrainbug [de] Date 2018-04-09 15:50
Yes, exactly
Reply
Parent - By DaFatBrainbug [de] Date 2018-04-16 09:09
I added this as a feature request to the bugtracker
Reply
Up Topic Development / Developer's Corner / Vignette/Cinematic Shader

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill