mirror of
https://github.com/bloeys/nterm.git
synced 2025-12-29 14:38:19 +00:00
Advance by char width+better debug tools
This commit is contained in:
@ -42,16 +42,17 @@ in vec4 v2fColor;
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform sampler2D diffTex;
|
||||
uniform int drawBounds;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 texColor = texelFetch(diffTex, ivec2(v2fUV0), 0);
|
||||
// This commented out part highlights the full region of the char
|
||||
// if (texColor.r == 0)
|
||||
// {
|
||||
// fragColor = vec4(0,1,0,0.25);
|
||||
// }
|
||||
// else
|
||||
if (texColor.r == 0 && drawBounds != 0)
|
||||
{
|
||||
fragColor = vec4(0,1,0,0.25);
|
||||
}
|
||||
else
|
||||
{
|
||||
fragColor = vec4(v2fColor.rgb, texColor.r*v2fColor.a);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user