You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
in a shader you can use isnan() to check if a float is NaN. However, if you pass anything that is not a float into it (such as a integer, vector, matrix, etc) it breaks the shader, yet doesn't give an error message in the editor. You do get a lot of error spam when the game runs, though:
drivers/gles3/shader_gles3.h:377 - Condition ' !version ' is true. returned: -1
Thanks for the reproducible bug report. I've created a pull request that should fix this bug.
I just wanted to let you know that your shader code won't compile even with the fix because isnan(vec2) returns a boolean vec2. Your code would compile if you specified which element of the vec2 you want to check. For example:
Godot version:
3.0.2 Mono
OS/device including version:
KDE Neon
GTX 1060
Issue description:
in a shader you can use
isnan()
to check if a float is NaN. However, if you pass anything that is not a float into it (such as a integer, vector, matrix, etc) it breaks the shader, yet doesn't give an error message in the editor. You do get a lot of error spam when the game runs, though:For instance try this shader:
I've assigned it on a sphere here, as you can see, the sphere gets weirdly stretched and is drawn in screen space:
Steps to reproduce:
Minimal reproduction project:
shadernanbug.zip
The text was updated successfully, but these errors were encountered: