Kaynağa Gözat

USDZExporter: Fixed normals

Mr.doob 4 yıl önce
ebeveyn
işleme
ddc530d9d0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      examples/jsm/exporters/USDZExporter.js

+ 1 - 1
examples/jsm/exporters/USDZExporter.js

@@ -89,7 +89,7 @@ function buildMesh( geometry, material ) {
         int[] faceVertexIndices = [${ buildMeshVertexIndices( geometry ) }]
         rel material:binding = </_materials/Material_${ material.id }>
         normal3f[] normals = [${ buildVector3Array( attributes.normal, count )}] (
-            interpolation = "faceVarying"
+            interpolation = "vertex"
         )
         point3f[] points = [${ buildVector3Array( attributes.position, count )}]
         texCoord2f[] primvars:UVMap = [${ buildVector2Array( attributes.uv, count )}] (