@galacean/effects-webgl 2.0.0-alpha.7 → 2.0.0-alpha.8
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/gl-material.d.ts +5 -6
- package/package.json +2 -2
package/dist/gl-material.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Engine, GlobalUniforms,
|
|
2
|
-
import {
|
|
1
|
+
import type { Engine, GlobalUniforms, MaterialDestroyOptions, MaterialProps, MaterialStates, Renderer, Texture, UndefinedAble } from '@galacean/effects-core';
|
|
2
|
+
import { spec, Material, math } from '@galacean/effects-core';
|
|
3
3
|
import type { GLPipelineContext } from './gl-pipeline-context';
|
|
4
4
|
import type { GLShaderVariant } from './gl-shader';
|
|
5
5
|
type Color = math.Color;
|
|
@@ -11,7 +11,6 @@ type Matrix4 = math.Matrix4;
|
|
|
11
11
|
type Quaternion = math.Quaternion;
|
|
12
12
|
declare const Vector4: typeof math.Vector4, Matrix4: typeof math.Matrix4;
|
|
13
13
|
export declare class GLMaterial extends Material {
|
|
14
|
-
shader: Shader;
|
|
15
14
|
shaderVariant: GLShaderVariant;
|
|
16
15
|
private floats;
|
|
17
16
|
private ints;
|
|
@@ -77,7 +76,7 @@ export declare class GLMaterial extends Material {
|
|
|
77
76
|
set frontFace(value: UndefinedAble<number>);
|
|
78
77
|
get cullFace(): UndefinedAble<number>;
|
|
79
78
|
set cullFace(value: UndefinedAble<number>);
|
|
80
|
-
enableMacro(keyword: string): void;
|
|
79
|
+
enableMacro(keyword: string, value?: boolean | number): void;
|
|
81
80
|
disableMacro(keyword: string): void;
|
|
82
81
|
isMacroEnabled(keyword: string): boolean;
|
|
83
82
|
createMaterialStates(states: MaterialStates): void;
|
|
@@ -114,13 +113,13 @@ export declare class GLMaterial extends Material {
|
|
|
114
113
|
setTexture(name: string, texture: Texture): void;
|
|
115
114
|
hasUniform(name: string): boolean;
|
|
116
115
|
clone(props?: MaterialProps): Material;
|
|
117
|
-
fromData(data: MaterialData): void;
|
|
116
|
+
fromData(data: spec.MaterialData): void;
|
|
118
117
|
/**
|
|
119
118
|
* @since 2.0.0
|
|
120
119
|
* @param sceneData
|
|
121
120
|
* @returns
|
|
122
121
|
*/
|
|
123
|
-
toData(): MaterialData;
|
|
122
|
+
toData(): spec.MaterialData;
|
|
124
123
|
cloneUniforms(sourceMaterial: Material): void;
|
|
125
124
|
private checkUniform;
|
|
126
125
|
dispose(options?: MaterialDestroyOptions): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-webgl",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.8",
|
|
4
4
|
"description": "Galacean Effects runtime webgl for the web",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@galacean/effects-core": "2.0.0-alpha.
|
|
41
|
+
"@galacean/effects-core": "2.0.0-alpha.8"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prebuild": "pnpm clean",
|