未验证 提交 c777555a 编写于 作者: mengxuan75's avatar mengxuan75 提交者: GitHub

MeshDistanceMaterial: add alphaMap support

This support for alpha maps is consistent with the implementation of the other built-in materials.

When i use the three 0.109.0 version and try https://threejs.org/examples/#webgl_shadowmap_pointlight this demo, it crashed.
add alphaMap support can fixed this bug.
上级 5f01e707
......@@ -6,6 +6,7 @@ export interface MeshDistanceMaterialParameters extends MaterialParameters {
referencePosition?: Vector3;
nearDistance?: number;
farDistance?: number;
alphaMap?: Texture | null;
displacementMap?: Texture | null;
displacementScale?: number;
displacementBias?: number;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册