Skip to content

Commit 6f1fd50

Browse files
authored
Update TileCompressionPlugin.js
1 parent 0654ae3 commit 6f1fd50

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/plugins/three/TileCompressionPlugin.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { MeshNormalMaterial } from 'three';
21
import { Vector3, LinearFilter, BufferAttribute, MathUtils } from 'three';
3-
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
42

53
const _vec = new Vector3();
64
function compressAttribute( attribute, arrayType ) {
@@ -183,10 +181,7 @@ export class TileCompressionPlugin {
183181

184182
if ( generateNormals && ! attributes.normals ) {
185183

186-
geometry = toCreasedNormals( geometry, 30 * MathUtils.DEG2RAD );
187-
c.geometry = geometry;
188-
189-
c.material = new MeshNormalMaterial();
184+
geometry.computeVertexNormals();
190185

191186
}
192187

0 commit comments

Comments
 (0)