浏览代码

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.
pengweifu 5 年之前
父节点
当前提交
c777555ab5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/materials/MeshDistanceMaterial.d.ts

+ 1 - 0
src/materials/MeshDistanceMaterial.d.ts

@@ -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;