NESTrisSharpener
NESTrisSharpener copied to clipboard
Shaders do not compile on Linux
There appears to be some errors in the shader code when trying to use it on GNU/Linux, e.g. NESTrisSharpener.shader
0(76) : error C7623: implicit narrowing of type from "vec2" to "float"
0(175) : error C7549: OpenGL does not allow C style initializers
0(242) : error C7011: implicit cast from "float" to "vec2"
0(428) : error C1021: operands to "%" must be integral
0(429) : error C1021: operands to "%" must be integral
0(430) : error C7011: implicit cast from "float" to "vec2"
0(528) : error C7011: implicit cast from "float" to "vec2"
0(589) : error C7011: implicit cast from "float" to "int"
I already have a working patch for NESTris-Stencil.shader and will try to make a PR for all of them.
Very exciting; did you end up compiling OBS-ShaderFilter for linux? Otherwise, how did you apply the shader?
Yes, i had to compile obs-shaderfilter. After struggling a bit with the cmake i just built it manually using this single command:
gcc -I /usr/include/obs -shared -fpic -lobs -o obs-shaderfilter.so src/*.c
Also, I have submitted an AUR package obs-shaderfilter-git to ease installation for archlinux based distros.
That's actually brilliant because i run manjaro (it's arch based) for memes and the reason i don't stream tetris on it is because sharpener no worky
This took 3 months, but looks like your change for arrays doesn't work in Windows, so nestris.shader and nestris-basic.shader don't compile.
I've put them in folder called OpenGL if that's appropriate
OpenGL only
const float2 test[28] = float2[28](
Dx only
const float2 test[28] = {
Linux users can just choose the OpenGL/shadername ones and it should be fine.