@@ -176,9 +176,10 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
176176 specularIntensityMap : ! ! material . specularIntensityMap ,
177177 specularColorMap : ! ! material . specularColorMap ,
178178
179+ transparent : material . transparent ,
180+
179181 alphaMap : ! ! material . alphaMap ,
180182 alphaTest : useAlphaTest ,
181- alphaWrite : material . alphaWrite || material . transparent ,
182183
183184 gradientMap : ! ! material . gradientMap ,
184185
@@ -325,7 +326,6 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
325326 array . push ( parameters . toneMapping ) ;
326327 array . push ( parameters . numClippingPlanes ) ;
327328 array . push ( parameters . numClipIntersection ) ;
328- array . push ( parameters . alphaWrite ) ;
329329
330330 }
331331
@@ -447,6 +447,8 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
447447 _programLayers . enable ( 21 ) ;
448448 if ( parameters . decodeVideoTexture )
449449 _programLayers . enable ( 22 ) ;
450+ if ( parameters . transparent )
451+ _programLayers . enable ( 23 ) ;
450452
451453 array . push ( _programLayers . mask ) ;
452454
0 commit comments