@plastic-software/three 0.184.0 → 0.184.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -169,6 +169,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
|
|
|
169
169
|
const HAS_ALPHAHASH = !! material.alphaHash;
|
|
170
170
|
|
|
171
171
|
const HAS_OCTAHEDRAL_NORMALS = object.geometry.attributes.normalOctahedral !== undefined;
|
|
172
|
+
const HAS_VERTEX_NORMALS = geometry.attributes.normal !== undefined || HAS_OCTAHEDRAL_NORMALS;
|
|
172
173
|
|
|
173
174
|
const HAS_EXTENSIONS = !! material.extensions;
|
|
174
175
|
|
|
@@ -312,7 +313,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
|
|
|
312
313
|
//
|
|
313
314
|
|
|
314
315
|
vertexTangents: !! geometry.attributes.tangent && ( HAS_NORMALMAP || HAS_ANISOTROPY ),
|
|
315
|
-
vertexNormals:
|
|
316
|
+
vertexNormals: HAS_VERTEX_NORMALS,
|
|
316
317
|
vertexColors: material.vertexColors,
|
|
317
318
|
vertexAlphas: material.vertexColors === true && !! geometry.attributes.color && geometry.attributes.color.itemSize === 4,
|
|
318
319
|
|
|
@@ -324,7 +325,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
|
|
|
324
325
|
|
|
325
326
|
flatShading: material.wireframe === false && (
|
|
326
327
|
material.flatShading === true ||
|
|
327
|
-
(
|
|
328
|
+
( HAS_VERTEX_NORMALS === false && HAS_NORMALMAP === false &&
|
|
328
329
|
( material.isMeshLambertMaterial || material.isMeshPhongMaterial || material.isMeshStandardMaterial || material.isMeshPhysicalMaterial )
|
|
329
330
|
)
|
|
330
331
|
),
|