Render Style Mapping

Moderator: GZDoom Developers

Posts: 126
Joined: Mon May 25, 2015 10:52 am

Render Style Mapping

Post by Kazudra »

Think Brightmaps, except you change the render style with the given monochrome image.
Let's take the Baron's hand flames and make them "add", you can do it as easy as that or You can take the Spectre's death sprites to make it's innards opaque.

I don't even know if it's possible, but if it is quite frankly it's down-right revolutionary.
User avatar
Posts: 2095
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Render Style Mapping

Post by phantombeta »

This is simply not possible with how blending is done on GPUs. You can't set a blending mode per-pixel, it has to be done for the whole drawcall.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49095
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Render Style Mapping

Post by Graf Zahl »

For that particular reason fog on subtractively rendered sprites needs to be done as a second pass. It's really annoying that this final part of the render pipeline still isn't accessible to shaders :(

Return to “Closed Feature Suggestions [GZDoom]”