Skip to content

Commit fadc01e

Browse files
committed
feat: 支持新版地面
1 parent 9a881e5 commit fadc01e

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-flow-interface",
3-
"version": "0.17.25",
3+
"version": "0.17.26",
44
"description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
55
"type": "module",
66
"module": "dist/index.js",

src/api/service/engine/animation/entry/environment/fog-animation-api.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { Color3 } from '@babylonjs/core'
22

3+
import RvEnvironment from '@/api/service/sync/interface/step/environment/rv-environment.interface'
4+
35
export default interface FogAnimationApi {
4-
play(
5-
data: { enable?: boolean; density?: number; color?: string },
6-
duration?: number,
7-
quickMode?: boolean,
8-
): void
6+
play(data: RvEnvironment['fog'], duration?: number, quickMode?: boolean): void
97

108
enableAndDensity(enable: boolean, value: number, duration?: number, quickMode?: boolean): void
119

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { Color3 } from '@babylonjs/core'
22

3+
import RvEnvironment from '@/api/service/sync/interface/step/environment/rv-environment.interface'
4+
35
export default interface GroundAnimationApi {
4-
play(
5-
data: { opacityRate?: number; diffuseColor?: string; emissiveColor?: string },
6-
duration?: number,
7-
quickMode?: boolean,
8-
): void
6+
play(data: RvEnvironment['ground'], duration?: number, quickMode?: boolean): void
97

108
opacityRate(value: number, duration?: number, quickMode?: boolean): void
119

12-
diffuseColor(color: Color3 | string, duration?: number, quickMode?: boolean): void
10+
baseColor(color: Color3 | string, duration?: number, quickMode?: boolean): void
11+
12+
enableOnViewerMode(value: boolean, duration: number, quickMode: boolean): void
1313

14-
emissiveColor(color: Color3 | string, duration?: number, quickMode?: boolean): void
14+
enableOnEditorMode(value: boolean, duration: number, quickMode: boolean): void
1515
}

0 commit comments

Comments
 (0)