@galacean/engine-core 1.6.0-alpha.1 → 1.6.0-beta.0
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/dist/main.js +183 -212
- package/dist/main.js.map +1 -1
- package/dist/module.js +182 -211
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Transform.d.ts +5 -3
- package/types/shader/Shader.d.ts +5 -2
- package/types/shader/ShaderPass.d.ts +0 -9
- package/types/shader/enums/ShaderLanguage.d.ts +9 -0
- package/types/shader/index.d.ts +3 -3
- package/types/shader/enums/ShaderPlatformTarget.d.ts +0 -4
- package/types/shader/enums/ShaderType.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "1.6.0-
|
|
3
|
+
"version": "1.6.0-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "1.6.0-
|
|
21
|
+
"@galacean/engine-math": "1.6.0-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "1.6.0-
|
|
24
|
+
"@galacean/engine-design": "1.6.0-beta.0"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
package/types/Transform.d.ts
CHANGED
|
@@ -192,8 +192,8 @@ export declare class Transform extends Component {
|
|
|
192
192
|
* @param worldUp - Up direction in world space, default is Vector3(0, 1, 0)
|
|
193
193
|
*/
|
|
194
194
|
lookAt(targetPosition: Vector3, worldUp?: Vector3): void;
|
|
195
|
-
protected _onLocalMatrixChanging
|
|
196
|
-
protected
|
|
195
|
+
protected _onLocalMatrixChanging(): void;
|
|
196
|
+
protected _onWorldMatrixChanging(): void;
|
|
197
197
|
protected _isContainDirtyFlags(targetDirtyFlags: number): boolean;
|
|
198
198
|
protected _isContainDirtyFlag(type: number): boolean;
|
|
199
199
|
protected _setDirtyFlagTrue(type: number): void;
|
|
@@ -298,5 +298,7 @@ export declare enum TransformModifyFlags {
|
|
|
298
298
|
/** WorldMatrix | WorldPosition | WorldEuler | WorldQuat | WorldScale */
|
|
299
299
|
WmWpWeWqWs = 188,
|
|
300
300
|
/** WorldMatrix | WorldPosition | WorldEuler | WorldQuat | WorldScale | WorldUniformScaling */
|
|
301
|
-
WmWpWeWqWsWus = 444
|
|
301
|
+
WmWpWeWqWsWus = 444,
|
|
302
|
+
/** LocalQuat | LocalMatrix | WorldMatrix | WorldPosition | WorldEuler | WorldQuat | WorldScale | WorldUniformScaling */
|
|
303
|
+
LqLmWmWpWeWqWsWus = 510
|
|
302
304
|
}
|
package/types/shader/Shader.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ShaderMacro } from "./ShaderMacro";
|
|
|
4
4
|
import { ShaderPass } from "./ShaderPass";
|
|
5
5
|
import { ShaderProperty } from "./ShaderProperty";
|
|
6
6
|
import { SubShader } from "./SubShader";
|
|
7
|
+
import { ShaderLanguage } from "./enums/ShaderLanguage";
|
|
7
8
|
/**
|
|
8
9
|
* Shader for rendering.
|
|
9
10
|
*/
|
|
@@ -24,13 +25,15 @@ export declare class Shader implements IReferable {
|
|
|
24
25
|
* ...
|
|
25
26
|
* ```
|
|
26
27
|
*
|
|
27
|
-
* @param shaderSource -
|
|
28
|
+
* @param shaderSource - Shader code
|
|
29
|
+
* @param platformTarget - Shader platform target, @defaultValue ShaderLanguage.GLSLES300
|
|
30
|
+
* @param path - Shader location path
|
|
28
31
|
* @returns Shader
|
|
29
32
|
*
|
|
30
33
|
* @throws
|
|
31
34
|
* Throw string exception if shaderLab has not been enabled properly.
|
|
32
35
|
*/
|
|
33
|
-
static create(shaderSource: string): Shader;
|
|
36
|
+
static create(shaderSource: string, platformTarget?: ShaderLanguage, path?: string): Shader;
|
|
34
37
|
/**
|
|
35
38
|
* Create a shader.
|
|
36
39
|
* @param name - Name of the shader
|
|
@@ -6,11 +6,6 @@ export declare class ShaderPass extends ShaderPart {
|
|
|
6
6
|
private static _shaderPassCounter;
|
|
7
7
|
private _vertexSource;
|
|
8
8
|
private _fragmentSource;
|
|
9
|
-
private readonly _type;
|
|
10
|
-
private readonly _shaderLabSource;
|
|
11
|
-
private readonly _vertexEntry;
|
|
12
|
-
private readonly _fragmentEntry;
|
|
13
|
-
private _platformMacros;
|
|
14
9
|
/**
|
|
15
10
|
* Create a shader pass.
|
|
16
11
|
* @param name - Shader pass name
|
|
@@ -26,9 +21,5 @@ export declare class ShaderPass extends ShaderPart {
|
|
|
26
21
|
* @param tags - Tags
|
|
27
22
|
*/
|
|
28
23
|
constructor(vertexSource: string, fragmentSource: string, tags?: Record<string, number | string | boolean>);
|
|
29
|
-
/**
|
|
30
|
-
* Shader Lab compilation
|
|
31
|
-
*/
|
|
32
|
-
private _compileShaderProgram;
|
|
33
24
|
private _getCanonicalShaderProgram;
|
|
34
25
|
}
|
package/types/shader/index.d.ts
CHANGED
|
@@ -3,17 +3,17 @@ export { BlendOperation } from "./enums/BlendOperation";
|
|
|
3
3
|
export { ColorWriteMask } from "./enums/ColorWriteMask";
|
|
4
4
|
export { CompareFunction } from "./enums/CompareFunction";
|
|
5
5
|
export { CullMode } from "./enums/CullMode";
|
|
6
|
-
export { RenderStateElementKey as RenderStateDataKey } from "./enums/RenderStateElementKey";
|
|
7
6
|
export { RenderQueueType } from "./enums/RenderQueueType";
|
|
7
|
+
export { RenderStateElementKey } from "./enums/RenderStateElementKey";
|
|
8
8
|
export { ShaderDataGroup } from "./enums/ShaderDataGroup";
|
|
9
|
+
export { ShaderLanguage } from "./enums/ShaderLanguage";
|
|
9
10
|
export { ShaderPropertyType } from "./enums/ShaderPropertyType";
|
|
10
11
|
export { StencilOperation } from "./enums/StencilOperation";
|
|
11
|
-
export { ShaderPlatformTarget } from "./enums/ShaderPlatformTarget";
|
|
12
12
|
export { Shader } from "./Shader";
|
|
13
13
|
export { ShaderData } from "./ShaderData";
|
|
14
14
|
export { ShaderMacro } from "./ShaderMacro";
|
|
15
15
|
export { ShaderPass } from "./ShaderPass";
|
|
16
16
|
export { ShaderProperty } from "./ShaderProperty";
|
|
17
17
|
export { ShaderTagKey } from "./ShaderTagKey";
|
|
18
|
-
export { SubShader } from "./SubShader";
|
|
19
18
|
export * from "./state";
|
|
19
|
+
export { SubShader } from "./SubShader";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|