Skip to content

Commit

Permalink
refactor: move render settings to scene
Browse files Browse the repository at this point in the history
  • Loading branch information
wumaolinmaoan committed Oct 16, 2024
1 parent 88cb630 commit c065905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/composition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down Expand Up @@ -107,10 +106,6 @@ export interface CompositionData extends CompositionBase {
* 轨道的场景绑定
*/
sceneBindings: SceneBindingData[],
/**
* 渲染配置
*/
renderSettings?: RenderSettings,
}

export interface SceneBindingData {
Expand Down
5 changes: 5 additions & 0 deletions src/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 之前的场景信息
Expand Down Expand Up @@ -132,6 +133,10 @@ export interface JSONScene {
* 渲染所需合成列表
*/
compositions: CompositionData[],
/**
* 渲染配置
*/
renderSettings?: RenderSettings,
/******************************** 以下皆为可复用信息,加载在对应 Manager 中 *******************************/
/**
* 贴图信息
Expand Down

0 comments on commit c065905

Please sign in to comment.