@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
24 lines (19 loc) • 524 B
text/typescript
/**
* outputs a complement (1-x)
*
*
*/
import {BaseNodeGlMathFunctionArg1GlNode} from './_BaseMathFunction';
import ComplementMethods from './gl/complement.glsl';
import {FunctionGLDefinition} from './utils/GLDefinition';
export class ComplementGlNode extends BaseNodeGlMathFunctionArg1GlNode {
static override type() {
return 'complement';
}
override gl_method_name(): string {
return 'complement';
}
override gl_function_definitions() {
return [new FunctionGLDefinition(this, ComplementMethods)];
}
}