auto-git:

[change] src/runtime-three/runtime-scene-build.ts
This commit is contained in:
2026-04-22 13:58:15 +02:00
parent ffdd1fa615
commit 5b5333f842

View File

@@ -41,6 +41,7 @@ import {
type Brush, type Brush,
type BrushGeometry, type BrushGeometry,
type BrushKind, type BrushKind,
type BoxBrushLightFalloffMode,
type BoxBrushVolumeSettings, type BoxBrushVolumeSettings,
type WhiteboxFaceId, type WhiteboxFaceId,
type FaceUvState type FaceUvState
@@ -116,6 +117,10 @@ import {
type RuntimeProjectSchedulerState, type RuntimeProjectSchedulerState,
type RuntimeResolvedProjectScheduleState type RuntimeResolvedProjectScheduleState
} from "./runtime-project-scheduler"; } from "./runtime-project-scheduler";
import {
deriveBoxLightVolumePointLights,
type DerivedLightVolumePointLight
} from "./light-volume-utils";
import { assertRuntimeSceneBuildable } from "./runtime-scene-validation"; import { assertRuntimeSceneBuildable } from "./runtime-scene-validation";
import type { RuntimeClockState } from "./runtime-project-time"; import type { RuntimeClockState } from "./runtime-project-time";
import { import {
@@ -166,9 +171,23 @@ export interface RuntimeWaterVolume {
waveStrength: number; 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 { export interface RuntimeBoxVolumeCollection {
fog: RuntimeFogVolume[]; fog: RuntimeFogVolume[];
water: RuntimeWaterVolume[]; water: RuntimeWaterVolume[];
light: RuntimeLightVolume[];
} }
export interface RuntimeTerrain { export interface RuntimeTerrain {