From 4e7635a5f2c3102fe363a3bb8b8e114209e3f42f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 19:57:33 +0200 Subject: [PATCH] Update ENTITY_KIND_ORDER and define default positions for point and spot lights --- src/entities/entity-instances.ts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/entities/entity-instances.ts b/src/entities/entity-instances.ts index e32d64c4..2c920a6e 100644 --- a/src/entities/entity-instances.ts +++ b/src/entities/entity-instances.ts @@ -82,12 +82,28 @@ export interface EntityRegistryEntry createDefaultEntity(overrides?: Partial): T; } -export const ENTITY_KIND_ORDER = ["playerStart", "soundEmitter", "triggerVolume", "teleportTarget", "interactable"] as const; -export const DEFAULT_POINT_LIGHT_POSITION = DEFAULT_ENTITY_POSITION; +export const ENTITY_KIND_ORDER = [ + "pointLight", + "spotLight", + "playerStart", + "soundEmitter", + "triggerVolume", + "teleportTarget", + "interactable" +] as const; +export const DEFAULT_POINT_LIGHT_POSITION: Vec3 = { + x: 0, + y: 0, + z: 0 +}; export const DEFAULT_POINT_LIGHT_COLOR_HEX = "#ffffff"; export const DEFAULT_POINT_LIGHT_INTENSITY = 1.25; export const DEFAULT_POINT_LIGHT_DISTANCE = 8; -export const DEFAULT_SPOT_LIGHT_POSITION = DEFAULT_ENTITY_POSITION; +export const DEFAULT_SPOT_LIGHT_POSITION: Vec3 = { + x: 0, + y: 0, + z: 0 +}; export const DEFAULT_SPOT_LIGHT_DIRECTION: Vec3 = { x: 0, y: -1,