feat: make car count follow time profile

This commit is contained in:
Richard Zink committed 2026-10-14 07:06:44 +02:00
1 parent 07317ba8e5
commit 7ccdc9929d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -4679,7 +4679,7 @@ var CARP_FRAG_SRC = [
// and rests again - no hard popping, no fixed pattern',
'float dens = uDens * vDens;',
'float h = hash1(vSeed * 7.31 + 17.3);',
'float vis = smoothstep(h - 0.16, h + 0.16, dens);',
'float vis = smoothstep(h - 0.002, h + 0.002, dens);',
'if (vis <= 0.0) discard;',
'float life = 700.0 + 2400.0 * hash1(vSeed * 0.371 + 9.4);',
'float rest = 60.0 + 900.0 * hash1(vSeed * 0.617 + 3.2);',