June 2013
Intermediate to advanced
346 pages
8h 42m
English
We just need to add some code to ParticlesRenderer and then we can finally see our particles in action. Let’s start out with the following definitions:
| Particles/src/com/particles/android/ParticlesRenderer.java | |
| | private final Context context; |
| | |
| | private final float[] projectionMatrix = new float[16]; |
| | private final float[] viewMatrix = new float[16]; |
| | private final float[] viewProjectionMatrix = new float[16]; |
| | |
| | private ParticleShaderProgram particleProgram; |
| | private ParticleSystem particleSystem; |
| | private ParticleShooter redParticleShooter; |
| | private ParticleShooter greenParticleShooter; |
| | private ParticleShooter blueParticleShooter; |
| | private long globalStartTime; ... |
Read now
Unlock full access