-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Vulkan: Shader that uses TIME
does not force editor to continuously update
#51957
Comments
I believe this has been turned off for performance reasons? |
TIME
does not force editor to continuously update
This was likely not done intentionally, as this is not the behavior in |
I agree that #43011 would be a sensible fix. Feel free to close this issue if you want. |
I'll leave this issue open as the lack of updating by default still feels weird in practice. |
We need to make a godot/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp Lines 1372 to 1374 in 5f69218
godot/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp Lines 1472 to 1474 in 5f69218
and in sky shaders: godot/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp Lines 1095 to 1099 in 036b7a0
|
I'm new to open source and would love to take a stab at this issue. |
@Calinou @clayjohn I think I've found a way to solve this. Should I wait for an update from @jinyoung-lim or can I go ahead and submit a pull request? |
Hey @zedutch - feel free to go ahead for a pull request. I got busy with other things and am not ready for a pull request. |
Godot version
v4.0.dev.custom_build [e599f1b]
System information
Ubuntu 21.04
Issue description
When using a shader that uses
TIME
to provide animation, the editor should continuously update the viewport as it did Godot 3, however in Godot 4, it is not doing so.Doing anything that refreshes the viewport, such as scrolling or zooming will update the shader.
This can be worked around by enabling "Update Continuously" in the Editor settings.
Here is how it should work:
Here is how it DOES work:
Steps to reproduce
Place any object in the 3D editor that has a ShaderMaterial that includes
TIME
to provide animation.NOTE: Be sure "Update Continuously" is off in the Editor settings, as this will work around the issue.
Minimal reproduction project
This project has an example. Just load the project and the main scene should immediately fail to work right.(so long as update continuously is not checked in editor settings)
ShaderEditorIssueExample.zip
If anyone likes the little shader I put in here, feel free to use it, no credits needed.
The text was updated successfully, but these errors were encountered: