|
@@ -176,9 +176,10 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
specularIntensityMap: !! material.specularIntensityMap,
|
|
|
specularColorMap: !! material.specularColorMap,
|
|
|
|
|
|
+ transparent: material.transparent,
|
|
|
+
|
|
|
alphaMap: !! material.alphaMap,
|
|
|
alphaTest: useAlphaTest,
|
|
|
- alphaWrite: material.alphaWrite || material.transparent,
|
|
|
|
|
|
gradientMap: !! material.gradientMap,
|
|
|
|
|
@@ -325,7 +326,6 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
array.push( parameters.toneMapping );
|
|
|
array.push( parameters.numClippingPlanes );
|
|
|
array.push( parameters.numClipIntersection );
|
|
|
- array.push( parameters.alphaWrite );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -447,6 +447,8 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
_programLayers.enable( 21 );
|
|
|
if ( parameters.decodeVideoTexture )
|
|
|
_programLayers.enable( 22 );
|
|
|
+ if ( parameters.transparent )
|
|
|
+ _programLayers.enable( 23 );
|
|
|
|
|
|
array.push( _programLayers.mask );
|
|
|
|