natiny_particles_set_material

C
void natiny_particles_set_material(NatinyParticles particles, NatinyMaterial material);

Sets the material the particles are drawn with. The material must be instanced.

Parameters

Name Type Description
particles NatinyParticles Particle system handle from natiny_particles_create
material NatinyMaterial Instanced material; 0 returns to the default material

Example

C
NatinyMaterial material = natiny_material_create(glow_shader);
natiny_material_set_instanced(material, true);
natiny_material_add_tag(material, "fx");
natiny_particles_set_material(sparks, material);