소스 검색

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 년 전
부모
커밋
10e77ccb59
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {
-	uniforms?: any;
+	uniforms?: { [uniform: string]: IUniform };
 	vertexShader?: string;
 	fragmentShader?: string;
 	linewidth?: number;