Open QbieShay opened 1 year ago
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 https://github.com/godotengine/godot/pull/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