Fixed HUD and menu position and scaling in hardware renderer

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-19 19:25:24 +01:00
parent c8cd2cb144
commit 3e091c3d5d
6 changed files with 136 additions and 53 deletions

View File

@@ -34,10 +34,5 @@ void main() {
vec3 neighborhoodAvg = (sampleN + sampleS + sampleE + sampleW) * 0.25;
vec3 aaColor = mix(centerSample.rgb, neighborhoodAvg, edgeAmount * 0.45);
vec2 centered = uv - 0.5;
float vignette = 1.0 - dot(centered, centered) * 0.35;
vignette = clamp(vignette, 0.75, 1.0);
vec3 color = aaColor * vignette;
fragColor = vec4(color, centerSample.a);
fragColor = vec4(aaColor, centerSample.a);
}