diff --git a/handheld/console-border/shader-files/gb-pass-5.slang b/handheld/console-border/shader-files/gb-pass-5.slang index 247b949..8311469 100644 --- a/handheld/console-border/shader-files/gb-pass-5.slang +++ b/handheld/console-border/shader-files/gb-pass-5.slang @@ -4,6 +4,7 @@ layout(push_constant) uniform Push { vec4 OutputSize; vec4 SourceSize; + vec4 OriginalSize; float video_scale; } params; @@ -11,7 +12,7 @@ layout(push_constant) uniform Push vec2 middle = vec2(0.5, 0.5); vec2 screen_scale = params.OutputSize.xy * params.SourceSize.zw; -vec2 border_scale = vec2(800, 400) * params.video_scale; +vec2 border_scale = vec2(800, 400) * (params.SourceSize.y / params.OriginalSize.y); layout(std140, set = 0, binding = 0) uniform UBO {