godotengine / godotengine/godot-docs
Different matrix construction rules to GLSL not clearly documented
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
While following the book of shaders tutorials, i came across the following issue.
This function:

does not compile in a .gdshader, and the error message is also very confusing:

After looking through docs, in GLSL:

But in .gdshader:

Constructing matrices from floats is not allowed, and the error message makes me think that this was added recently.
IMO both the error message should be clearer and this difference should be documented in the "Converting GLSL to Godot shaders" page.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.