Sector-masked screenspace shaders

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

Moderator: GZDoom Developers

Sector-masked screenspace shaders

Postby Caligari87 » Sun Jan 13, 2019 1:09 pm

So I was thinking about fog and such, and had an idea: An optional "sector mask" for screenspace shaders, applied only to an on-screen area occupied by a certain sector. Ideally the shader would also get access to the mask texture, so that could be modified as well.

gif example, made in GIMP:

This could be useful for any number of things, including pseudo-fog effects with soft boundaries. Even better would be if shaders additional masks were available, such as height (gradient from lowest to highest point), floor, ceiling, walls.

Another example, using a fade to simulate how a heightmask and some "cloud" noise could be used to make a toxic "floor fog"

I imagine masks like this would be useful for things like water effects too.

User avatar
I'm just here for the community
User Accounts Assistant
Joined: 26 Feb 2004
Location: Salt Lake City, Utah, USA
Discord: Caligari87#3089

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest