Skip to content

Commit e735ca1

Browse files
committed
gemini feedback
1 parent b70bbc7 commit e735ca1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

engine/src/flutter/impeller/entity/shaders/glyph_atlas.frag

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ void main() {
4343
// Applies gamma correction to take into account we are performing in
4444
// linear space but some fonts are expecting to operate in gamma space.
4545
// https://www.desmos.com/calculator/gsblcyg5vv
46-
coverage =
47-
1.0 - pow(clamp(1.0 - coverage, 0.0, 1.0), frag_info.text_contrast);
46+
coverage = 1.0 - pow(1.0 - coverage, frag_info.text_contrast);
4847
}
4948

5049
frag_color = f16vec4(coverage) * frag_info.text_color;

0 commit comments

Comments
 (0)