diff --git a/three.js b/three.js index cc774f107..7a0247592 160000 --- a/three.js +++ b/three.js @@ -1 +1 @@ -Subproject commit cc774f107f9baf5c82833a166e84d0f9dcbdc14a +Subproject commit 7a02475928a0f6e0b7f37c5db6bc6de48f358d2d diff --git a/types/three/src/renderers/WebGLRenderer.d.ts b/types/three/src/renderers/WebGLRenderer.d.ts index 0ed9eac72..da0127b94 100644 --- a/types/three/src/renderers/WebGLRenderer.d.ts +++ b/types/three/src/renderers/WebGLRenderer.d.ts @@ -1,5 +1,6 @@ import { Camera } from "../cameras/Camera.js"; import { ColorSpace, CullFace, ShadowMapType, ToneMapping, WebGLCoordinateSystem } from "../constants.js"; +import { TypedArray } from "../core/BufferAttribute.js"; import { BufferGeometry } from "../core/BufferGeometry.js"; import { Object3D } from "../core/Object3D.js"; import { Material } from "../materials/Material.js"; @@ -421,10 +422,20 @@ export class WebGLRenderer implements Renderer { y: number, width: number, height: number, - buffer: any, + buffer: TypedArray, activeCubeFaceIndex?: number, ): void; + readRenderTargetPixelsAsync( + renderTarget: WebGLRenderTarget | WebGLRenderTarget, + x: number, + y: number, + width: number, + height: number, + buffer: TypedArray, + activeCubeFaceIndex?: number, + ): Promise; + /** * Copies a region of the currently bound framebuffer into the selected mipmap level of the selected texture. * This region is defined by the size of the destination texture's mip level, offset by the input position. diff --git a/types/three/src/utils.d.ts b/types/three/src/utils.d.ts index 87d63862c..3fda1cfda 100644 --- a/types/three/src/utils.d.ts +++ b/types/three/src/utils.d.ts @@ -1 +1,3 @@ export function createCanvasElement(): HTMLCanvasElement; + +export function probeAsync(gl: WebGLRenderingContext, sync: WebGLSync, interval: number): Promise;