Skip to content

Instantly share code, notes, and snippets.

void Render(Image finalImage, count numSamples) {
foreach (pixel in finalImage) {
foreach (i in numSamples) {
Ray r = camera.generateRay(pixel);
pixel.color += TracePath(r, 0);
}
pixel.color /= numSamples; // Average samples.
}
}
@millerjohnp
millerjohnp / keybase.md
Created February 12, 2019 17:15
keybase verification

Keybase proof

I hereby claim:

  • I am millerjohnp on github.
  • I am jpmiller (https://keybase.io/jpmiller) on keybase.
  • I have a public key ASDdpRgLMz6Bpgrw7qPUeNquZxpPaHDd3TcUy58Hov1m2Ao

To claim this, I am signing this object: