This commit is contained in:
hunterk 2017-07-25 15:14:13 -05:00
commit 92bde05c61
4 changed files with 22 additions and 5 deletions

14
Makefile Normal file
View file

@ -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

3
configure vendored Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
PACKAGE_NAME=slang-shaders

View file

@ -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);
}
}
}

View file

@ -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);
}
}