浏览代码

Merge pull request #18229 from kazz0913/mapProperty

TS: Added map definition to MeshDepthMaterial and MeshDistanceMaterial.
Michael Herzog 5 年之前
父节点
当前提交
92dc66d014
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/materials/MeshDepthMaterial.d.ts
  2. 2 0
      src/materials/MeshDistanceMaterial.d.ts

+ 2 - 0
src/materials/MeshDepthMaterial.d.ts

@@ -3,6 +3,7 @@ import { MaterialParameters, Material } from './Material';
 import { Texture } from './../textures/Texture';
 
 export interface MeshDepthMaterialParameters extends MaterialParameters {
+	map?: Texture | null;
 	alphaMap?: Texture | null;
 	depthPacking?: DepthPackingStrategies;
 	displacementMap?: Texture | null;
@@ -16,6 +17,7 @@ export class MeshDepthMaterial extends Material {
 
 	constructor( parameters?: MeshDepthMaterialParameters );
 
+	map: Texture | null;
 	alphaMap: Texture | null;
 	depthPacking: DepthPackingStrategies;
 	displacementMap: Texture | null;

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

@@ -3,6 +3,7 @@ import { Vector3 } from './../math/Vector3';
 import { Texture } from './../textures/Texture';
 
 export interface MeshDistanceMaterialParameters extends MaterialParameters {
+	map?: Texture | null;
 	alphaMap?: Texture | null;
 	displacementMap?: Texture | null;
 	displacementScale?: number;
@@ -16,6 +17,7 @@ export class MeshDistanceMaterial extends Material {
 
 	constructor( parameters?: MeshDistanceMaterialParameters );
 
+	map: Texture | null;
 	alphaMap: Texture | null;
 	displacementMap: Texture | null;
 	displacementScale: number;