fix: use final thickness

This commit is contained in:
TrèsAbhi committed 2024-03-30 11:34:39 -05:00
1 parent cce61d8075
commit c2de4952ad
1 file changed
+1 -1
@@ -51,7 +51,7 @@ void main() {
if (canSplash && useSpacedArmor && isUnderSpacedArmor) {
float spacedArmorThickness = spacedArmorBufferFragment.r * penetration;
float finalDamage = 0.5 * damage * (1.0 - distanceFromSpacedArmor / explosionRadius) - 1.1 * (thickness + spacedArmorThickness);
float finalDamage = 0.5 * damage * (1.0 - distanceFromSpacedArmor / explosionRadius) - 1.1 * (finalThickness + spacedArmorThickness);
penetrationChance = 0.0;
splashChance = finalDamage > 0.0 ? 1.0 : 0.0;