Added a basic skylight engine. Currently it's really laggy.

Also tried fixing the autobuild action since it fetches the repo without submodules.
This commit is contained in:
milkwx3
2026-06-24 18:58:15 +03:00
parent 3ad54bd59d
commit d02d751275
8 changed files with 190 additions and 36 deletions
+5 -4
View File
@@ -66,10 +66,11 @@ static void DrawParticle(Particle particle, Color color)
rlSetTexture(0);
}
void ParticlesUpdate(float dt, World &world) {
particles.remove_if([](Particle x) { return x.lifetime > 200; });
for (Particle &part : particles)
//particles.remove_if([](Particle x) { return x.lifetime > 0; });
particles.remove_if([](Particle x) { return true; });
/*for (Particle &part : particles)
{
part.lifetime++;
art.lifetime++;p
if(part.physicsType == Phys_Falling) {
Vector3 velocityTgt = Vector3Clamp(Vector3Add(part.velocity, {0, -dt * 9.8f, 0}), {-30.0f, -30.0f, 0-30.0f}, {30.0f, 30.0f, 30.0f});
@@ -99,7 +100,7 @@ void ParticlesUpdate(float dt, World &world) {
part.position = final;
part.velocity = velocityTgt;
}
}
}*/
}
void ParticlesDraw() {
for (Particle part : particles)