-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Shader with instance uniforms fails in compatibility #100080
Comments
looked into this a little bit and correct me if i'm wrong but i believe the error is coming from one of these function calls godot/drivers/gles3/shader_gles3.cpp Lines 373 to 376 in eb51030
which are OpenGL functions. not too sure how to proceed from here |
It's a shader source compile error. Godot generates the shader code from a template. See https://github.com/godotengine/godot/blob/master/drivers/gles3/shaders/scene.glsl If I move the declaration for instance_offset up, it works.
|
Tested versions
v4.4.dev4.official [36e6207]
System information
Godot v4.4.dev4 - Windows 10.0.22631 - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 32.0.15.6094) - 13th Gen Intel(R) Core(TM) i7-13700KF (24 threads)
Issue description
Attached project uses both a global and 2 instance uniforms.
Actual error is:
Looks like definition is after use.
From the output log (filtered by instance_offset):
Steps to reproduce
Run attached project.
Minimal reproduction project (MRP)
instance-test.zip
The text was updated successfully, but these errors were encountered: