1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add shader time scaling

Shaders' `TIME` will be affected by the new shader time scale, that is set via the also new `VisualServer::set_time_scale()`.
This commit is contained in:
Pedro J. Estébanez
2020-06-06 18:47:03 +02:00
parent 9f4a14ba97
commit 1ff7b0a0a9
12 changed files with 38 additions and 2 deletions

View File

@@ -1114,6 +1114,7 @@ public:
virtual RasterizerScene *get_scene() = 0;
virtual void set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter = true) = 0;
virtual void set_shader_time_scale(float p_scale) = 0;
virtual void initialize() = 0;
virtual void begin_frame(double frame_step) = 0;