Add Mars surface atmosphere particels
This commit is contained in:
@@ -578,6 +578,15 @@ void level_update(Level *level, float dt) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Emit ambient atmosphere dust on Mars Surface levels before the
|
||||
* particle update pass so new motes get their first physics step
|
||||
* this frame — consistent with other per-frame emitters. */
|
||||
if (level->map.parallax_style == PARALLAX_STYLE_MARS) {
|
||||
particle_emit_atmosphere_dust(
|
||||
level->camera.pos,
|
||||
level->camera.viewport);
|
||||
}
|
||||
|
||||
/* Update particles */
|
||||
particle_update(dt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user