mirror of
https://github.com/libretro/slang-shaders.git
synced 2024-11-23 16:30:05 +00:00
gb-pass5 - determine border size from SourceSize and OriginalSize.
Use only Y for compatibility with non-square pixel consoles.
This commit is contained in:
parent
f9d9c9724c
commit
9fcf6bf196
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user