@galacean/effects-threejs 2.2.0-alpha.0 → 2.2.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/index.js +61 -145
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +62 -143
- package/dist/index.mjs.map +1 -1
- package/dist/material/three-material.d.ts +2 -1
- package/package.json +2 -2
|
@@ -24,6 +24,7 @@ export declare class ThreeMaterial extends Material {
|
|
|
24
24
|
* 储存 uniform 变量名及对应的 THREE uniform 对象
|
|
25
25
|
*/
|
|
26
26
|
uniforms: Record<string, THREE.Uniform>;
|
|
27
|
+
macrosDirty: boolean;
|
|
27
28
|
/**
|
|
28
29
|
* 构造函数
|
|
29
30
|
*
|
|
@@ -162,7 +163,7 @@ export declare class ThreeMaterial extends Material {
|
|
|
162
163
|
setInt(name: string, value: number): void;
|
|
163
164
|
hasUniform(name: string): boolean;
|
|
164
165
|
private setUniform;
|
|
165
|
-
enableMacro(keyword: string): void;
|
|
166
|
+
enableMacro(keyword: string, value?: boolean | number): void;
|
|
166
167
|
disableMacro(keyword: string): void;
|
|
167
168
|
isMacroEnabled(keyword: string): boolean;
|
|
168
169
|
clone(props?: MaterialProps): Material;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-threejs",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Galacean Effects runtime threejs plugin for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"registry": "https://registry.npmjs.org"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@galacean/effects-core": "2.2.0
|
|
46
|
+
"@galacean/effects-core": "2.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"three": "^0.149.0",
|