Skip to content

Commit

Permalink
Update text fragment shader
Browse files Browse the repository at this point in the history
  • Loading branch information
alife1029 committed May 8, 2024
1 parent 6dd1f28 commit 1d19f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/res/shaders/text_fs.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ uniform sampler2D u_Samplers[MAX_TEXTURES];
void main()
{
int texIndex = int(v_TexIndex);
FragColor = vec4(1.0, 1.0, 1.0, texture(u_Samplers[texIndex].r, v_TexCoord)) * v_Color;
FragColor = vec4(1.0, 1.0, 1.0, texture(u_Samplers[texIndex], v_TexCoord)) * v_Color;
}

0 comments on commit 1d19f24

Please sign in to comment.