@galacean/engine-design 0.0.0-experimental-0.9-plus.8 → 0.0.0-experimental-double11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-design",
3
- "version": "0.0.0-experimental-0.9-plus.8",
3
+ "version": "0.0.0-experimental-double11.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -14,7 +14,7 @@
14
14
  ],
15
15
  "types": "types/index.d.ts",
16
16
  "dependencies": {
17
- "@galacean/engine-math": "0.0.0-experimental-0.9-plus.8"
17
+ "@galacean/engine-math": "0.0.0-experimental-double11.1"
18
18
  },
19
19
  "scripts": {
20
20
  "b:types": "tsc"
@@ -1,16 +1,21 @@
1
- import { IPhysicsMaterial } from "./IPhysicsMaterial";
2
- import { IPhysicsManager } from "./IPhysicsManager";
3
- import { IBoxColliderShape, ISphereColliderShape, ICapsuleColliderShape, IPlaneColliderShape } from "./shape";
4
- import { IDynamicCollider } from "./IDynamicCollider";
5
- import { IStaticCollider } from "./IStaticCollider";
6
1
  import { Quaternion, Vector3 } from "@galacean/engine-math";
7
- import { ICollider } from "./ICollider";
8
2
  import { ICharacterController } from "./ICharacterController";
3
+ import { ICollider } from "./ICollider";
4
+ import { IDynamicCollider } from "./IDynamicCollider";
5
+ import { IPhysicsManager } from "./IPhysicsManager";
6
+ import { IPhysicsMaterial } from "./IPhysicsMaterial";
7
+ import { IStaticCollider } from "./IStaticCollider";
9
8
  import { IFixedJoint, IHingeJoint, ISpringJoint } from "./joints";
9
+ import { IBoxColliderShape, ICapsuleColliderShape, IPlaneColliderShape, ISphereColliderShape } from "./shape";
10
10
  /**
11
11
  * The interface of physics creation.
12
12
  */
13
13
  export interface IPhysics {
14
+ /**
15
+ * Initialize physics.
16
+ * @returns A promise that will resolve when the physics is initialized
17
+ */
18
+ initialize(): Promise<void>;
14
19
  /**
15
20
  * Create physics manager.
16
21
  * @param onContactEnter - Function called when contact begin
@@ -0,0 +1,5 @@
1
+ import { ISubShaderInfo } from "./ISubShaderInfo";
2
+ export interface IShaderInfo {
3
+ name: string;
4
+ subShaders: ISubShaderInfo[];
5
+ }
@@ -0,0 +1,10 @@
1
+ import { IShaderInfo } from "./IShaderInfo";
2
+ /**
3
+ * Shader lab interface.
4
+ */
5
+ export interface IShaderLab {
6
+ /**
7
+ * parsing shader source code.
8
+ */
9
+ parseShader(shaderSource: string): IShaderInfo;
10
+ }
@@ -0,0 +1,13 @@
1
+ import { Color } from "@galacean/engine-math";
2
+ export interface IShaderPassInfo {
3
+ name: string;
4
+ vertexSource: string;
5
+ fragmentSource: string;
6
+ tags?: Record<string, number | string | boolean>;
7
+ renderStates: [
8
+ /** Constant RenderState. */
9
+ Record<number, boolean | string | number | Color>,
10
+ /** Variable RenderState. */
11
+ Record<number, string>
12
+ ];
13
+ }
@@ -0,0 +1,5 @@
1
+ import { IShaderPassInfo } from "./IShaderPassInfo";
2
+ export interface ISubShaderInfo {
3
+ passes: IShaderPassInfo[];
4
+ tags?: Record<string, number | string | boolean>;
5
+ }
@@ -0,0 +1,4 @@
1
+ export type { IShaderInfo } from "./IShaderInfo";
2
+ export type { IShaderLab } from "./IShaderLab";
3
+ export type { IShaderPassInfo } from "./IShaderPassInfo";
4
+ export type { ISubShaderInfo } from "./ISubShaderInfo";