Custom Brightness

Custom Brightness

Postby Rachael » Tue Feb 01, 2022 10:56 am


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.
You do not have the required permissions to view the files attached to this post.
User avatar
Rachael
^ walking stack of unfinished projects ^
Admin
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: Custom Brightness

Postby Redneckerz » Wed Feb 02, 2022 1:58 pm

Looks trippy but also clean. I like the look a lot.
User avatar
Redneckerz
To it's ports i may have seen
Spotlight Team
 
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: Intel (Modern GZDoom)

Re: Custom Brightness

Postby grahf78 » Wed Feb 02, 2022 6:47 pm

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.
grahf78
 
Joined: 21 Jun 2020
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)


Return to Shaders

Who is online

Users browsing this forum: No registered users and 0 guests