|
@@ -41,13 +41,13 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
'clearcoat', 'clearcoatMap', 'clearcoatRoughnessMap', 'clearcoatNormalMap',
|
|
|
'displacementMap',
|
|
|
'specularMap', 'specularIntensityMap', 'specularTintMap', 'specularTintMapEncoding', 'roughnessMap', 'metalnessMap', 'gradientMap',
|
|
|
- 'alphaMap', 'combine', 'vertexColors', 'vertexAlphas', 'vertexTangents', 'vertexUvs', 'uvsVertexOnly', 'fog', 'useFog', 'fogExp2',
|
|
|
+ 'alphaMap', 'alphaTest', 'combine', 'vertexColors', 'vertexAlphas', 'vertexTangents', 'vertexUvs', 'uvsVertexOnly', 'fog', 'useFog', 'fogExp2',
|
|
|
'flatShading', 'sizeAttenuation', 'logarithmicDepthBuffer', 'skinning',
|
|
|
'maxBones', 'useVertexTexture', 'morphTargets', 'morphNormals', 'premultipliedAlpha',
|
|
|
'numDirLights', 'numPointLights', 'numSpotLights', 'numHemiLights', 'numRectAreaLights',
|
|
|
'numDirLightShadows', 'numPointLightShadows', 'numSpotLightShadows',
|
|
|
'shadowMapEnabled', 'shadowMapType', 'toneMapping', 'physicallyCorrectLights',
|
|
|
- 'alphaTest', 'doubleSided', 'flipSided', 'numClippingPlanes', 'numClipIntersection', 'depthPacking', 'dithering',
|
|
|
+ 'doubleSided', 'flipSided', 'numClippingPlanes', 'numClipIntersection', 'depthPacking', 'dithering',
|
|
|
'sheenTint', 'transmission', 'transmissionMap', 'thicknessMap'
|
|
|
];
|
|
|
|
|
@@ -154,6 +154,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
|
|
|
const currentRenderTarget = renderer.getRenderTarget();
|
|
|
|
|
|
+ const useAlphaTest = material.alphaTest > 0;
|
|
|
const useClearcoat = material.clearcoat > 0;
|
|
|
|
|
|
const parameters = {
|
|
@@ -208,6 +209,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
specularTintMap: !! material.specularTintMap,
|
|
|
specularTintMapEncoding: getTextureEncodingFromMap( material.specularTintMap ),
|
|
|
alphaMap: !! material.alphaMap,
|
|
|
+ alphaTest: useAlphaTest,
|
|
|
|
|
|
gradientMap: !! material.gradientMap,
|
|
|
|
|
@@ -264,7 +266,6 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
|
|
|
premultipliedAlpha: material.premultipliedAlpha,
|
|
|
|
|
|
- alphaTest: material.alphaTest,
|
|
|
doubleSided: material.side === DoubleSide,
|
|
|
flipSided: material.side === BackSide,
|
|
|
|