提交 8c9298eb 编写于 作者: M Mr.doob

WebGLMaterials: Update Points and Sprites alphaTest.

上级 d90435db
......@@ -18,7 +18,7 @@ const UniformsLib = {
uv2Transform: { value: new Matrix3() },
alphaMap: { value: null },
alphaTest: { value: 0 }
alphaTest: { value: null }
},
......@@ -194,6 +194,7 @@ const UniformsLib = {
scale: { value: 1.0 },
map: { value: null },
alphaMap: { value: null },
alphaTest: { value: null },
uvTransform: { value: new Matrix3() }
},
......@@ -206,6 +207,7 @@ const UniformsLib = {
rotation: { value: 0.0 },
map: { value: null },
alphaMap: { value: null },
alphaTest: { value: null },
uvTransform: { value: new Matrix3() }
}
......
......@@ -336,6 +336,12 @@ function WebGLMaterials( properties ) {
}
if ( material.alphaTest > 0 ) {
uniforms.alphaTest.value = material.alphaTest;
}
// uv repeat and offset setting priorities
// 1. color map
// 2. alpha map
......@@ -384,6 +390,12 @@ function WebGLMaterials( properties ) {
}
if ( material.alphaTest > 0 ) {
uniforms.alphaTest.value = material.alphaTest;
}
// uv repeat and offset setting priorities
// 1. color map
// 2. alpha map
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册