Skip to content

灯光预设系统

系统概览

灯光预设系统。提供预设的灯光配置方案(如舞台光、自然光、戏剧光等),一键应用。

核心职责

  • lighting-presets.ts — 预设定义、参数应用、预设切换。

对外 API(节选)

  • interface LightingPresetLight — 单盏预设灯光描述(type / color / intensity / position / spotParams / shadow / follow)。
  • interface LightingPreset — 完整灯光预设集合(name / description / lights)。
  • LIGHTING_PRESETS — 内置预设集(Record<string, LightingPreset>),约 16 套方案。
  • PRESET_NAMES — 预设名称列表(Object.keys(LIGHTING_PRESETS))。

与其他子系统关系

  • lighting-stage.ts 调用。
  • 状态管理:./lighting-state.ts
  • 过渡动画:./lighting-tween.ts

不变量

  • 预设参数在合理范围内,避免过曝或过暗。
  • 预设切换时保留用户自定义的细微调整。