Custom Brightness

Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
Rachael
Posts: 13926
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Custom Brightness

Post by Rachael »


This is the prototype that I used to create this feature: https://github.com/coelckers/gzdoom/com ... 00ac3f6889

This shader essentially allows much greater flexibility over the brightness/gamma presentation than GZDoom/Raze allows internally. Including allowing values that turn the image negative.

Its main purpose is to demonstrate how to define linked uniform CVars in gldefs.txt - which is preferred over using a tick function since now it does not need to run every frame, not to mention makes it actually usable in Raze.
Attachments
custom_brightness.pk3
(685 Bytes) Downloaded 245 times
User avatar
Redneckerz
Spotlight Team
Posts: 1120
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: Custom Brightness

Post by Redneckerz »

Looks trippy but also clean. I like the look a lot.
grahf78
Posts: 24
Joined: Sun Jun 21, 2020 10:11 pm
Graphics Processor: nVidia (Modern GZDoom)

Re: Custom Brightness

Post by grahf78 »

Love the new feature. Is there any chance this could also get implemented for material shaders? It would also be nice to be able to subscribe some sort of cvar event listener in ZScript too, for cases where we need to check them every tick.
Post Reply

Return to “Shaders”