Skip to content

Commit 946702e

Browse files
authored
Addons: Remove PackedPhongMaterial. (#1256)
* Addons: Remove PackedPhongMaterial. * Update three.js * Update * Format * Remove
1 parent 2ff5e2c commit 946702e

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

examples-testing/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const exceptionList = [
4343
'webgl_postprocessing_3dlut',
4444
'webgl_postprocessing_dof',
4545
'webgl_postprocessing_dof2',
46-
'webgl_buffergeometry_compression',
4746
'webgl_rendertarget_texture2darray',
4847
'webgl_texture2darray',
4948
'webgl_worker_offscreencanvas',

types/three/examples/jsm/Addons.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ export * as CameraUtils from "./utils/CameraUtils.js";
271271
export * as GeometryCompressionUtils from "./utils/GeometryCompressionUtils.js";
272272
export * as GeometryUtils from "./utils/GeometryUtils.js";
273273
export * from "./utils/LDrawUtils.js";
274-
export * from "./utils/PackedPhongMaterial.js";
275274
export * as SceneUtils from "./utils/SceneUtils.js";
276275
export * from "./utils/ShadowMapViewer.js";
277276
export * as SkeletonUtils from "./utils/SkeletonUtils.js";
Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
import { Mesh } from "three";
1+
import { BufferGeometry, Mesh } from "three";
22

3-
export function compressNormals(mesh: Mesh, encodeMethod: string): void;
4-
export function compressPositions(mesh: Mesh): void;
5-
export function compressUvs(mesh: Mesh): void;
3+
/**
4+
* Make the input geometry's normal attribute encoded and compressed by 3 different methods.
5+
*/
6+
declare function compressNormals(
7+
geometry: BufferGeometry,
8+
encodeMethod: "DEFAULT" | "OCT1Byte" | "OCT2Byte" | "ANGLES",
9+
): void;
10+
11+
/**
12+
* Make the input geometry's position attribute encoded and compressed.
13+
*/
14+
declare function compressPositions(geometry: BufferGeometry): void;
15+
16+
/**
17+
* Make the input geometry's uv attribute encoded and compressed.
18+
*/
19+
declare function compressUvs(geometry: BufferGeometry): void;
20+
21+
export { compressNormals, compressPositions, compressUvs };

types/three/examples/jsm/utils/PackedPhongMaterial.d.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)