Generate agents with compute shader
This commit is contained in:
parent
6351a67703
commit
6b17a8e023
15 changed files with 206 additions and 154 deletions
9
src/pipelines/agents/agent-generation/agent-schema.wgsl
Normal file
9
src/pipelines/agents/agent-generation/agent-schema.wgsl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
struct Agent {
|
||||
position: vec2<f32>,
|
||||
angle: f32,
|
||||
species: f32,
|
||||
timeToLive: f32,
|
||||
timeToLive2: f32,
|
||||
}
|
||||
|
||||
@group(1) @binding(1) var<storage, read_write> agents: array<Agent>;
|
||||
Loading…
Reference in a new issue