浏览代码

Merge pull request #16694 from closedcontour/patch-1

Add sizeAttenuation to SpriteMaterial typing.
Mr.doob 6 年之前
父节点
当前提交
17c1f0b630
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/materials/SpriteMaterial.d.ts

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

@@ -6,6 +6,7 @@ export interface SpriteMaterialParameters extends MaterialParameters {
 	color?: Color | string | number;
 	map?: Texture;
 	rotation?: number;
+	sizeAttenuation?: boolean;
 }
 
 export class SpriteMaterial extends Material {
@@ -15,6 +16,7 @@ export class SpriteMaterial extends Material {
 	color: Color;
 	map: Texture | null;
 	rotation: number;
+	sizeAttenuation: boolean;
 	isSpriteMaterial: true;
 
 	setValues( parameters: SpriteMaterialParameters ): void;