mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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:
parent
9f4a14ba97
commit
1ff7b0a0a9
12 changed files with 38 additions and 2 deletions
|
@ -174,6 +174,10 @@ void VisualServerRaster::set_default_clear_color(const Color &p_color) {
|
|||
VSG::viewport->set_default_clear_color(p_color);
|
||||
}
|
||||
|
||||
void VisualServerRaster::set_shader_time_scale(float p_scale) {
|
||||
VSG::rasterizer->set_shader_time_scale(p_scale);
|
||||
}
|
||||
|
||||
bool VisualServerRaster::has_feature(Features p_feature) const {
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue