A7: Visual effects, hit marker and hurt flash
EffectsView (src/client/effects/) draws muzzle flashes at the held weapon's muzzle, tracer ribbons to each pellet's impact (and streaks behind projectiles in flight), hit bursts on players, chips and dust by material or ground, keg blasts with fireball, debris, smoke and a light, build dust, collapse clouds for broken pieces, splashes and surge spray. Particles are simulated on the CPU in packed arrays and drawn by two MultiMeshes (blended and added) through a small billboard shader that reads each particle's size from custom data (the stock billboard modes drop the instance scale) and converts Palette's sRGB colours. Pools are allocated once at the preset's budget (256/512/1024 particles, 64 tracers, 4 lights): three draw calls whatever happens. The HUD gains a reticle, four ticks round it when your shot strikes a player (HitFeedback), and a rust flash at the screen's edge when hurt. Tests: test_effects_view (12), including a 24-shooter stress scene that stays inside each budget and never adds nodes. Captures: make effects-captures (fight, blast, work, stress), checked by eye, and the blast in the Compatibility renderer. Closes #47 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+8
-5
@@ -132,11 +132,14 @@ you set it). Delete that file to go back to the defaults.
|
||||
|
||||
Settings → Graphics → Quality.
|
||||
|
||||
| Preset | Sun shadows | Shadow cascades | 3D resolution | Anti-aliasing |
|
||||
|---|---|---|---|---|
|
||||
| Low | Off | n/a | 75% of the window | FXAA |
|
||||
| Medium | Up to 200 m | 2 | 100% | FXAA |
|
||||
| High (default) | Up to 400 m | 4 | 100% | MSAA 2x |
|
||||
| Preset | Sun shadows | Shadow cascades | 3D resolution | Anti-aliasing | Effect particles |
|
||||
|---|---|---|---|---|---|
|
||||
| Low | Off | n/a | 75% of the window | FXAA | 256 at once |
|
||||
| Medium | Up to 200 m | 2 | 100% | FXAA | 512 |
|
||||
| High (default) | Up to 400 m | 4 | 100% | MSAA 2x | 1,024 |
|
||||
|
||||
The particle budget only limits how much smoke, dust and spray a big fight shows at
|
||||
once. Muzzle flashes, tracers, hit flashes and the hit marker are there on every preset.
|
||||
|
||||
No preset changes how far trees, rocks, wrecks or built pieces are drawn. A lower
|
||||
preset never lets anyone see a player through cover that a higher one would still
|
||||
|
||||
Reference in New Issue
Block a user