|
group2 0.1.0
CSE 125 Group 2
|
Implementation of spark burst and impact flash effect. More...
#include "ImpactEffect.hpp"#include <algorithm>#include <cmath>#include <cstdlib>#include <glm/gtc/constants.hpp>Classes | |
| struct | SurfaceParams |
| Visual tuning parameters for a single surface material type. More... | |
Functions | |
| static float | randf () |
| Return a random float in [0, 1]. | |
| static float | randRange (float lo, float hi) |
| Return a random float in [lo, hi]. | |
| static void | spawnBloodBurst (ParticlePool< BillboardParticle, 4096 > &pool, glm::vec3 pos, glm::vec3 normal, float frameDt) |
| Spawn a juicy blood burst for flesh impacts. | |
Variables | |
| static constexpr SurfaceParams | k_surfaces [] |
Implementation of spark burst and impact flash effect.
|
static |
Return a random float in [0, 1].
|
static |
Return a random float in [lo, hi].
| lo | Lower bound (inclusive). |
| hi | Upper bound (inclusive). |
|
static |
Spawn a juicy blood burst for flesh impacts.
Three layers: 1) Fast splatter streaks — bright red, high speed, elongated by velocity. 2) Slow blood mist — large, dark, lingering cloud. 3) Heavy droplets — medium speed, strong gravity, drip downward.
|
staticconstexpr |