1.5.46 • Published 5 months ago

@polygonjs/plugin-trace v1.5.46

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Polygonjs Trace Plugin

This adds 1 node to trace images to lines in the Polygonjs webgl engine.

  • Sop/Trace: converts an image to lines

See example scene:

scene with trace

Install

Import the plugin:

yarn add @polygonjs/plugin-trace

And register the plugin in the function configurePolygonjs in the file PolyConfig.js so that the node can be accessible in both the editor and your exported scene:

import {polyPluginTrace} from '@polygonjs/plugin-trace';

export function configurePolygonjs(poly) {
	poly.registerPlugin(polyPluginTrace);
}