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

Global uniforms are unusable #37967

Closed
Chaosus opened this issue Apr 17, 2020 · 1 comment
Closed

Global uniforms are unusable #37967

Chaosus opened this issue Apr 17, 2020 · 1 comment

Comments

@Chaosus
Copy link
Member

Chaosus commented Apr 17, 2020

Godot version:
d817be9

OS/device including version:
Win10

Issue description:
Global uniforms emit the long error when user tried to use them, I think the most important part is this:

ERROR: Error compiling Fragment shader, variant #2 (
#define MODE_RENDER_DEPTH
#define MODE_RENDER_NORMAL
).
at: ShaderRD::_compile_variant (servers\rendering\rasterizer_rd\shader_rd.cpp:347)
ERROR: Failed parse:
ERROR: 0:1790: 'global_variables' : undeclared identifier
ERROR: 0:1790: 'data' : unknown swizzle selection
ERROR: 0:1790: 'data' : vector swizzle selection out of range
ERROR: 0:1790: '' : compilation terminated
ERROR: 4 compilation errors. No code generated.

Steps to reproduce:
Just run a scene in the provided project.

Minimal reproduction project:
Test3.zip

@Chaosus
Copy link
Member Author

Chaosus commented Sep 1, 2020

Seems fixed in the current master...

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

No branches or pull requests

2 participants