2
0
Эх сурвалжийг харах

remove useless defines declarations in extended materials

Bastien Robert 5 жил өмнө
parent
commit
d9e83249cc

+ 1 - 1
src/materials/Material.d.ts

@@ -126,7 +126,7 @@ export class Material extends EventDispatcher {
 	 * Whether to render the material's color. This can be used in conjunction with a mesh's .renderOrder property to create invisible objects that occlude other objects. Default is true.
 	 */
 	colorWrite: boolean;
-	
+
 	/**
 	 * Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }. 
 	 * The pairs are defined in both vertex and fragment shaders. Default is undefined.

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

@@ -22,7 +22,6 @@ export class MeshPhysicalMaterial extends MeshStandardMaterial {
 
 	constructor( parameters: MeshPhysicalMaterialParameters );
 
-	defines: any;
 	reflectivity: number;
 	clearcoat: number;
 	clearcoatRoughness: number;

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

@@ -41,7 +41,6 @@ export class MeshStandardMaterial extends Material {
 
 	constructor( parameters?: MeshStandardMaterialParameters );
 
-	defines: any;
 	color: Color;
 	roughness: number;
 	metalness: number;

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

@@ -12,7 +12,6 @@ import { MaterialParameters, Material } from './Material';
  */
 
 export interface ShaderMaterialParameters extends MaterialParameters {
-	defines?: any;
 	uniforms?: any;
 	vertexShader?: string;
 	fragmentShader?: string;
@@ -36,7 +35,6 @@ export class ShaderMaterial extends Material {
 
 	constructor( parameters?: ShaderMaterialParameters );
 
-	defines: any;
 	uniforms: { [uniform: string]: IUniform };
 	vertexShader: string;
 	fragmentShader: string;