{"id":21996200,"url":"https://github.com/mwcz/rust-raytracer-weekend","last_synced_at":"2025-04-30T17:42:57.367Z","repository":{"id":51613874,"uuid":"337917074","full_name":"mwcz/rust-raytracer-weekend","owner":"mwcz","description":"My Rust implementation of Ray Tracing in One Weekend by Peter Shirley.","archived":false,"fork":false,"pushed_at":"2023-03-29T03:36:25.000Z","size":8041,"stargazers_count":24,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T11:52:33.207Z","etag":null,"topics":["ray-tracer","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mwcz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-11T03:11:17.000Z","updated_at":"2025-04-01T20:21:06.000Z","dependencies_parsed_at":"2024-11-29T21:33:39.908Z","dependency_job_id":null,"html_url":"https://github.com/mwcz/rust-raytracer-weekend","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcz%2Frust-raytracer-weekend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcz%2Frust-raytracer-weekend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcz%2Frust-raytracer-weekend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mwcz%2Frust-raytracer-weekend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mwcz","download_url":"https://codeload.github.com/mwcz/rust-raytracer-weekend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251753184,"owners_count":21638253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ray-tracer","rust"],"created_at":"2024-11-29T21:21:00.045Z","updated_at":"2025-04-30T17:42:57.347Z","avatar_url":"https://github.com/mwcz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust ray tracer\n\nI'm learning [Rust](https://www.rust-lang.org/) and decided to tackle the classic [Ray Tracing in One Weekend](https://raytracing.github.io/) project by Peter Shirley.  All the algorithms and general code structure are from that book, just translated the examples from C++ into Rust.  I haven't written a ray tracer before, but I hope to reimplement it in a few other languages after Rust, like [Zig](https://ziglang.org/) and the language I know best, JavaScript, just for a performance comparison.\n\nIt supports command-line and WebAssembly.\n\n## Blog posts\n\n - [Shaking Off the Rust 1: Ray Tracing in One Weekend](https://clayto.com/2021/02/shaking-off-the-rust-1-ray-tracing-in-one-weekend/)\n - [Shaking Off the Rust 2: Ray Tracing in WebAssembly](https://clayto.com/2021/07/shaking-off-the-rust-2-ray-tracing-in-webassembly/)\n\n## Example renders\n\nHere are some renders, some are to document subtle bugs, and some are just to celebrate first successful renders with new features!\n\n\n![](cli/renders/raytrace-1616044535.567072104s.final-book-image-render-15hours.jpg)\n![](./cli/renders/raytrace-1616444535.747858648s.png)\n![first hires reflective](cli/renders/raytrace-1615001082.58049436s.first-hires-reflective.jpg)\n![fixed metal reflectance wooooo](cli/renders/raytrace-1614999320.758953735s.fixed-metal-reflectance-wooooo.jpg)\n![first render with materials and attenuation](cli/renders/raytrace-1614997695.127485347s.first-render-with-materials-and-attenuation.jpg)\n![first render with materials](cli/renders/raytrace-1614997198.513695391s.first-render-with-materials.jpg)\n![first-hires-render-with-clean-shadows](cli/renders/raytrace-1614011092.297087907s.first-hires-render-with-clean-shadows.png)\n![5-raycolor-multiplier](cli/renders/raytrace-1614010469.65369906s.found-missing-0.5-raycolor-multiplier.png)\n![shadow-acnestriations-caused-by-shadow-acne](cli/renders/raytrace-1614010364.320713325s.shadow-acnestriations-caused-by-shadow-acne.png)\n![bad-fix-for-shadow-acne](cli/renders/raytrace-1613672941.092348252s.bad-fix-for-shadow-acne.jpg)\n![gamma-correction](cli/renders/raytrace-1613672318.912683239s.gamma-correction.jpg)\n![24m-striations](cli/renders/raytrace-1613668468.833009814s.24m-striations.jpg)\n![hires-bounces-with-striations](cli/renders/raytrace-1613664127.18419605s.hires-bounces-with-striations.jpg)\n![first-with-bounces-yaaaaaay](cli/renders/raytrace-1613660537.637976283s.first-with-bounces-yaaaaaay.jpg)\n![now-with-AA](cli/renders/raytrace-1613423760.281383766s.now-with-AA.png)\n![oh-just-flubbed-normal-colors](cli/renders/raytrace-1613236717.883664395s.oh-just-flubbed-normal-colors.png)\n![oh-just-noramsl](cli/renders/raytrace-1613156168.617724519s.oh-just-noramsl.png)\n![ahhhh-the-blood-sun](cli/renders/raytrace-1613154936.045811774s.ahhhh-the-blood-sun.png)\n![ahh-a-nice-sunny-day](cli/renders/raytrace-1613153282.619191059s.ahh-a-nice-sunny-day.png)\n![first-render](cli/renders/raytrace-1612814365.15628162s.first-render.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwcz%2Frust-raytracer-weekend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmwcz%2Frust-raytracer-weekend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmwcz%2Frust-raytracer-weekend/lists"}