@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
33 lines (32 loc) • 1.75 kB
JavaScript
;
import { CATEGORY_SOP } from "./Category";
import { ActorSopNode } from "../../../nodes/sop/Actor";
import { AttribCreateSopNode } from "../../../nodes/sop/AttribCreate";
import { BoxSopNode } from "../../../nodes/sop/Box";
import { CodeSopNode } from "../../../nodes/sop/Code";
import { CopySopNode } from "../../../nodes/sop/Copy";
import { MaterialSopNode } from "../../../nodes/sop/Material";
import { PlaneSopNode } from "../../../nodes/sop/Plane";
import { SphereSopNode } from "../../../nodes/sop/Sphere";
import { ActorsNetworkSopNode } from "../../../nodes/sop/ActorsNetwork";
import { EventsNetworkSopNode } from "../../../nodes/sop/EventsNetwork";
import { MaterialsNetworkSopNode } from "../../../nodes/sop/MaterialsNetwork";
import { BVHSopOperation } from "../../../operations/sop/BVH";
import { BVHVisualizerSopOperation } from "../../../operations/sop/BVHVisualizer";
export class SopRegister {
static run(poly) {
poly.registerOperation(BVHSopOperation);
poly.registerOperation(BVHVisualizerSopOperation);
poly.registerNode(ActorSopNode, CATEGORY_SOP.ADVANCED);
poly.registerNode(AttribCreateSopNode, CATEGORY_SOP.ATTRIBUTE);
poly.registerNode(BoxSopNode, CATEGORY_SOP.PRIMITIVES);
poly.registerNode(CodeSopNode, CATEGORY_SOP.ADVANCED);
poly.registerNode(CopySopNode, CATEGORY_SOP.MODIFIER);
poly.registerNode(MaterialSopNode, CATEGORY_SOP.RENDER);
poly.registerNode(PlaneSopNode, CATEGORY_SOP.PRIMITIVES);
poly.registerNode(SphereSopNode, CATEGORY_SOP.PRIMITIVES);
poly.registerNode(ActorsNetworkSopNode, CATEGORY_SOP.NETWORK);
poly.registerNode(EventsNetworkSopNode, CATEGORY_SOP.NETWORK);
poly.registerNode(MaterialsNetworkSopNode, CATEGORY_SOP.NETWORK);
}
}