Merge pull request #317 from nfp0/handheld-border-single-scaling-parameter

Instructions on how to change scale for border-auto-scale presets
This commit is contained in:
hizzlekizzle 2022-10-17 16:10:58 -05:00 committed by GitHub
commit 9e89aafe0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 24 deletions

View file

@ -2,8 +2,6 @@ shaders = 4
shader0 = ../../motionblur/shaders/response-time.slang shader0 = ../../motionblur/shaders/response-time.slang
filter_linear0 = false filter_linear0 = false
scale_type0 = source
scale0 = 1.0
shader1 = ../shaders/mgba/agb001.slang shader1 = ../shaders/mgba/agb001.slang
filter_linear1 = false filter_linear1 = false
@ -12,8 +10,6 @@ scale1 = 4.0
shader2 = ../shaders/color/gba-color.slang shader2 = ../shaders/color/gba-color.slang
filter_linear2 = false filter_linear2 = false
scale_type2 = source
scale2 = 1.0
shader3 = shader-files/border-auto-scale.slang shader3 = shader-files/border-auto-scale.slang
filter_linear3 = true filter_linear3 = true

View file

@ -2,8 +2,6 @@ shaders = 5
shader0 = ../../motionblur/shaders/response-time.slang shader0 = ../../motionblur/shaders/response-time.slang
filter_linear0 = false filter_linear0 = false
scale_type0 = source
scale0 = 1.0
shader1 = ../shaders/mgba/ags001.slang shader1 = ../shaders/mgba/ags001.slang
filter_linear1 = false filter_linear1 = false
@ -12,13 +10,9 @@ scale1 = 4.0
shader2 = ../shaders/color/gba-color.slang shader2 = ../shaders/color/gba-color.slang
filter_linear2 = false filter_linear2 = false
scale_type2 = source
scale2 = 1.0
shader3 = ../shaders/mgba/ags001-light.slang shader3 = ../shaders/mgba/ags001-light.slang
filter_linear3 = false filter_linear3 = false
scale_type3 = source
scale3 = 1.0
shader4 = shader-files/border-auto-scale.slang shader4 = shader-files/border-auto-scale.slang
filter_linear4 = true filter_linear4 = true

View file

@ -4,15 +4,9 @@ shader1 = ../shaders/lcd-cgwg/lcd-grid-v2.slang
shader2 = ../shaders/color/gba-color.slang shader2 = ../shaders/color/gba-color.slang
shader3 = shader-files/border-auto-scale.slang shader3 = shader-files/border-auto-scale.slang
scale_type0 = source
scale0 = 1
scale_type1 = source scale_type1 = source
scale1 = 4 scale1 = 4
scale_type2 = source
scale2 = 1
filter_linear0 = false filter_linear0 = false
filter_linear1 = false filter_linear1 = false
filter_linear2 = false filter_linear2 = false

View file

@ -1,8 +1,6 @@
shaders = "4" shaders = "4"
shader0 = "../../motionblur/shaders/feedback.slang" shader0 = "../../motionblur/shaders/feedback.slang"
scale_type0 = source
scale0 = 1.0
filter_linear0 = false filter_linear0 = false
shader1 = "../shaders/color/gba-color.slang" shader1 = "../shaders/color/gba-color.slang"

View file

@ -4,15 +4,9 @@ shader1 = ../shaders/lcd-cgwg/lcd-grid-v2.slang
shader2 = ../shaders/color/gbc-color.slang shader2 = ../shaders/color/gbc-color.slang
shader3 = shader-files/border-auto-scale.slang shader3 = shader-files/border-auto-scale.slang
scale_type0 = source
scale0 = 1
scale_type1 = source scale_type1 = source
scale1 = 4 scale1 = 4
scale_type2 = source
scale2 = 1
filter_linear0 = false filter_linear0 = false
filter_linear1 = false filter_linear1 = false
filter_linear2 = false filter_linear2 = false

View file

@ -9,6 +9,7 @@ layout(push_constant) uniform Push
} params; } params;
#pragma parameter border_texture_scale "Border Scale" 4.0 1.0 20.0 0.005 #pragma parameter border_texture_scale "Border Scale" 4.0 1.0 20.0 0.005
#pragma parameter bogus_scale_instructions "[SCREEN SIZE]: In previous menu->Change lcd-grid scale->Apply" 0.0 0.0 1.0 1.0
vec2 middle = vec2(0.5, 0.5); vec2 middle = vec2(0.5, 0.5);
vec2 screen_ratio = params.OutputSize.xy * params.SourceSize.zw; vec2 screen_ratio = params.OutputSize.xy * params.SourceSize.zw;