Browse Source

Fix uniforms in ShaderMaterialParameters

This is to ensure the "uniforms" property of ShaderMaterialParameters is used properly if it is given in the ShaderMaterial constructor.
Kevin Caccamo 5 years ago
parent
commit
10e77ccb59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/materials/ShaderMaterial.d.ts

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

@@ -12,7 +12,7 @@ import { MaterialParameters, Material } from './Material';
  */
  */
 
 
 export interface ShaderMaterialParameters extends MaterialParameters {
 export interface ShaderMaterialParameters extends MaterialParameters {
-	uniforms?: any;
+	uniforms?: { [uniform: string]: IUniform };
 	vertexShader?: string;
 	vertexShader?: string;
 	fragmentShader?: string;
 	fragmentShader?: string;
 	linewidth?: number;
 	linewidth?: number;