https://github.com/polygonjs/example-plugin-occlusion
https://github.com/polygonjs/example-plugin-occlusion
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/polygonjs/example-plugin-occlusion
- Owner: polygonjs
- Created: 2021-01-27T19:35:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T17:10:31.000Z (over 2 years ago)
- Last Synced: 2025-04-01T19:49:01.494Z (about 1 year ago)
- Language: TypeScript
- Size: 51.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Polygonjs Plugin Occlusion Example
This repository shows how to use the [Occlusion Plugin](https://github.com/polygonjs/plugin-occlusion) for the WebGL engine [Polygonjs](https://github.com/polygonjs/polygonjs).
This plugin adds a node `SOP/Occlusion` which adds an occlusion attribute to a geometry (downloaded from [threedscans](http://threedscans.com/)), which in turn can be used in the material builder.

## Open the scene in the WebGL editor
`yarn && yarn polygon`
and open your browser at:
`http://localhost:8091?scene=default`
This will open the scene saved in this repo. It is a simple scene with a few geometry, whose occlusion is added via the SOP/Occlusion node.

## Open the export scene without the editor
`yarn && yarn run snowpack dev`
and open your browser at:
`http://localhost:8080`