Skip to content

Commit

Permalink
Changes softlight shine to be more obvious, fixes aspect ratio & bord…
Browse files Browse the repository at this point in the history
…er glitch
  • Loading branch information
rbreaves committed Oct 14, 2022
1 parent 8c2fca3 commit b17e0f2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
21 changes: 21 additions & 0 deletions reshade/retro-v2-softlight-subtle.glslp
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 6 additions & 4 deletions reshade/shaders/blendsoftlight/blendsoftlight.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file modified reshade/shaders/blendsoftlight/shine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added reshade/shaders/blendsoftlight/shine_subtle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b17e0f2

Please sign in to comment.