diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6c51445 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +PREFIX := /usr +INSTALLDIR := $(PREFIX)/share/libretro/shaders/shaders_slang + +all: + @echo "Nothing to make for slang-shaders." + +install: + mkdir -p $(DESTDIR)$(INSTALLDIR) + cp -ar -t $(DESTDIR)$(INSTALLDIR) * + rm -f $(DESTDIR)$(INSTALLDIR)/Makefile \ + $(DESTDIR)$(INSTALLDIR)/configure + +test-install: all + DESTDIR=/tmp/build $(MAKE) install diff --git a/configure b/configure new file mode 100755 index 0000000..ee687aa --- /dev/null +++ b/configure @@ -0,0 +1,3 @@ +#!/bin/sh + +PACKAGE_NAME=slang-shaders diff --git a/xbr/shaders/super-xbr/super-xbr-pass1.slang b/xbr/shaders/super-xbr/super-xbr-pass1.slang index 2648721..820069b 100644 --- a/xbr/shaders/super-xbr/super-xbr-pass1.slang +++ b/xbr/shaders/super-xbr/super-xbr-pass1.slang @@ -45,7 +45,7 @@ layout(std140, set = 0, binding = 0) uniform UBO #define mul(a,b) (b*a) -#define wp1 8.0 +#define wp1 1.0 #define wp2 0.0 #define wp3 0.0 #define wp4 0.0 @@ -189,4 +189,4 @@ void main() FragColor = vec4(color, 1.0); } -} \ No newline at end of file +} diff --git a/xbr/shaders/super-xbr/super-xbr-pass2.slang b/xbr/shaders/super-xbr/super-xbr-pass2.slang index c7834e1..92a795f 100644 --- a/xbr/shaders/super-xbr/super-xbr-pass2.slang +++ b/xbr/shaders/super-xbr/super-xbr-pass2.slang @@ -48,8 +48,8 @@ layout(std140, set = 0, binding = 0) uniform UBO #define wp1 1.0 #define wp2 0.0 #define wp3 0.0 -#define wp4 2.0 -#define wp5 -2.0 +#define wp4 0.0 +#define wp5 0.0 #define wp6 0.0 #define weight1 (XBR_WEIGHT*1.29633/10.0) @@ -201,4 +201,4 @@ void main() color = clamp(color, min_sample, max_sample); FragColor = vec4(color, 1.0); -} \ No newline at end of file +}