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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user