Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutymane committed Apr 10, 2022
1 parent 45e4b8a commit 4f06fe4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions types/three/examples/jsm/shaders/AfterimageShader.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Uniform } from '../../../src/Three';
import { IUniform, Texture } from '../../../src/Three';

export const AfterimageShader: {
uniforms: {
damp: Uniform;
tOld: Uniform;
tNew: Uniform;
damp: IUniform<number>;
tOld: IUniform<Texture>;
tNew: IUniform<Texture>;
};
vertexShader: string;
fragmentShader: string;
Expand Down
4 changes: 3 additions & 1 deletion types/three/src/renderers/shaders/UniformsUtils.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export function cloneUniforms(uniforms_src: any): any;
import { TUniforms } from 'three';

export function cloneUniforms<U extends TUniforms>(uniforms_src: U): U;
export function mergeUniforms(uniforms: any[]): any;

export namespace UniformsUtils {
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/renderers/webgl/WebGLCapabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class WebGLCapabilities {
constructor(gl: WebGLRenderingContext, extensions: any, parameters: WebGLCapabilitiesParameters);

readonly isWebGL2: boolean;
precision: string;
precision: 'lowp' | 'mediump' | 'highp';
logarithmicDepthBuffer: boolean;
maxTextures: number;
maxVertexTextures: number;
Expand Down
2 changes: 1 addition & 1 deletion types/three/src/textures/Texture.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Texture extends EventDispatcher {
/**
* @default THREE.Texture.DEFAULT_IMAGE
*/
image: any; // HTMLImageElement or ImageData or { width: number, height: number } in some children;
image: HTMLImageElement | HTMLVideoElement | ImageData | { width: number; height: number }; // in some children;

/**
* @default []
Expand Down

0 comments on commit 4f06fe4

Please sign in to comment.