Replies: 1 comment 2 replies
-
The implementation in GDScript can't be used as-is in the shader language, so this would need to be reimplemented from scratch in the shader compiler. Right now, a few outdated names are detected using special cases, but there's no universal system for this in place: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am new to shaders. When I am copying code to test out, I frequently get error messages saying "such and such is invalid".
For several of these, when I google the problem, the term just has a different name in Godot or Godot updated to a new term.
For instance
CAMERA_MATRIX rename to INV_VIEW_MATRIX
All such terms, should have a "did you mean" hint.
This should apply to any term, whether used in other shader languages, or in old versions of Godot, that have a strict 1 to 1 replacement.
This would be incredibly helpful while I am learning shaders. It would allow me to focus on more complex issues and not looking up vocab when there is a clear equivalent.
GDScript occaisionally gives "did you mean..." hints, the shader editor should as well.
I imagine that experienced shader devs coming from other environments would also get a significant boost from this.
Beta Was this translation helpful? Give feedback.
All reactions