提交 727ce2e9 编写于 作者: D Don McCurdy

GLTFExporter: Avoid writing default alphaCutoff.

上级 52ab491e
......@@ -600,7 +600,8 @@ THREE.GLTFExporter.prototype = {
gltfMaterial.alphaMode = material.opacity < 1.0 ? 'BLEND' : 'MASK';
if ( material.alphaTest > 0.0 ) {
// Write alphaCutoff if it's non-zero and different from the default (0.5).
if ( material.alphaTest > 0.0 && material.alphaTest !== 0.5 ) {
gltfMaterial.alphaCutoff = material.alphaTest;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册