mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Merge pull request #12806 from randombk/fix/three-uniforms
three: Fix typing for shader uniforms
This commit is contained in:
Vendored
+2
-2
@@ -2737,7 +2737,7 @@ declare namespace THREE {
|
||||
constructor(parameters?: ShaderMaterialParameters);
|
||||
|
||||
defines: any;
|
||||
uniforms: any; // type should be { [uniform: string]: { value: any }; }; but gives "Index signature is missing in type" error during compilation
|
||||
uniforms: { [uniform: string]: IUniform };
|
||||
vertexShader: string;
|
||||
fragmentShader: string;
|
||||
linewidth: number;
|
||||
@@ -5115,7 +5115,7 @@ declare namespace THREE {
|
||||
};
|
||||
|
||||
export interface Shader {
|
||||
uniforms: IUniform;
|
||||
uniforms: { [uniform: string]: IUniform };
|
||||
vertexShader: string;
|
||||
fragmentShader: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user