Weapon rendering improvements

This commit is contained in:
dexy
2019-11-27 12:56:34 +11:00
Unverified
parent 57d5a2758e
commit dead879d99
6 changed files with 34 additions and 3 deletions
+1
View File
@@ -25,6 +25,7 @@ float4 main(VS_OUTPUT input) : SV_TARGET
if (EnableTexture == 1)
{
float4 c = Colourmap.Sample(TextureSS, input.Texcoord);
if (EnableTint == 2) { c.a = 1; }
if ((IsDecal == 0) && (c.a <= 0.33)) discard;
if ((IsDecal == 1) && (c.a <= 0.0)) discard;
}