https://github.com/EvolutionRTS/Evoluti ... thbars.lua
Those are floris' sexy healthbars.
Here is a screenie of what I'm talking about. Fwiw, the alpha of the shield sphere is very low, but if you look at the outline on the ground you can see where the sphere is.
https://drive.google.com/file/d/0B25BbZ ... p=drivesdk
LUPS shieldsphere causes healthbars to be invisible
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
LUPS shieldsphere causes healthbars to be invisible
Last edited by Forboding Angel on 14 May 2017, 11:29, edited 1 time in total.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LUPS shieldsphere causes healthbars to not be rendered at all
Hmm, perhaps the larger issue is with the shieldsphere shader in general?
https://drive.google.com/file/d/0B25BbZ ... p=drivesdk
https://drive.google.com/file/d/0B25BbZ ... p=drivesdk
Re: LUPS shieldsphere causes healthbars to not be rendered at all
No, the larger issue (stated a few times before) is that order matters when drawing overlapping translucent elements.
If the shield spheres happen to be drawn first with z-writing enabled, they'll block anything that has z-testing enabled and lives at a greater depth from drawing after them, including healthbars.
If the shield spheres happen to be drawn first with z-writing enabled, they'll block anything that has z-testing enabled and lives at a greater depth from drawing after them, including healthbars.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LUPS shieldsphere causes healthbars to not be rendered at all
Thanks, that helped quite a bit. All fixed up now
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: LUPS shieldsphere causes healthbars to not be rendered at all
Btw if anyone needs help with this let me know. If you have a look, evo's shields look fantastic now and there is no longer a massive performance drop when there are 50 - 100 of them on screen at once.