-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
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
Varyings cannot be passed for "inout" parameter #56189
Comments
This is intended - otherwise, the function can be called in the context where that varying cannot be changed (in the fragment function for example), which leads to the shader crash. |
However, I think it's possible to allow passing varying to the function when it's allowed (for VERTEX_TO_FRAG varyings only when the call happened in vertex function). |
Is it also planned to merged it with the 3.x branch? This shader do not work for me either since 3.4 |
Hi, you can workaround your water by splitting up to 3 functions: `// Wave function:
}
}
}` and then just call
|
Godot version
3.4.2
System information
Windows 10, AMD Radeon HD 8700, GLES3
Issue description
In shaders, when reference the vertex variable, the error "Vartings cannot be passed for 'inout' parameter"
When using the same exact code in Godot 3,3, that error doesn't show.
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: