Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type 'mat4' used for assignment #33

Open
J-K-Tech opened this issue Mar 23, 2022 · 1 comment
Open

Invalid type 'mat4' used for assignment #33

J-K-Tech opened this issue Mar 23, 2022 · 1 comment
Labels
question Further information is requested

Comments

@J-K-Tech
Copy link

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
Copy link
Owner

Limeth commented Jun 24, 2022

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 Limeth added the question Further information is requested label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants