WIP: Use SoA in ParticleSystem

This commit is contained in:
2024-10-15 22:52:20 +02:00
parent 8f28a62817
commit 40ff986312
2 changed files with 62 additions and 50 deletions

View File

@@ -90,9 +90,9 @@ public class TestGame : Game
{
Renderer.BeginBlended(Voile.Rendering.BlendMode.BlendAlpha);
for (int i = 0; i < emitter.Particles.Length; i++)
for (int i = 0; i < emitter.Settings.MaxParticles; i++)
{
var particle = emitter.Particles[i];
var particle = emitter.GetParticle(i);
var color = new Color(particle.ColorArgb);