Skip to content

Instantly share code, notes, and snippets.

@mfitton
Created June 26, 2020 19:39
Show Gist options
  • Save mfitton/c6221efe66256898e7426fb760652f3b to your computer and use it in GitHub Desktop.
Save mfitton/c6221efe66256898e7426fb760652f3b to your computer and use it in GitHub Desktop.
blog snippit 1
for i, x in enumerate(np.linspace(S[0], S[2], w)):
for j, y in enumerate(np.linspace(S[1], S[3], h)):
...
# Loop through initial and secondary rays.
while depth < depth_max:
traced = trace_ray(rayO, rayD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment