WIP: Use SoA in ParticleSystem
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user