diff --git a/three.js b/three.js index 5d5ebcff9..09860b8ff 160000 --- a/three.js +++ b/three.js @@ -1 +1 @@ -Subproject commit 5d5ebcff9f94e660934bd7741e26492d53e33d0c +Subproject commit 09860b8ff9f852a94f0cf50bea6c547598fc43d3 diff --git a/types/three/src/nodes/utils/RTTNode.d.ts b/types/three/src/nodes/utils/RTTNode.d.ts index 6d12d2dfc..40ada6e45 100644 --- a/types/three/src/nodes/utils/RTTNode.d.ts +++ b/types/three/src/nodes/utils/RTTNode.d.ts @@ -2,6 +2,11 @@ import { RenderTarget, RenderTargetOptions } from "../../core/RenderTarget.js"; import TextureNode from "../accessors/TextureNode.js"; import Node from "../core/Node.js"; +export interface RTTNodeOptions extends RenderTargetOptions { + autoUpdate?: boolean | undefined; // true + resolutionScale?: number | undefined; // 1 +} + declare class RTTNode extends TextureNode { readonly isRTTNode: true; @@ -14,7 +19,7 @@ declare class RTTNode extends TextureNode { textureNeedsUpdate: boolean; autoUpdate: boolean; - constructor(node: Node, width?: number | null, height?: number | null, options?: RenderTargetOptions); + constructor(node: Node, width?: number | null, height?: number | null, options?: RTTNodeOptions); get autoResize(): boolean; @@ -31,11 +36,11 @@ export const rtt: ( node: Node, width?: number | null, height?: number | null, - options?: RenderTargetOptions, + options?: RTTNodeOptions, ) => RTTNode; export const convertToTexture: ( node: Node, width?: number | null, height?: number | null, - options?: RenderTargetOptions, + options?: RTTNodeOptions, ) => RTTNode;