|
@@ -2107,6 +2107,12 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
materialParams.alphaTest = materialDef.alphaCutoff !== undefined ? materialDef.alphaCutoff : 0.5;
|
|
|
|
|
|
+ } else {
|
|
|
+
|
|
|
+ // for ALPHA_MODES.OPAQUE, we use a negative alphaTest value to enable alphaTesting,
|
|
|
+ // causing the test to always be passed, but also replacing any alpha value with 1.0.
|
|
|
+ materialParams.alphaTest = - 0.5;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|