UNPKG

@polygonjs/polygonjs

Version:

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

7 lines (6 loc) 336 B
"use strict"; import { GlConnectionPointType } from "../../../utils/io/connections/Gl"; export function glConnectionType(connection) { const connectionPoints = connection.nodeSrc().io.outputs.namedOutputConnectionPoints(); return connectionPoints ? connectionPoints[connection.outputIndex()].type() : GlConnectionPointType.FLOAT; }