Skip to content

Commit

Permalink
Update TileCompressionPlugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson authored Dec 2, 2024
1 parent 0654ae3 commit 6f1fd50
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/plugins/three/TileCompressionPlugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { MeshNormalMaterial } from 'three';
import { Vector3, LinearFilter, BufferAttribute, MathUtils } from 'three';
import { toCreasedNormals } from 'three/examples/jsm/utils/BufferGeometryUtils.js';

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

if ( generateNormals && ! attributes.normals ) {

geometry = toCreasedNormals( geometry, 30 * MathUtils.DEG2RAD );
c.geometry = geometry;

c.material = new MeshNormalMaterial();
geometry.computeVertexNormals();

}

Expand Down

0 comments on commit 6f1fd50

Please sign in to comment.