Prechádzať zdrojové kódy

MeshToonMaterial: Update TS file.

Mugen87 5 rokov pred
rodič
commit
04947557f6
1 zmenil súbory, kde vykonal 65 pridanie a 4 odobranie
  1. 65 4
      src/materials/MeshToonMaterial.d.ts

+ 65 - 4
src/materials/MeshToonMaterial.d.ts

@@ -1,15 +1,76 @@
+import { Color } from './../math/Color';
 import { Texture } from './../textures/Texture';
 import { Texture } from './../textures/Texture';
-import { MeshPhongMaterialParameters, MeshPhongMaterial } from './MeshPhongMaterial';
+import { Vector2 } from './../math/Vector2';
+import { MaterialParameters, Material } from './Material';
+import { NormalMapTypes } from '../constants';
 
 
-export interface MeshToonMaterialParameters extends MeshPhongMaterialParameters {
+export interface MeshToonMaterialParameters extends MaterialParameters {
+	/** geometry color in hexadecimal. Default is 0xffffff. */
+	color?: Color | string | number;
+	specular?: Color | string | number;
+	shininess?: number;
+	opacity?: number;
 	gradientMap?: Texture | null;
 	gradientMap?: Texture | null;
+	map?: Texture | null;
+	lightMap?: Texture | null;
+	lightMapIntensity?: number;
+	aoMap?: Texture | null;
+	aoMapIntensity?: number;
+	emissive?: Color | string | number;
+	emissiveIntensity?: number;
+	emissiveMap?: Texture | null;
+	bumpMap?: Texture | null;
+	bumpScale?: number;
+	normalMap?: Texture | null;
+	normalMapType?: NormalMapTypes;
+	normalScale?: Vector2;
+	displacementMap?: Texture | null;
+	displacementScale?: number;
+	displacementBias?: number;
+	specularMap?: Texture | null;
+	alphaMap?: Texture | null;
+	wireframe?: boolean;
+	wireframeLinewidth?: number;
+	wireframeLinecap?: string;
+	wireframeLinejoin?: string;
+	skinning?: boolean;
+	morphTargets?: boolean;
+	morphNormals?: boolean;
 }
 }
 
 
-export class MeshToonMaterial extends MeshPhongMaterial {
+export class MeshToonMaterial extends Material {
 
 
 	constructor( parameters?: MeshToonMaterialParameters );
 	constructor( parameters?: MeshToonMaterialParameters );
 
 
-	gradientMap: Texture | null;
+	color: Color;
+	specular: Color;
+	shininess: number;
+	gradientMap: Texture | null;
+	map: Texture | null;
+	lightMap: Texture | null;
+	lightMapIntensity: number;
+	aoMap: Texture | null;
+	aoMapIntensity: number;
+	emissive: Color;
+	emissiveIntensity: number;
+	emissiveMap: Texture | null;
+	bumpMap: Texture | null;
+	bumpScale: number;
+	normalMap: Texture | null;
+	normalMapType: NormalMapTypes;
+	normalScale: Vector2;
+	displacementMap: Texture | null;
+	displacementScale: number;
+	displacementBias: number;
+	specularMap: Texture | null;
+	alphaMap: Texture | null;
+	wireframe: boolean;
+	wireframeLinewidth: number;
+	wireframeLinecap: string;
+	wireframeLinejoin: string;
+	skinning: boolean;
+	morphTargets: boolean;
+	morphNormals: boolean;
 
 
 	setValues( parameters: MeshToonMaterialParameters ): void;
 	setValues( parameters: MeshToonMaterialParameters ): void;