Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion three.js
11 changes: 8 additions & 3 deletions types/three/src/nodes/utils/RTTNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand All @@ -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;
Loading