Give arbitrary inputs to fragment shaders

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Give arbitrary inputs to fragment shaders

Postby argv » Fri Oct 06, 2017 6:10 pm

Currently, we have the ability to apply fragment shaders to arbitrary textures. This is quite useful! However, there's no way to give them additional uniforms from ZScript.

This makes it especially hard (and slow) to do complex effects on the status bar/HUD. I recently posted a request for help with drawing a stylized bar on the HUD, and while I was given a clever solution, it's still much slower than drawing the entire thing with a shader and a single draw call.

Please consider adding a drawing API to ZScript that applies a fragment shader to a region of the screen, and allows ZScript code to pass arbitrary uniform variables (preferably including additional textures) to the shader.
argv
 
Joined: 30 Aug 2016

Re: Give arbitrary inputs to fragment shaders

Postby Rachael » Wed Jun 05, 2019 2:11 am

Since Vulkan is done, the hwrenderer is no longer in a state of feature freeze, as far as I know. This has come up again, as a desired feature, maybe the idea can be revisited?
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Graphics Processor: nVidia with Vulkan support


Return to Feature Suggestions

Who is online

Users browsing this forum: Toberone and 0 guests