Skip to content

Commit

Permalink
fixed clone (google#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Oct 23, 2019
1 parent 730c467 commit 3d11991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/three-components/ModelUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export const cloneGltf = (gltf: Gltf): Gltf => {
specularGlossiness.cloneMaterial(material) :
material.clone();
clone.onBeforeCompile = updateShader;
// TODO(elalish): remove this when we upgrade three.js to a version with
// this fix: mrdoob/three.js#17795
clone.vertexTangents = material.vertexTangents;
return clone;
};

Expand Down

0 comments on commit 3d11991

Please sign in to comment.