@types/three
Version:
TypeScript definitions for three
33 lines (27 loc) • 822 B
TypeScript
import { ShaderNodeObject } from "three/tsl";
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
declare class TransitionNode extends TempNode {
textureNodeA: TextureNode;
textureNodeB: TextureNode;
mixTextureNode: TextureNode;
mixRatioNode: Node;
thresholdNode: Node;
useTextureNode: Node;
constructor(
textureNodeA: TextureNode,
textureNodeB: TextureNode,
mixTextureNode: TextureNode,
mixRatioNode: Node,
thresholdNode: Node,
useTextureNode: Node,
);
}
export default TransitionNode;
export const transition: (
node: Node,
nodeB: Node,
mixTexture: Node,
mixRatio: UniformNode<number>,
threshold: UniformNode<number>,
useTexture: UniformNode<number>,
) => ShaderNodeObject<TransitionNode>;