Negrini085 / PhotoNim

PhotoNim: a CPU raytracer with BVH optimization based on kmeans clustering
https://negrini085.github.io/PhotoNim/
GNU General Public License v3.0
4 stars 1 forks source link

Polygon #66

Open lorenzoliuzzo opened 4 months ago

lorenzoliuzzo commented 4 months ago

In this PR we aim to create a Polygon ShapeKind. To check for any intersection between a Ray and the polygon we divide it in triangles and check the hit with them.

Thing to do: