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

LuaMaterial warnings spam #2406

Closed
lhog opened this issue Jul 15, 2017 · 3 comments
Closed

LuaMaterial warnings spam #2406

lhog opened this issue Jul 15, 2017 · 3 comments

Comments

@lhog
Copy link
Contributor

lhog commented Jul 15, 2017

Does this come from ZK or from Engine?

[f=-000001] Warning: LuaMaterial: incorrect uniform type for "ShadowMatrix", got: unknown expected: mat4
[f=-000001] Warning: LuaMaterial: incorrect uniform type for "SunDir", got: unknown expected: vec3
[f=-000001] Warning: LuaMaterial: incorrect uniform type for "ShadowParams", got: unknown expected: vec4
[f=-000001] Warning: LuaMaterial: incorrect uniform type for "ViewMatrix", got: unknown expected: mat4
[f=-000001] Warning: LuaMaterial: incorrect uniform type for "CameraPos", got: unknown expected: vec3
[f=-000001] Warning: LuaMaterial: incorrect uniform type for "TeamColor", got: unknown expected: vec4

It appears on start and every time /luarules are reloaded.

I tried to find where "SunDir" is mentioned in ZK and only found it in ghost_sites, although the warnings above look to have nothing to do with that widget & shader.

@lhog
Copy link
Contributor Author

lhog commented Jul 15, 2017

Probably related or same issue: #2299

lhog pushed a commit to lhog/Zero-K that referenced this issue Jul 15, 2017
@sprunk
Copy link
Member

sprunk commented Jul 15, 2017

Why remove ModelMaterials_103/Shaders/default.lua? Looks good otherwise.

@lhog
Copy link
Contributor Author

lhog commented Jul 15, 2017

Q: Why remove ModelMaterials_103/Shaders/default.lua
A: It's same as ModelMaterials/Shaders/default.lua and not used anywhere (even by 103 stuff). Therefore it should not exist in order to not confuse people like me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants