graphicsadapter: allowing font rom to be greyscale instead of clear B/W

This commit is contained in:
minjaesong
2020-11-15 23:59:07 +09:00
parent 88ad549553
commit c6260bb355

View File

@@ -932,13 +932,8 @@ void main() {
vec4 tileCol = texture2D(tilesAtlas, finalUVCoordForTile);
// apply colour
if (tileCol.r > 0) {
gl_FragColor = foreColFromMap;
}
else {
gl_FragColor = backColFromMap;
}
// apply colour. I'm expecting FONT ROM IMAGE to be greyscale
gl_FragColor = mix(backColFromMap, foreColFromMap, tileCol.r);
}
""".trimIndent()