Skip to content

bruvduroiu/raytracing.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracing in One Weekend (in Zig)

Following Shirley, Black & Hollasch's Ray Tracing in One Weekend Course

...but in zig.

Anti-aliasing

To fix the jagged image, we implement anti-aliasing, using a point-sampling technique.

Raytraced antialiased sphere

Diffuse materials

Diffuse materials scatter (or even absorb) light in unexpected ways. Implement this random scattering by using a rejection algorithm that gives us a random reflection that still is on the surface of the hemisphere.

Raytraced diffuse material sphere

About

Raytracing in one weekend... but in Zig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages