Skip to content

Commit 9cc7079

Browse files
committed
Save all the channels of the team mask, not just the red and green channels.
1 parent 7d392bd commit 9cc7079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/globalincs/def_files.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,8 +1707,8 @@ char *Default_main_fragment_shader =
17071707
"\n"
17081708
"#ifdef FLAG_MISC_MAP\n"
17091709
" #ifdef FLAG_TEAMCOLOR\n"
1710-
" vec2 teamMask = vec2(0.0, 0.0);\n"
1711-
" teamMask = texture2D(sMiscmap, texCoord).rg;\n"
1710+
" vec4 teamMask = vec4(0.0, 0.0, 0.0, 0.0);\n"
1711+
" teamMask = texture2D(sMiscmap, texCoord);\n"
17121712
" vec3 base = base_color - vec3(0.5);\n"
17131713
" vec3 stripe = stripe_color - vec3(0.5);\n"
17141714
" baseColor.rgb += (base * teamMask.x) + (stripe * teamMask.y);\n"

0 commit comments

Comments
 (0)