feat: make car count follow time profile
This commit is contained in:
1 parent
07317ba8e5
commit
7ccdc9929d
2 files changed
+3
-3
No files matched your search
@@ -529,7 +529,7 @@ window.CONFIG = {
|
|||||||
spreadKm: 45, // gaussian sigma around the motorway network
|
spreadKm: 45, // gaussian sigma around the motorway network
|
||||||
spreadFloor: 0.30, // share that far side roads keep
|
spreadFloor: 0.30, // share that far side roads keep
|
||||||
speed: 1.0, // flow speed multiplier
|
speed: 1.0, // flow speed multiplier
|
||||||
density: 0.01, // vehicle density multiplier
|
density: 0.04, // vehicle density multiplier
|
||||||
brightness: 1.0, // vehicle light intensity
|
brightness: 1.0, // vehicle light intensity
|
||||||
motorwayDensity: 0.95, // share of the density budget on motorways/trunk
|
motorwayDensity: 0.95, // share of the density budget on motorways/trunk
|
||||||
sideDensity: 0.35, // share of the density budget on primary/secondary/tertiary
|
sideDensity: 0.35, // share of the density budget on primary/secondary/tertiary
|
||||||
@@ -551,7 +551,7 @@ window.CONFIG = {
|
|||||||
sundayEveningPeak: 18.5,
|
sundayEveningPeak: 18.5,
|
||||||
sundayEveningWidth: 1.8,
|
sundayEveningWidth: 1.8,
|
||||||
sundayEveningGain: 0.85, // commuter return traffic
|
sundayEveningGain: 0.85, // commuter return traffic
|
||||||
nightReduction: 0.70 // deep-night traffic reduced to 30 %
|
nightReduction: 0.85 // deep-night traffic reduced to 15 %
|
||||||
// timeProfile: { enabled: false }
|
// timeProfile: { enabled: false }
|
||||||
// timeProfile: { morningGain: 0.8, eveningGain: 1.0, nightReduction: 0.85 }
|
// timeProfile: { morningGain: 0.8, eveningGain: 1.0, nightReduction: 0.85 }
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -4679,7 +4679,7 @@ var CARP_FRAG_SRC = [
|
|||||||
// and rests again - no hard popping, no fixed pattern',
|
// and rests again - no hard popping, no fixed pattern',
|
||||||
'float dens = uDens * vDens;',
|
'float dens = uDens * vDens;',
|
||||||
'float h = hash1(vSeed * 7.31 + 17.3);',
|
'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;',
|
'if (vis <= 0.0) discard;',
|
||||||
'float life = 700.0 + 2400.0 * hash1(vSeed * 0.371 + 9.4);',
|
'float life = 700.0 + 2400.0 * hash1(vSeed * 0.371 + 9.4);',
|
||||||
'float rest = 60.0 + 900.0 * hash1(vSeed * 0.617 + 3.2);',
|
'float rest = 60.0 + 900.0 * hash1(vSeed * 0.617 + 3.2);',
|
||||||
|
|||||||
Reference in new issue
Block a user