@galacean/effects-threejs 1.0.0 → 1.1.0-alpha.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/dist/index.js +6685 -1536
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +6684 -1499
- package/dist/index.mjs.map +1 -1
- package/dist/material/three-material.d.ts +22 -13
- package/package.json +2 -2
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import type { MaterialProps, Texture, UniformValue, MaterialDestroyOptions, UndefinedAble, Engine } from '@galacean/effects-core';
|
|
2
|
-
import { Material
|
|
1
|
+
import type { MaterialProps, Texture, UniformValue, MaterialDestroyOptions, UndefinedAble, Engine, math } from '@galacean/effects-core';
|
|
2
|
+
import { Material } from '@galacean/effects-core';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
|
+
type Matrix4 = math.Matrix4;
|
|
5
|
+
type Vector2 = math.Vector2;
|
|
6
|
+
type Vector3 = math.Vector3;
|
|
7
|
+
type Vector4 = math.Vector4;
|
|
8
|
+
type Matrix3 = math.Matrix3;
|
|
9
|
+
type Quaternion = math.Quaternion;
|
|
4
10
|
/**
|
|
5
11
|
* THREE 抽象材质类
|
|
6
12
|
*/
|
|
@@ -129,19 +135,21 @@ export declare class ThreeMaterial extends Material {
|
|
|
129
135
|
getTexture(name: string): Texture | null;
|
|
130
136
|
setTexture(name: string, texture: Texture): void;
|
|
131
137
|
getVector4Array(name: string): number[];
|
|
132
|
-
setVector4Array(name: string, array:
|
|
138
|
+
setVector4Array(name: string, array: Vector4[]): void;
|
|
133
139
|
getMatrixArray(name: string): number[] | null;
|
|
134
|
-
setMatrixArray(name: string, array:
|
|
140
|
+
setMatrixArray(name: string, array: Matrix4[]): void;
|
|
135
141
|
setMatrixNumberArray(name: string, array: number[]): void;
|
|
136
|
-
getMatrix(name: string):
|
|
137
|
-
setMatrix(name: string, value:
|
|
138
|
-
setMatrix3(name: string, value:
|
|
139
|
-
getVector2(name: string):
|
|
140
|
-
setVector2(name: string, value:
|
|
141
|
-
getVector3(name: string):
|
|
142
|
-
setVector3(name: string, value:
|
|
143
|
-
getVector4(name: string):
|
|
144
|
-
setVector4(name: string, value:
|
|
142
|
+
getMatrix(name: string): Matrix4 | null;
|
|
143
|
+
setMatrix(name: string, value: Matrix4): void;
|
|
144
|
+
setMatrix3(name: string, value: Matrix3): void;
|
|
145
|
+
getVector2(name: string): Vector2 | null;
|
|
146
|
+
setVector2(name: string, value: Vector2): void;
|
|
147
|
+
getVector3(name: string): Vector3;
|
|
148
|
+
setVector3(name: string, value: Vector3): void;
|
|
149
|
+
getVector4(name: string): Vector4 | null;
|
|
150
|
+
setVector4(name: string, value: Vector4): void;
|
|
151
|
+
getQuaternion(name: string): Quaternion | null;
|
|
152
|
+
setQuaternion(name: string, value: Quaternion): void;
|
|
145
153
|
getFloat(name: string): number | null;
|
|
146
154
|
setFloat(name: string, value: number): void;
|
|
147
155
|
getFloats(name: string): number[] | null;
|
|
@@ -157,3 +165,4 @@ export declare class ThreeMaterial extends Material {
|
|
|
157
165
|
cloneUniforms(sourceMaterial: Material): void;
|
|
158
166
|
dispose(destroyOptions?: MaterialDestroyOptions): void;
|
|
159
167
|
}
|
|
168
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-threejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-alpha.1",
|
|
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": "1.0.
|
|
46
|
+
"@galacean/effects-core": "1.1.0-alpha.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"three": "^0.149.0",
|