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.
Introduction to GLSL shaders
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!)
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!)
- 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
Take a look at MariFX: https://github.com/OrdinaryMagician/marifx_m
Re: Introduction to GLSL shaders
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!
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!