From 5b5333f842cc2c337f6da4998a7c97fb50479587 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 13:58:15 +0200 Subject: [PATCH] auto-git: [change] src/runtime-three/runtime-scene-build.ts --- src/runtime-three/runtime-scene-build.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 9a9f2069..1334943a 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -41,6 +41,7 @@ import { type Brush, type BrushGeometry, type BrushKind, + type BoxBrushLightFalloffMode, type BoxBrushVolumeSettings, type WhiteboxFaceId, type FaceUvState @@ -116,6 +117,10 @@ import { type RuntimeProjectSchedulerState, type RuntimeResolvedProjectScheduleState } from "./runtime-project-scheduler"; +import { + deriveBoxLightVolumePointLights, + type DerivedLightVolumePointLight +} from "./light-volume-utils"; import { assertRuntimeSceneBuildable } from "./runtime-scene-validation"; import type { RuntimeClockState } from "./runtime-project-time"; import { @@ -166,9 +171,23 @@ export interface RuntimeWaterVolume { waveStrength: number; } +export interface RuntimeLightVolume { + brushId: string; + enabled: boolean; + center: Vec3; + rotationDegrees: Vec3; + size: Vec3; + colorHex: string; + intensity: number; + padding: number; + falloff: BoxBrushLightFalloffMode; + lights: DerivedLightVolumePointLight[]; +} + export interface RuntimeBoxVolumeCollection { fog: RuntimeFogVolume[]; water: RuntimeWaterVolume[]; + light: RuntimeLightVolume[]; } export interface RuntimeTerrain {