From 2f765a74a21c34b0cdbef9c93877418d19ea1939 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 20 May 2023 13:43:04 +0100 Subject: [PATCH] Move agent --- .../agents/agent-generation/agent-generation-pipeline.ts | 2 +- src/pipelines/agents/{ => agent-generation}/agent.ts | 2 +- src/pipelines/agents/agent-pipeline.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/pipelines/agents/{ => agent-generation}/agent.ts (69%) diff --git a/src/pipelines/agents/agent-generation/agent-generation-pipeline.ts b/src/pipelines/agents/agent-generation/agent-generation-pipeline.ts index a1433cd..e277e30 100644 --- a/src/pipelines/agents/agent-generation/agent-generation-pipeline.ts +++ b/src/pipelines/agents/agent-generation/agent-generation-pipeline.ts @@ -1,7 +1,7 @@ import random from '../../../utils/graphics/random.wgsl'; import { smartCompile } from '../../../utils/graphics/smart-compile'; import { CommonState } from '../../common-state/common-state'; -import { AGENT_SIZE_IN_BYTES, Agent } from '../agent'; +import { AGENT_SIZE_IN_BYTES, Agent } from './agent'; import shader from './agent-generation.wgsl'; import agentSchema from './agent-schema.wgsl'; diff --git a/src/pipelines/agents/agent.ts b/src/pipelines/agents/agent-generation/agent.ts similarity index 69% rename from src/pipelines/agents/agent.ts rename to src/pipelines/agents/agent-generation/agent.ts index 2f4cd1a..ebb83c9 100644 --- a/src/pipelines/agents/agent.ts +++ b/src/pipelines/agents/agent-generation/agent.ts @@ -7,4 +7,4 @@ export interface Agent { timeToLive: number; } -export const AGENT_SIZE_IN_BYTES = 6 * Float32Array.BYTES_PER_ELEMENT; +export const AGENT_SIZE_IN_BYTES = 5 * Float32Array.BYTES_PER_ELEMENT; diff --git a/src/pipelines/agents/agent-pipeline.ts b/src/pipelines/agents/agent-pipeline.ts index bdfa1ba..7658c74 100644 --- a/src/pipelines/agents/agent-pipeline.ts +++ b/src/pipelines/agents/agent-pipeline.ts @@ -1,7 +1,7 @@ import random from '../../utils/graphics/random.wgsl'; import { smartCompile } from '../../utils/graphics/smart-compile'; import { CommonState } from '../common-state/common-state'; -import { AGENT_SIZE_IN_BYTES, Agent } from './agent'; +import { AGENT_SIZE_IN_BYTES, Agent } from './agent-generation/agent'; import agentSchme from './agent-generation/agent-schema.wgsl'; import { AgentSettings } from './agent-settings'; import shader from './agent.wgsl';