UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

29 lines (28 loc) 1.09 kB
/** * outputs 1 of the 2 inputs based on a boolean input * * @remarks * * This node is frequently used with the [gl/Compare](/docs/nodes/gl/Compare). * * For more involved use cases where you'd like to switch between more than 2 values, use the [gl/Switch](/docs/nodes/gl/Switch) instead. * */ import { ParamlessTypedGlNode } from './_Base'; declare enum TwoWaySwitchGlNodeInputName { CONDITION = "condition", IF_TRUE = "ifTrue", IF_FALSE = "ifFalse" } import { GlConnectionPointType } from '../utils/io/connections/Gl'; import { ShadersCollectionController } from './code/utils/ShadersCollectionController'; export declare class TwoWaySwitchGlNode extends ParamlessTypedGlNode { static type(): string; initializeNode(): void; protected _gl_input_name(index: number): TwoWaySwitchGlNodeInputName; protected _gl_output_name(): string; protected _expected_input_types(): GlConnectionPointType[]; protected _expected_output_types(): GlConnectionPointType[]; setLines(shaders_collection_controller: ShadersCollectionController): void; } export {};