diff --git a/reshade/retro-v2-softlight-subtle.glslp b/reshade/retro-v2-softlight-subtle.glslp new file mode 100644 index 00000000..35e32109 --- /dev/null +++ b/reshade/retro-v2-softlight-subtle.glslp @@ -0,0 +1,21 @@ +shaders = 2 +shader0 = ../handheld/shaders/retro-v2.glsl +shader1 = shaders/blendsoftlight/blendsoftlight.glsl + + + +textures = "overlay" +# change this path to point to your overlay image +overlay = shaders/blendsoftlight/shine_subtle.png +OverlayMix = 1.0 + +scale_type0 = source +scale0 = 4 + +filter_linear0 = false +filter_linear1 = true + +parameters = "RETRO_PIXEL_SIZE" +# set these to the width/height of your overlay image +SCALE = "1.0" +RETRO_PIXEL_SIZE = "0.70" \ No newline at end of file diff --git a/reshade/shaders/blendsoftlight/blendsoftlight.glsl b/reshade/shaders/blendsoftlight/blendsoftlight.glsl index d6aff654..272dd98c 100644 --- a/reshade/shaders/blendsoftlight/blendsoftlight.glsl +++ b/reshade/shaders/blendsoftlight/blendsoftlight.glsl @@ -60,10 +60,12 @@ uniform COMPAT_PRECISION float OUT_Y; void main() { gl_Position = MVPMatrix * VertexCoord; - vec2 scale = (OutputSize.xy / InputSize.xy) / SCALE; - vec2 middle = vec2(0.5, 0.5) * InputSize.xy / TextureSize.xy; - vec2 diff = TexCoord.xy - middle; - TEX0.xy = middle + diff * scale; + TEX0.xy = TexCoord.xy; + + // vec2 scale = (OutputSize.xy / InputSize.xy) / SCALE; + // vec2 middle = vec2(0.5, 0.5) * InputSize.xy / TextureSize.xy; + // vec2 diff = TexCoord.xy - middle; + // TEX0.xy = middle + diff * scale; } #elif defined(FRAGMENT) diff --git a/reshade/shaders/blendsoftlight/shine.png b/reshade/shaders/blendsoftlight/shine.png index 6588d9b7..69367935 100644 Binary files a/reshade/shaders/blendsoftlight/shine.png and b/reshade/shaders/blendsoftlight/shine.png differ diff --git a/reshade/shaders/blendsoftlight/shine_subtle.png b/reshade/shaders/blendsoftlight/shine_subtle.png new file mode 100644 index 00000000..6588d9b7 Binary files /dev/null and b/reshade/shaders/blendsoftlight/shine_subtle.png differ