Order of the shaders

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Order of the shaders

Postby Pityurko » Fri May 31, 2019 5:29 am

Hello,

I have a WAD containing various shaders. My only problem is, that I don't know how to ensure, that these shaders get applied in the right order. For example how can I make sure, that my film grain shader is applied on top of my screen warping shader (so that the grain itself stays unwarped). Or does this totally depend on the shader itself?
User avatar
Pityurko
 
Joined: 30 Oct 2018

Re: Order of the shaders

Postby difficultoldstuff » Wed Dec 09, 2020 7:21 am

Sorry to revive an oldie, but I was googling around for the same answer and I stumbled upon a solution by some experimentation:

The order of GLSL shaders seems to be applied as specified in the GLDEFS lump. If you declare a shader first it's gonna be first.
difficultoldstuff
 
Joined: 17 Jul 2020
Twitch ID: difficultoldstuff
Operating System: Windows Vista/7/2008 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Assets (and other stuff)

Who is online

Users browsing this forum: No registered users and 1 guest