UNPKG

@polygonjs/polygonjs

Version:

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

28 lines (27 loc) 1.04 kB
/** * switches between different input values based on an integer input * * @remarks * * For simple use cases where you'd like to switch between 2 values only, use the [gl/TwoWaySwitch](/docs/nodes/gl/TwoWaySwitch) instead. * * * */ import { TypedGlNode } from './_Base'; import { GlConnectionPointType } from '../utils/io/connections/Gl'; import { ShadersCollectionController } from './code/utils/ShadersCollectionController'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class SwitchParamsConfig extends NodeParamsConfig { } export declare class SwitchGlNode extends TypedGlNode<SwitchParamsConfig> { paramsConfig: SwitchParamsConfig; static type(): string; static INPUT_INDEX: string; initializeNode(): void; protected _gl_input_name(index: number): string; protected _expected_input_types(): GlConnectionPointType[]; protected _expected_output_types(): GlConnectionPointType[]; setLines(shaders_collection_controller: ShadersCollectionController): void; } export {};