Move TIME to a global shader variable

This makes it work consistently for motion vectors in all functions, including user-defined ones.
This commit is contained in:
jfons 2022-06-21 16:26:17 +02:00 committed by JFonS
parent fdfbaf9f0f
commit 0f38e79617
2 changed files with 8 additions and 1 deletions

View file

@ -621,7 +621,7 @@ void SceneShaderForwardClustered::init(RendererStorageRD *p_storage, const Strin
//builtins
actions.renames["TIME"] = "scene_data_block.data.time";
actions.renames["TIME"] = "global_time";
actions.renames["PI"] = _MKSTR(Math_PI);
actions.renames["TAU"] = _MKSTR(Math_TAU);
actions.renames["E"] = _MKSTR(Math_E);