@galacean/engine-design 2.0.0-alpha.55 → 2.0.0-alpha.57
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": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.57",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
],
|
|
19
19
|
"types": "types/index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.57"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"b:types": "tsc"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IShaderProgramSource } from "./IShaderProgramSource";
|
|
2
2
|
export interface IPrecompiledShader {
|
|
3
3
|
name: string;
|
|
4
4
|
platformTarget: number;
|
|
@@ -9,7 +9,7 @@ export interface IPrecompiledSubShader {
|
|
|
9
9
|
tags?: Record<string, number | string | boolean>;
|
|
10
10
|
passes: IPrecompiledPass[];
|
|
11
11
|
}
|
|
12
|
-
export interface IPrecompiledPass {
|
|
12
|
+
export interface IPrecompiledPass extends Pick<IShaderProgramSource, "vertexShaderInstructions" | "fragmentShaderInstructions" | "vertexOutputNames"> {
|
|
13
13
|
name: string;
|
|
14
14
|
isUsePass: boolean;
|
|
15
15
|
tags?: Record<string, number | string | boolean>;
|
|
@@ -17,6 +17,4 @@ export interface IPrecompiledPass {
|
|
|
17
17
|
constantMap: Record<string, number | string | boolean | number[]>;
|
|
18
18
|
variableMap: Record<string, string>;
|
|
19
19
|
};
|
|
20
|
-
vertexShaderInstructions?: ShaderInstruction[];
|
|
21
|
-
fragmentShaderInstructions?: ShaderInstruction[];
|
|
22
20
|
}
|
|
@@ -5,6 +5,8 @@ export interface IShaderProgramSource {
|
|
|
5
5
|
vertex: string;
|
|
6
6
|
/** Unselected fragment text for inspection; use the instruction stream to compile a variant. */
|
|
7
7
|
fragment: string;
|
|
8
|
+
/** Source vertex output names mapped to their generated GLSL names. */
|
|
9
|
+
vertexOutputNames?: Readonly<Record<string, string>>;
|
|
8
10
|
/** Vertex program, including declaration ownership that cannot be recovered from the text view. */
|
|
9
11
|
vertexShaderInstructions?: ShaderInstruction[];
|
|
10
12
|
/** Fragment program, including declaration ownership that cannot be recovered from the text view. */
|