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

@ -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;