Skip to content

Commit ed4ff9e

Browse files
committed
TRAANode: New TRAA implementation.
1 parent 0cca815 commit ed4ff9e

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ShaderNodeObject } from "three/tsl";
2+
import { Camera, Node, TempNode, TextureNode } from "three/webgpu";
3+
4+
declare class TRAANode extends TempNode {
5+
readonly isTRAANode: true;
6+
7+
beautyNode: TextureNode;
8+
depthNode: TextureNode;
9+
velocityNode: TextureNode;
10+
camera: Camera;
11+
12+
constructor(beautyNode: TextureNode, depthNode: TextureNode, velocityNode: TextureNode, camera: Camera);
13+
}
14+
15+
export default TRAANode;
16+
17+
export const traa: (
18+
beautyNode: Node,
19+
depthNode: TextureNode,
20+
velocityNode: TextureNode,
21+
camera: Camera,
22+
) => ShaderNodeObject<TRAANode>;

types/three/examples/jsm/tsl/display/TRAAPassNode.d.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

types/three/src/nodes/utils/RTTNode.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export interface RTTNodeOptions {
99
}
1010

1111
declare class RTTNode extends TextureNode {
12+
readonly isRTTNode: true;
13+
1214
node: Node;
1315
width: number | null;
1416
height: number | null;

0 commit comments

Comments
 (0)