Fix compile errors and basic particle rendering. Particle shading missing.