We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproducible in 4.4 dev 7
Godot v4.4.dev7 - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Thu, 19 Dec 2024 20:32:41 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3060 (nvidia; 565.77) - AMD Ryzen 9 9900X 12-Core Processor (24 threads)
When the RandomRange node is only connected to a VaryingSetter like so: The shader code is generated without the function definition as such:
When connected to the vertex color output as well for example:
It now generates correctly:
Seems as though the check for how to include the function needs to be aware of the VaryingSetter as well.
Hopefully it's an easy fix :)
Connect a RandomRange Setter to a VaryingSetter in the Vertex Shader Connect the VarryingGetter to the Albedo in the Fragment Shader
Check the generated shader code and notice the error from the lack of function definition.
random-range.zip
The text was updated successfully, but these errors were encountered:
VisualShader
VaryingSetters
Successfully merging a pull request may close this issue.
Tested versions
Reproducible in 4.4 dev 7
System information
Godot v4.4.dev7 - Manjaro Linux #1 SMP PREEMPT_DYNAMIC Thu, 19 Dec 2024 20:32:41 +0000 on Wayland - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 3060 (nvidia; 565.77) - AMD Ryzen 9 9900X 12-Core Processor (24 threads)
Issue description
When the RandomRange node is only connected to a VaryingSetter like so:
The shader code is generated without the function definition as such:
When connected to the vertex color output as well for example:
It now generates correctly:
Seems as though the check for how to include the function needs to be aware of the VaryingSetter as well.
Hopefully it's an easy fix :)
Steps to reproduce
Connect a RandomRange Setter to a VaryingSetter in the Vertex Shader
Connect the VarryingGetter to the Albedo in the Fragment Shader
Check the generated shader code and notice the error from the lack of function definition.
Minimal reproduction project (MRP)
random-range.zip
The text was updated successfully, but these errors were encountered: