Skip to content

Commit

Permalink
Do not bukkit particles if they are invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Lewin committed Aug 12, 2024
1 parent 2547972 commit f7281b4
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 176 deletions.
6 changes: 6 additions & 0 deletions shaders/bukkitCount.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ fn csMain( @builtin(global_invocation_id) id: vec3<u32> )
}

let particle = g_particles[id.x];

if(particle.enabled == 0)
{
return;
}

let position = particle.position;

let particleBukkit = positionToBukkitId(position);
Expand Down
6 changes: 6 additions & 0 deletions shaders/bukkitInsert.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ fn csMain( @builtin(global_invocation_id) id: vec3<u32> )
}

let particle = g_particles[id.x];

if(particle.enabled == 0)
{
return;
}

let position = particle.position;

let particleBukkit = positionToBukkitId(position);
Expand Down
Loading

0 comments on commit f7281b4

Please sign in to comment.