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 5cf4925
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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 5cf4925

Please sign in to comment.