Path GraphPretty visualizations for ray tracing algorithms.
Save as SVG
function sampleDir(intersect, ray, scene) => [Vec2]
return [cosineSampleHemisphere(intersect.n)];
function sampleDir(intersect, ray, scene) => [Vec2]