Răsfoiți Sursa

Updated builds.

Mr.doob 4 luni în urmă
părinte
comite
7f6b25e503
3 a modificat fișierele cu 12 adăugiri și 2 ștergeri
  1. 6 1
      build/three.cjs
  2. 6 1
      build/three.module.js
  3. 0 0
      build/three.module.min.js

+ 6 - 1
build/three.cjs

@@ -67072,7 +67072,12 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
 			useFog: material.fog === true,
 			fogExp2: ( !! fog && fog.isFogExp2 ),
 
-			flatShading: ( material.flatShading === true && material.wireframe === false ),
+			flatShading: material.wireframe === false && (
+				material.flatShading === true ||
+				( geometry.attributes.normal === undefined && HAS_NORMALMAP === false &&
+					( material.isMeshLambertMaterial || material.isMeshPhongMaterial || material.isMeshStandardMaterial || material.isMeshPhysicalMaterial )
+				)
+			),
 
 			sizeAttenuation: material.sizeAttenuation === true,
 			logarithmicDepthBuffer: logarithmicDepthBuffer,

+ 6 - 1
build/three.module.js

@@ -7547,7 +7547,12 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
 			useFog: material.fog === true,
 			fogExp2: ( !! fog && fog.isFogExp2 ),
 
-			flatShading: ( material.flatShading === true && material.wireframe === false ),
+			flatShading: material.wireframe === false && (
+				material.flatShading === true ||
+				( geometry.attributes.normal === undefined && HAS_NORMALMAP === false &&
+					( material.isMeshLambertMaterial || material.isMeshPhongMaterial || material.isMeshStandardMaterial || material.isMeshPhysicalMaterial )
+				)
+			),
 
 			sizeAttenuation: material.sizeAttenuation === true,
 			logarithmicDepthBuffer: logarithmicDepthBuffer,

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
build/three.module.min.js


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff

粤ICP备19079148号