Skip to content

Commit b17e0f2

Browse files
committed
Changes softlight shine to be more obvious, fixes aspect ratio & border glitch
1 parent 8c2fca3 commit b17e0f2

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
shaders = 2
2+
shader0 = ../handheld/shaders/retro-v2.glsl
3+
shader1 = shaders/blendsoftlight/blendsoftlight.glsl
4+
5+
6+
7+
textures = "overlay"
8+
# change this path to point to your overlay image
9+
overlay = shaders/blendsoftlight/shine_subtle.png
10+
OverlayMix = 1.0
11+
12+
scale_type0 = source
13+
scale0 = 4
14+
15+
filter_linear0 = false
16+
filter_linear1 = true
17+
18+
parameters = "RETRO_PIXEL_SIZE"
19+
# set these to the width/height of your overlay image
20+
SCALE = "1.0"
21+
RETRO_PIXEL_SIZE = "0.70"

reshade/shaders/blendsoftlight/blendsoftlight.glsl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ uniform COMPAT_PRECISION float OUT_Y;
6060
void main()
6161
{
6262
gl_Position = MVPMatrix * VertexCoord;
63-
vec2 scale = (OutputSize.xy / InputSize.xy) / SCALE;
64-
vec2 middle = vec2(0.5, 0.5) * InputSize.xy / TextureSize.xy;
65-
vec2 diff = TexCoord.xy - middle;
66-
TEX0.xy = middle + diff * scale;
63+
TEX0.xy = TexCoord.xy;
64+
65+
// vec2 scale = (OutputSize.xy / InputSize.xy) / SCALE;
66+
// vec2 middle = vec2(0.5, 0.5) * InputSize.xy / TextureSize.xy;
67+
// vec2 diff = TexCoord.xy - middle;
68+
// TEX0.xy = middle + diff * scale;
6769
}
6870

6971
#elif defined(FRAGMENT)
-333 KB
Loading
3.92 MB
Loading

0 commit comments

Comments
 (0)