Unity ComputeShader implementation of BVH(Bounding Volume Hierarchy) based mesh hit checking.
Unity ComputeShader implementation of BVH(Bounding Volume Hierarchy) based mesh hit checking.
Add the following address to UnitPackageManager.
https://github.com/fuqunaga/ComputeShaderBVHMeshHit.git?path=/Packages/ComputeShaderBVHMeshHit
meshObjectRoot
object.BvhHelperBehaviour.SetBuffersToComputeShader()
.#include "Packages/ga.fuquna.computeshaderbvhmeshhit/Bvh.hlsl"
TraverseBvh()
to detect a mesh hit.