This commit is contained in:
parent
6bc125be1c
commit
ed5a4379db
76 changed files with 1418 additions and 988 deletions
|
|
@ -10,7 +10,7 @@ struct Settings {
|
|||
@group(1) @binding(0) var<uniform> settings: Settings;
|
||||
@group(1) @binding(2) var eraserMask: texture_2d<f32>;
|
||||
|
||||
@compute @workgroup_size(64)
|
||||
@compute @workgroup_size(agentWorkgroupSize)
|
||||
fn main(
|
||||
@builtin(global_invocation_id) global_id: vec3<u32>
|
||||
) {
|
||||
|
|
@ -26,11 +26,7 @@ fn main(
|
|||
}
|
||||
|
||||
let position = agents[id].position;
|
||||
let outsideBounds = position.x < settings.boundsMin.x ||
|
||||
position.y < settings.boundsMin.y ||
|
||||
position.x > settings.boundsMax.x ||
|
||||
position.y > settings.boundsMax.y;
|
||||
if outsideBounds {
|
||||
if any(position < settings.boundsMin) || any(position > settings.boundsMax) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue