UNPKG

@polygonjs/polygonjs

Version:

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

15 lines (12 loc) 281 B
/** * cycles a value * * */ import CycleMethods from './gl/cycle.glsl'; import {MathFunctionArg3Factory} from './_Math_Arg3'; export class CycleGlNode extends MathFunctionArg3Factory('cycle', { in: ['in', 'min', 'max'], default: {max: 1}, functions: [CycleMethods], }) {}