Raytracing Geometries in 3D Rendering(andeplane.github.io) |
Raytracing Geometries in 3D Rendering(andeplane.github.io) |
If you are able to render many torus efficiently in the shader, let me know!
Same way as anything else surely? Acceleration structures. Fit an oriented bounding box around each torus, add them as custom geo to the acceleration structure API.