From c06590567f09e88a4d4f84a748645aab2d0842f4 Mon Sep 17 00:00:00 2001 From: wumaolinmaoan Date: Wed, 16 Oct 2024 20:55:04 +0800 Subject: [PATCH] refactor: move render settings to scene --- src/composition.ts | 5 ----- src/scene.ts | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/composition.ts b/src/composition.ts index 3957a25..a195f83 100644 --- a/src/composition.ts +++ b/src/composition.ts @@ -2,7 +2,6 @@ import type { DataPath } from './components'; import { CAMERA_CLIP_MODE_NORMAL, CAMERA_CLIP_MODE_VERTICAL } from './constants'; import type { Item } from './item'; import type { EndBehavior } from './item/base-item'; -import type { RenderSettings } from './render-settings'; export enum CameraClipMode { /** @@ -107,10 +106,6 @@ export interface CompositionData extends CompositionBase { * 轨道的场景绑定 */ sceneBindings: SceneBindingData[], - /** - * 渲染配置 - */ - renderSettings?: RenderSettings, } export interface SceneBindingData { diff --git a/src/scene.ts b/src/scene.ts index 1eeea8a..55becee 100644 --- a/src/scene.ts +++ b/src/scene.ts @@ -8,6 +8,7 @@ import type { ComponentData, EffectsObjectData, GeometryData, MaterialData, Shad import type { VFXItemData } from './vfx-item-data'; import type { AnimationClipData } from './animation-clip-data'; import type { AssetBase, ImageSource } from './assets'; +import type { RenderSettings } from './render-settings'; /** * runtime 2.0 之前的场景信息 @@ -132,6 +133,10 @@ export interface JSONScene { * 渲染所需合成列表 */ compositions: CompositionData[], + /** + * 渲染配置 + */ + renderSettings?: RenderSettings, /******************************** 以下皆为可复用信息,加载在对应 Manager 中 *******************************/ /** * 贴图信息