Nearly Perpendicular Macaroons

    @polygonjs/plugin-occlusion

    1.1.257 • Public • Published

    Polygonjs Occlusion Plugin

    This adds a Occlusion SOP node to the Polygonjs webgl engine.

    This wraps the work done in https://github.com/wwwtyro/geo-ambient-occlusion into a node that can be used with all the other nodes available on Polygonjs.

    See example scene:

    geometries with occlusion added

    Install

    Import the plugin:

    yarn add @polygonjs/plugin-occlusion

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

    import {polyPluginOcclusion} from '@polygonjs/plugin-occlusion/dist/src/index';
    
    export function configurePolygonjs(poly) {
    	poly.registerPlugin(polyPluginOcclusion);
    }

    Install

    npm i @polygonjs/plugin-occlusion

    DownloadsWeekly Downloads

    18

    Version

    1.1.257

    License

    MIT

    Unpacked Size

    5.47 MB

    Total Files

    34

    Last publish

    Collaborators

    • polygonjs