Shaded renderstyle with sprites

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
Jekyll Grim Payne
 
 
Posts: 1080
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)

Shaded renderstyle with sprites

Post by Jekyll Grim Payne »

I'm experimenting with using the Shaded renderstyle for a custom version of the invisibility powerup for my mod. Note, all sprites I use are truecolor PNGs, and they're all fully opaque.

For whatever reason, I'm getting conflicting results. Some sprites get the style applied properly:
Image

In case of others, however, only some opaque pixels are rendered, while everything else is omitted:
Image
(Note: this is a different weapon from the one above, but also two-handed)

For the life of me, I can't see any differences between the original files. I tried indexing them (using a local palette, since these are not palette-friendly) in Photoshop, but that didn't change anything.

UPD: Now this is just weird. If I spawn an actor with a Shaded renderstyle and give it the same sprites, it renders fine!
Image
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: Shaded renderstyle with sprites

Post by Talon1024 »

I had a similar issue with the briefing screen/"Old video for textures" shader in Wolfenstein: Blade of Agony. The pixels would either be fully black or fully opaque. Apparently, it was because the texture's alpha channel for each pixel was either fully transparent or fully opaque.

Does the issue still happen if you make some pixels on the sprite partially transparent?

Return to “Assets (and other stuff)”