Introduction to GLSL shaders

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom 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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
Jarewill
 
 
Posts: 1854
Joined: Sun Jul 21, 2019 8:54 am

Introduction to GLSL shaders

Post by Jarewill »

I'm looking for a way to turn the screen black and white. (kinda like the Reverse lightmap does, except not reversed)
I've been told that the best way to do this would be to set up a hardware shader, but I frankly have no idea how to do this.
If there are some good and easy to understand examples, I'd heavily appreciate them.

Also is there a way to toggle them on the fly?
Let's say a nightvision-like powerup that sets the map to full bright and enables said black and white shader.
User avatar
m8f
 
 
Posts: 1466
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Location: Siberia (UTC+7)
Contact:

Re: Introduction to GLSL shaders

Post by m8f »

Jarewill
 
 
Posts: 1854
Joined: Sun Jul 21, 2019 8:54 am

Re: Introduction to GLSL shaders

Post by Jarewill »

Thanks for the link!
Found my answers how to set up a shader, activate it midgame and the hue and saturation shader was exactly what I was looking for.
Thank you Marisa for those shaders!
Post Reply

Return to “Scripting”