UNPKG

@types/three

Version:
42 lines (26 loc) 1.5 kB
import Node from "../core/Node.js"; declare class ViewportDepthNode extends Node<"float"> { scope: ViewportDepthNodeScope; valueNode: Node; readonly isViewportDepthNode: true; constructor(scope: ViewportDepthNodeScope, valueNode?: Node | null); static DEPTH_BASE: "depthBase"; static DEPTH: "depth"; static LINEAR_DEPTH: "linearDepth"; } export type ViewportDepthNodeScope = | typeof ViewportDepthNode.DEPTH_BASE | typeof ViewportDepthNode.DEPTH | typeof ViewportDepthNode.LINEAR_DEPTH; export default ViewportDepthNode; export const viewZToOrthographicDepth: (viewZ: Node, near: Node, far: Node) => Node<"float">; export const viewZToReversedOrthographicDepth: (viewZ: Node, near: Node, far: Node) => Node<"float">; export const orthographicDepthToViewZ: (depth: Node, near: Node, far: Node) => Node<"float">; export const viewZToPerspectiveDepth: (viewZ: Node, near: Node, far: Node) => Node<"float">; export const viewZToReversedPerspectiveDepth: (viewZ: Node, near: Node, far: Node) => Node<"float">; export const perspectiveDepthToViewZ: (depth: Node, near: Node, far: Node) => Node<"float">; export const viewZToLogarithmicDepth: (viewZ: Node, near: Node, far: Node) => Node<"float">; export const logarithmicDepthToViewZ: (depth: Node, near: Node, far: Node) => Node<"float">; export const depth: ViewportDepthNode; export const linearDepth: (valueNode?: Node | null) => ViewportDepthNode; export const viewportLinearDepth: ViewportDepthNode;