diff --git a/types/three/examples/jsm/shaders/AfterimageShader.d.ts b/types/three/examples/jsm/shaders/AfterimageShader.d.ts index f65f1d135..086255c92 100644 --- a/types/three/examples/jsm/shaders/AfterimageShader.d.ts +++ b/types/three/examples/jsm/shaders/AfterimageShader.d.ts @@ -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; + tOld: IUniform; + tNew: IUniform; }; vertexShader: string; fragmentShader: string; diff --git a/types/three/src/renderers/shaders/UniformsUtils.d.ts b/types/three/src/renderers/shaders/UniformsUtils.d.ts index e67ba98b6..c596d4a43 100644 --- a/types/three/src/renderers/shaders/UniformsUtils.d.ts +++ b/types/three/src/renderers/shaders/UniformsUtils.d.ts @@ -1,4 +1,6 @@ -export function cloneUniforms(uniforms_src: any): any; +import { TUniforms } from 'three'; + +export function cloneUniforms(uniforms_src: U): U; export function mergeUniforms(uniforms: any[]): any; export namespace UniformsUtils { diff --git a/types/three/src/renderers/webgl/WebGLCapabilities.d.ts b/types/three/src/renderers/webgl/WebGLCapabilities.d.ts index 7b0151cfb..1cc2a37cd 100644 --- a/types/three/src/renderers/webgl/WebGLCapabilities.d.ts +++ b/types/three/src/renderers/webgl/WebGLCapabilities.d.ts @@ -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; diff --git a/types/three/src/textures/Texture.d.ts b/types/three/src/textures/Texture.d.ts index 36a816a2f..000046a16 100644 --- a/types/three/src/textures/Texture.d.ts +++ b/types/three/src/textures/Texture.d.ts @@ -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 []