Skip to content

Commit

Permalink
Unusual sprite transparency fix
Browse files Browse the repository at this point in the history
*Fixed various sprites appearing slightly transparent if they are too close to the player or walls etc., this was caused by them having "depth blending" on by default which "softens" them when they are too close to walls, models and such.

Changes can be noticed best with third person on, standing close to a wall or while the effect passes over the player with an orbiting unusual on like tf logo, aces high, orbiting planets, desd presidents and the likes, they will now no longer be slightly transparent.
  • Loading branch information
NonhumanFromSteam committed Sep 30, 2021
1 parent e90d5c8 commit 0c2e74d
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"UnlitGeneric"
{
"$baseTexture" "Effects\AnimatedBat/animated_bat"
$translucent 1
$overbrightfactor 2
$vertexalpha 1
$vertexcolor 1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$baseTexture" "Effects\AnimatedBat/animated_bat"
$translucent 1
$overbrightfactor 1
$vertexalpha 1
$vertexcolor 1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"Spritecard"
{
"$baseTexture" "Effects\AnimatedCards/animated_cards"
$translucent 1
$overbrightfactor 1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"Spritecard"
{
"$baseTexture" "Effects\AnimatedCards/animated_cards_blue"
$translucent 1
$overbrightfactor 1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"Spritecard"
{
"$baseTexture" "Effects\AnimatedCash/animated_cash"
$translucent 1
$overbrightfactor 1.1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$baseTexture" "Effects\AnimatedRock/animated_rock"
$translucent 1
$overbrightfactor 2
$vertexalpha 1
$vertexcolor 1
$depthblend 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"SpriteCard"
{
"$baseTexture" "Effects\AnimatedTentMonster/animated_tentmonster01"
$translucent 1
$overbrightfactor 0.75
$vertexalpha 1
$vertexcolor 1
$depthblend 0
}

7 changes: 7 additions & 0 deletions TF2UltimateVisualFix/materials/effects/confetti/confetti.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"Spritecard"
{
"$basetexture" "effects/confetti/confetti"
"$translucent" 1
"$overbrightfactor" "4"
$depthblend 0
}
9 changes: 9 additions & 0 deletions TF2UltimateVisualFix/materials/effects/heart.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$basetexture" "Effects/heart"
"$surfaceprop" "no_decal"
"$translucent" 1
"$vertexcolor" 1
"$vertexalpha" 1
$depthblend 0
}
9 changes: 9 additions & 0 deletions TF2UltimateVisualFix/materials/effects/peacesign.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$basetexture" "Effects/peacesign"
"$surfaceprop" "no_decal"
"$translucent" 1
"$vertexcolor" 1
"$vertexalpha" 1
$depthblend 0
}
9 changes: 9 additions & 0 deletions TF2UltimateVisualFix/materials/effects/planet01.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$basetexture" "Effects/planet01"
"$surfaceprop" "no_decal"
"$translucent" 1
"$vertexcolor" 1
"$vertexalpha" 1
$depthblend 0
}
9 changes: 9 additions & 0 deletions TF2UltimateVisualFix/materials/effects/planet02.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$basetexture" "Effects/planet02"
"$surfaceprop" "no_decal"
"$translucent" 1
"$vertexcolor" 1
"$vertexalpha" 1
$depthblend 0
}
9 changes: 9 additions & 0 deletions TF2UltimateVisualFix/materials/effects/tflogo.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"SpriteCard"
{
"$basetexture" "Effects/tflogo"
"$surfaceprop" "no_decal"
"$translucent" 1
"$vertexcolor" 1
"$vertexalpha" 1
$depthblend 0
}

0 comments on commit 0c2e74d

Please sign in to comment.