https://github.com/polygonjs/plugin-occlusion
https://github.com/polygonjs/plugin-occlusion
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/polygonjs/plugin-occlusion
- Owner: polygonjs
- License: mit
- Created: 2020-12-28T23:23:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T16:59:49.000Z (over 2 years ago)
- Last Synced: 2025-04-01T19:49:01.953Z (about 1 year ago)
- Language: TypeScript
- Size: 1.22 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Polygonjs Occlusion Plugin
This adds a Occlusion SOP node to the [Polygonjs webgl engine](https://polygonjs.com).
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](https://github.com/polygonjs/example-plugin-occlusion):

# 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:
```js
import {polyPluginOcclusion} from '@polygonjs/plugin-occlusion';
export function configurePolygonjs(poly) {
poly.registerPlugin(polyPluginOcclusion);
}
```