@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
7 lines (6 loc) • 336 B
JavaScript
;
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;
}