Browse Source

Fix part issues

David Catuhe 5 years ago
parent
commit
29ccb952a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Shaders/gpuUpdateParticles.vertex.fx

+ 2 - 0
src/Shaders/gpuUpdateParticles.vertex.fx

@@ -433,6 +433,8 @@ void main() {
 #ifdef ANIMATESHEETRANDOMSTART
     outCellStartOffset = cellStartOffset;
     offsetAge += cellStartOffset;
+#else
+    float cellStartOffset = 0.;
 #endif    
 
     float ratio = clamp(mod(cellStartOffset + cellInfos.z * offsetAge, life) / life, 0., 1.0);