Skip to content

Commit a40f046

Browse files
committed
Fixed a sprite rendering issue introduced by the previous release.
1 parent 3622998 commit a40f046

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

TheForceEngine/Shaders/gpu_render_sprite.frag

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,17 @@ void main()
6464
// if (discardPixel(baseColor, LightData.w)) { discard; }
6565
// Either discard very close to the iso-value or
6666
// do a two-pass filter - close cut with depth-write + alpha blend without depth-write.
67-
if (baseColor.a < 0.48 && LightData.w < 1.0) { discard; }
67+
#ifdef OPT_TRUE_COLOR
68+
if (baseColor.a < 0.48 && LightData.w < 1.0)
69+
{
70+
discard;
71+
}
72+
#else
73+
if (baseColor < 0.5 && LightData.w < 1.0)
74+
{
75+
discard;
76+
}
77+
#endif
6878

6979
// Get the emissive factor (0 = normal, 1 = 100% fullbright).
7080
#ifdef OPT_TRUE_COLOR

TheForceEngine/gitVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
const char c_gitVersion[] = R"(
2-
v1.09.512
2+
v1.09.520
33
)";

0 commit comments

Comments
 (0)