Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro Assets
glsl-shaders
Commits
60d02f89
Commit
60d02f89
authored
Jul 02, 2020
by
hunterk
Browse files
change OrigTexture to PassPrev2Texture to allow shaders before; closes
#121
parent
1e61b653
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbrz/shaders/xbrz-freescale-multipass/xbrz-freescale-pass1.glsl
View file @
60d02f89
...
...
@@ -113,8 +113,8 @@ uniform COMPAT_PRECISION vec2 OutputSize;
uniform
COMPAT_PRECISION
vec2
TextureSize
;
uniform
COMPAT_PRECISION
vec2
InputSize
;
uniform
sampler2D
Texture
;
uniform
sampler2D
Orig
Texture
;
uniform
COMPAT_PRECISION
vec2
Orig
TextureSize
;
uniform
sampler2D
PassPrev2
Texture
;
uniform
COMPAT_PRECISION
vec2
PassPrev2
TextureSize
;
COMPAT_VARYING
vec4
TEX0
;
// compatibility #defines
...
...
@@ -123,7 +123,7 @@ COMPAT_VARYING vec4 TEX0;
#define SourceSize vec4(TextureSize, 1.0 / TextureSize) //either TextureSize or InputSize
#define OutSize vec4(OutputSize, 1.0 / OutputSize)
#define OriginalSize vec4(
Orig
TextureSize, 1.0 /
Orig
TextureSize)
#define OriginalSize vec4(
PassPrev2
TextureSize, 1.0 /
PassPrev2
TextureSize)
#define BLEND_NONE 0.
#define BLEND_NORMAL 1.
...
...
@@ -167,7 +167,7 @@ float get_left_ratio(vec2 center, vec2 origin, vec2 direction, vec2 scale)
#define eq(a,b) (a == b)
#define neq(a,b) (a != b)
#define P(x,y) COMPAT_TEXTURE(
Orig
Texture, coord + OriginalSize.zw * vec2(x, y)).rgb
#define P(x,y) COMPAT_TEXTURE(
PassPrev2
Texture, coord + OriginalSize.zw * vec2(x, y)).rgb
void
main
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment