From d6eba50dac934683f6a9605ed1f4456042a5b54c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 6 Apr 2026 09:16:30 +0200 Subject: [PATCH] Update runtime-host.ts to support additional materials and volume animation --- src/runtime-three/runtime-host.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index a3470268..f64093dc 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -8,12 +8,15 @@ import { Group, LoopOnce, LoopRepeat, + Material, Mesh, + MeshBasicMaterial, MeshStandardMaterial, PerspectiveCamera, PointLight, Quaternion, Scene, + ShaderMaterial, Vector3, SpotLight, WebGLRenderer @@ -82,7 +85,9 @@ export class RuntimeHost { private readonly orbitVisitorController = new OrbitVisitorNavigationController(); private readonly interactionSystem = new RuntimeInteractionSystem(); private readonly audioSystem = new RuntimeAudioSystem(this.scene, this.camera, null); - private readonly brushMeshes = new Map>(); + private readonly brushMeshes = new Map>(); + private volumeTime = 0; + private readonly volumeAnimatedMaterials: ShaderMaterial[] = []; private readonly localLightObjects = new Map(); private readonly modelRenderObjects = new Map(); private readonly materialTextureCache = new Map();