|
|
@@ -301,6 +301,7 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
|
|
|
//
|
|
|
|
|
|
vertexTangents: !! geometry.attributes.tangent && ( HAS_NORMALMAP || HAS_ANISOTROPY ),
|
|
|
+ vertexNormals: !! geometry.attributes.normal,
|
|
|
vertexColors: material.vertexColors,
|
|
|
vertexAlphas: material.vertexColors === true && !! geometry.attributes.color && geometry.attributes.color.itemSize === 4,
|
|
|
|
|
|
@@ -530,6 +531,8 @@ function WebGLPrograms( renderer, environments, extensions, capabilities, bindin
|
|
|
_programLayers.enable( 21 );
|
|
|
if ( parameters.packedNormalMap )
|
|
|
_programLayers.enable( 22 );
|
|
|
+ if ( parameters.vertexNormals )
|
|
|
+ _programLayers.enable( 23 );
|
|
|
|
|
|
array.push( _programLayers.mask );
|
|
|
_programLayers.disableAll();
|