fix: remove 'f' suffixes from tex.frag to fix nvidia (#136)

This commit is contained in:
Inconn 2023-03-26 18:14:33 -05:00 committed by GitHub
parent f2d29ceb6b
commit 4d1af65004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ void main() {
vec2 corner_distance = min(gl_FragCoord.xy - position, size + position - gl_FragCoord.xy);
if (max(corner_distance.x, corner_distance.y) < radius) {
float d = radius - distance(corner_distance, vec2(radius));
float smooth = smoothstep(-1.0f, 0.5f, d);
float smooth = smoothstep(-1.0, 0.5, d);
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
}
}