three-low-poly 0.9.26 → 0.9.27
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.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.iife.js +17 -17
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +5194 -7008
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -11
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ExtrudeGeometry } from 'three';
|
|
|
8
8
|
import { Group } from 'three';
|
|
9
9
|
import { InstancedMesh } from 'three';
|
|
10
10
|
import { Material } from 'three';
|
|
11
|
+
import { MaterialEventMap } from 'three';
|
|
11
12
|
import { Mesh } from 'three';
|
|
12
13
|
import { MeshBasicMaterial } from 'three';
|
|
13
14
|
import { MeshLambertMaterial } from 'three';
|
|
@@ -16,7 +17,7 @@ import { MeshPhysicalMaterial } from 'three';
|
|
|
16
17
|
import { MeshStandardMaterial } from 'three';
|
|
17
18
|
import { Object3D } from 'three';
|
|
18
19
|
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
|
|
19
|
-
import { ParametricGeometry } from 'three
|
|
20
|
+
import { ParametricGeometry } from 'three/addons/geometries/ParametricGeometry.js';
|
|
20
21
|
import { PerspectiveCamera } from 'three';
|
|
21
22
|
import { Plane } from 'three';
|
|
22
23
|
import { PlaneGeometry } from 'three';
|
|
@@ -69,7 +70,7 @@ import { Vector3 } from 'three';
|
|
|
69
70
|
* instancedMesh.geometry.setAttribute("instanceColor", new THREE.InstancedBufferAttribute(colors, 3));
|
|
70
71
|
* ```
|
|
71
72
|
*/
|
|
72
|
-
export declare function addInstanceColor(material: Material): Material
|
|
73
|
+
export declare function addInstanceColor(material: Material): Material< MaterialEventMap>;
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Utility function to add noise-based vertex displacement to an existing Three.js material.
|