UNPKG

@types/three

Version:
33 lines (27 loc) 884 B
import { NodeRepresentation, 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: NodeRepresentation, nodeB: NodeRepresentation, mixTexture: NodeRepresentation, mixRatio: UniformNode<number>, threshold: UniformNode<number>, useTexture: UniformNode<number>, ) => ShaderNodeObject<TransitionNode>;