Selaa lähdekoodia

Fix `TIME` using in custom functions of particle shader

Yuri Roubinsky 3 vuotta sitten
vanhempi
commit
0f1f002e74
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      servers/rendering/renderer_rd/renderer_storage_rd.cpp

+ 1 - 1
servers/rendering/renderer_rd/renderer_storage_rd.cpp

@@ -10033,7 +10033,7 @@ RendererStorageRD::RendererStorageRD() {
 		actions.renames["RESTART"] = "restart";
 		actions.renames["CUSTOM"] = "PARTICLE.custom";
 		actions.renames["TRANSFORM"] = "PARTICLE.xform";
-		actions.renames["TIME"] = "FRAME.time";
+		actions.renames["TIME"] = "frame_history.data[0].time";
 		actions.renames["PI"] = _MKSTR(Math_PI);
 		actions.renames["TAU"] = _MKSTR(Math_TAU);
 		actions.renames["E"] = _MKSTR(Math_E);