Limeth / obs-shaderfilter-plus

obs-shaderfilter rewritten in Rust and improved
Other
183 stars 19 forks source link

Invalid type 'mat4' used for assignment #33

Open J-K-Tech opened 2 years ago

J-K-Tech commented 2 years ago

Invalid type 'mat4' used for assignment. it seems that it cant read mat4... and how do i choose glsl version without getting Unexpected token after preprocessor, expected newline error?

Limeth commented 2 years ago

Invalid type 'mat4' used for assignment.

If you are using DirectX/HLSL, you might want to replace mat4 with float4x4. See https://docs.microsoft.com/en-us/windows/uwp/gaming/glsl-to-hlsl-reference#porting-glsl-types-to-hlsl

how do i choose glsl version without getting Unexpected token after preprocessor, expected newline error?

Internally, the shader code is substituted into this template, which means your GLSL version doesn't actually end up at the top of the resulting file.