mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 15:04:03 +09:00
graphicsadapter: allowing font rom to be greyscale instead of clear B/W
This commit is contained in:
@@ -932,13 +932,8 @@ void main() {
|
|||||||
|
|
||||||
vec4 tileCol = texture2D(tilesAtlas, finalUVCoordForTile);
|
vec4 tileCol = texture2D(tilesAtlas, finalUVCoordForTile);
|
||||||
|
|
||||||
// apply colour
|
// apply colour. I'm expecting FONT ROM IMAGE to be greyscale
|
||||||
if (tileCol.r > 0) {
|
gl_FragColor = mix(backColFromMap, foreColFromMap, tileCol.r);
|
||||||
gl_FragColor = foreColFromMap;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
gl_FragColor = backColFromMap;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user