-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Tangent error in shader #447
Comments
What are you talking about? Which script? Which code? What are you doing? Which plugin version? You're not providing enough information. Please don't delete the issue template if it's to write a single line with no details. Also if all you did is to modify one of the plugin shaders, this is likely not an issue with the plugin but more a Godot shaders question, which you can ask in different places. |
I put this code in vertex, for make triplanar : This is error message: |
Well, first, this warning is bogus because the mesh used for rendering does not need tangents, especially if you make them up in the shader anyways. So at the very least, it looks like an oversight from Godot. But one thing you could do is to not put this code in the vertex shader, or create a |
It's issues in godot but, issues closed:godotengine/godot#84875 |
It's been closed without the present case being raised. So maybe it should be re-opened, but if having this warning is desired to handle the other cases, I'm not sure how the devs should make Godot realize when tangents are generated in the shader... |
I try in different terrain plugin but its ok, no error message |
This is simple terrain for try: https://github.com/majikayogames/SimpleTerrain/tree/main/addons/SimpleTerrain |
Why are you linking this? It's not even using this plugin. |
vec3 get_normal(vec2 uv, out vec3 tangent, out vec3 binormal) { |
That's yet another plugin where they don't even precalculate normals. I think they also added tangents to their mesh (which is also different, it uses clipmap instead of quad tree) just to silence the warning, even though they are not even used by the shader. As I said, you can still make your tangent in the shader if you want to, by not using Godot's builtin variable in the vertex shader or doing it in the vertex shader, no need to refactor how this plugin works |
Same error message if i input NORMAL_MAP in multisplat16 fragment shader |
|
Well, that's even more annoying... again, this warning makes no sense here. So here are your options:
|
If i add triplanar tangent script in shader its error in godot 4.2
The text was updated successfully, but these errors were encountered: