STYLE_Shaded PSprite issues

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1117
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)

STYLE_Shaded PSprite issues

Post by Jekyll Grim Payne »

STYLE_Shaded has issues with alpha clamping (as far as I can understand) when drawn with PSprite. Some specific images don't render correctly, while most of them do. Weirdly, exactly the same images that have issues render just fine with the same Shaded style if used on actors or drawn with Screen.DrawTexture.

I don't understand anything about this issue, but something is very wrong. Attaching example. In it you'll find the following:

1. An image drawn with Screen.DrawTexture. That one will be visible right away.
2. Type give testweapon to get a test weapon using the same graphic. Note how it renders "broken". Try gl_mask_sprite_threshold 0 to see how it changes.
3. Type summon test to see the same image applied on an actor. Note how it renders differently.



My assumption is that gl_mask_sprite_threshold should not be applied to PSprites using this renderstyle at all.


Edit: removed information about image being "subtractive," that was my mistake when I applied black fillcolor, and streamlined the text.
You do not have the required permissions to view the files attached to this post.

Return to “Bugs [GZDoom]”