@galacean/effects-threejs 2.0.0-alpha.8 → 2.0.0-alpha.9
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 +217 -218
- 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 +216 -218
- package/dist/index.mjs.map +1 -1
- package/dist/material/three-material.d.ts +3 -0
- package/dist/three-display-object.d.ts +1 -2
- package/package.json +2 -2
|
@@ -7,6 +7,7 @@ type Vector3 = math.Vector3;
|
|
|
7
7
|
type Vector4 = math.Vector4;
|
|
8
8
|
type Matrix3 = math.Matrix3;
|
|
9
9
|
type Quaternion = math.Quaternion;
|
|
10
|
+
type Color = math.Color;
|
|
10
11
|
/**
|
|
11
12
|
* THREE 抽象材质类
|
|
12
13
|
*/
|
|
@@ -149,6 +150,8 @@ export declare class ThreeMaterial extends Material {
|
|
|
149
150
|
setVector3(name: string, value: Vector3): void;
|
|
150
151
|
getVector4(name: string): Vector4 | null;
|
|
151
152
|
setVector4(name: string, value: Vector4): void;
|
|
153
|
+
getColor(name: string): Color | null;
|
|
154
|
+
setColor(name: string, value: Color): void;
|
|
152
155
|
getQuaternion(name: string): Quaternion | null;
|
|
153
156
|
setQuaternion(name: string, value: Quaternion): void;
|
|
154
157
|
getFloat(name: string): number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventSystem, SceneLoadOptions, Renderer, Composition, SceneLoadType
|
|
1
|
+
import type { EventSystem, SceneLoadOptions, Renderer, Composition, SceneLoadType } from '@galacean/effects-core';
|
|
2
2
|
import { AssetManager } from '@galacean/effects-core';
|
|
3
3
|
import * as THREE from 'three';
|
|
4
4
|
import { ThreeComposition } from './three-composition';
|
|
@@ -54,4 +54,3 @@ export declare class ThreeDisplayObject extends THREE.Group {
|
|
|
54
54
|
*/
|
|
55
55
|
update(delta: number): void;
|
|
56
56
|
}
|
|
57
|
-
export declare function isSceneWithOptions(scene: any): scene is SceneWithOptionsType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-threejs",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.9",
|
|
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.0.0-alpha.
|
|
46
|
+
"@galacean/effects-core": "2.0.0-alpha.9"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"three": "^0.149.0",
|