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:
parent
fdfbaf9f0f
commit
0f38e79617
2 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue