You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a documentation issue. The MODEL_MATRIX isn't used after the vertex shader and it doesn't carry over to the fragment shader. So the fact that it was previously writable was pretty misleading. I ended up making it const in #66178 to avoid the issue where users right to it and their write gets ignored
Godot version
4.0 stable official
System information
Fedora, X11, RX 590
Issue description
When trying to assign anything to MODEL_MATRIX in my shader, it says "constants cannot be modified" but it's marked as inout in the documentation: https://docs.godotengine.org/en/stable/tutorials/shaders/shader_reference/spatial_shader.html
Steps to reproduce
Create a shader, paste this code:
Observe the error
Minimal reproduction project
see above
The text was updated successfully, but these errors were encountered: