Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Functions§

compute_angular_momentum
Compute the total angular momentum of all alive particles about the origin.
compute_center_of_mass
Compute center of mass of all alive particles.
compute_morton_codes
Compute Morton codes for all alive particles in a buffer.
compute_total_momentum
Compute total momentum of all alive particles: sum(m * v).
compute_velocity_histogram
Compute a velocity-speed histogram for all alive particles.
emit_burst
Emit a burst of count particles from origin with the given velocity and lifetime, using an internal LCG for per-particle spread.
extract_render_data
Extract rendering data from a particle buffer.
morton_encode
Morton code (Z-order curve) interleave for a 3D position.
prepare_sorted_render_data
Prepare GPU particle rendering data sorted back-to-front for transparency.
sort_particles_morton
Reorder a particle buffer according to Morton-sorted indices.