diff --git a/src/renderer/shaders/cell.metal b/src/renderer/shaders/cell.metal index 995a5a8bc..115416cbc 100644 --- a/src/renderer/shaders/cell.metal +++ b/src/renderer/shaders/cell.metal @@ -365,6 +365,12 @@ fragment float4 cell_text_fragment( // Then premult the texture color float a = textureGrayscale.sample(textureSampler, in.tex_coord).r; + + // Demonstrate how we can thicken fonts by applying some "gain" to the + // alpha we get from the texture. + // + // We could make this a configurable knob. + a = pow(a, 1 / 3.0f); premult = premult * a; return premult;