Type Position Scale Rotation Material

Camera

Shape

Light

Name Outline Color Fill Color Light Links

Save as SVG
function sampleDir(intersect, ray, scene) => [Vec2]
return [cosineSampleHemisphere(intersect.n)];