Add particle layer 0

This commit is contained in:
2024-02-10 14:09:04 +01:00
parent 062383407c
commit b39202f730
2 changed files with 15 additions and 2 deletions

View File

@@ -72,7 +72,6 @@ void updateParticleEmitter(ecs_iter_t *it) {
i32 emmit = data.emmitRate + data.emmitVariance * randFloatRange(data.emmitVarianceMin, data.emmitVarianceMax);
for (i32 pIdx = 0; pIdx < emmit; pIdx++) {
ecs_entity_t pEntity = entityCreateEmpty();
ecs_set_ptr(ECS, pEntity, ParticleLayer0, NULL);
Particle particle = spawnParticle(&emitter[i]);
ecs_set_id(ECS, pEntity, emitter[i].targetParticles, sizeof(particle), &particle);
}