This repository shows how to use the Occlusion Plugin for the WebGL engine Polygonjs.
This plugin adds a node SOP/Occlusion
which adds an occlusion attribute to a geometry (downloaded from threedscans), which in turn can be used in the material builder.
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.
yarn && yarn run snowpack dev
and open your browser at:
http://localhost:8080