From a415cb1f7cb957f3fa8cb261b35e853a5c3d87b3 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 3 Nov 2024 15:18:46 -0500 Subject: [PATCH] GTAONode: Fix AO with WebGL backend. --- types/three/src/nodes/TSL.d.ts | 1 + types/three/src/nodes/utils/PostProcessingUtils.d.ts | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 types/three/src/nodes/utils/PostProcessingUtils.d.ts diff --git a/types/three/src/nodes/TSL.d.ts b/types/three/src/nodes/TSL.d.ts index 623f11cfc..34354a974 100644 --- a/types/three/src/nodes/TSL.d.ts +++ b/types/three/src/nodes/TSL.d.ts @@ -30,6 +30,7 @@ export * from "./utils/MatcapUVNode.js"; export * from "./utils/MaxMipLevelNode.js"; export * from "./utils/Oscillators.js"; export * from "./utils/Packing.js"; +export * from "./utils/PostProcessingUtils.js"; export * from "./utils/ReflectorNode.js"; export * from "./utils/RemapNode.js"; export * from "./utils/RotateNode.js"; diff --git a/types/three/src/nodes/utils/PostProcessingUtils.d.ts b/types/three/src/nodes/utils/PostProcessingUtils.d.ts new file mode 100644 index 000000000..ebeb25f6d --- /dev/null +++ b/types/three/src/nodes/utils/PostProcessingUtils.d.ts @@ -0,0 +1,8 @@ +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js"; + +export const getViewPosition: ( + screenPosition: NodeRepresentation, + depth: NodeRepresentation, + projectionMatrixInverse: NodeRepresentation, +) => ShaderNodeObject;