obs-shaderfilter-plus icon indicating copy to clipboard operation
obs-shaderfilter-plus copied to clipboard

Invalid type 'mat4' used for assignment

Open kin-fuyuki opened this issue 3 years ago • 1 comments

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?

kin-fuyuki avatar Mar 23 '22 16:03 kin-fuyuki

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.

Limeth avatar Jun 24 '22 15:06 Limeth