---
key: resource/ray-tracing-in-one-weekend
type: resource
id: ray-tracing-in-one-weekend
lang: en
title: Ray Tracing in One Weekend
summary: >-
  Build a small path tracer to understand ray intersections, materials, sampling
  and lighting through your own code.
updatedAt: null
status: active
url: 'https://gamemechanics.pro/en/resources/#resource-ray-tracing-in-one-weekend'
jsonUrl: >-
  https://gamemechanics.pro/api/v1/knowledge/en/resource/ray-tracing-in-one-weekend.json
markdownUrl: >-
  https://gamemechanics.pro/content/knowledge/en/resource/ray-tracing-in-one-weekend.md
aliases: []
tags:
  - book
  - ''
  - engineering
sourceIds:
  - source-622f7b6c5d7f95fd
sources:
  - id: source-622f7b6c5d7f95fd
    title: Ray Tracing in One Weekend
    url: 'https://raytracing.github.io/'
    verifiedAt: null
relations: []
placements: []
supersededBy: []
attributes:
  kind: book
  format: null
  language: en
  authors: 'Peter Shirley, Trevor David Black, Steve Hollasch'
endsAt: null
provenance: >-
  Original editorial recommendation. The external material retains its author’s
  rights.
license: CC-BY-4.0
codeLicense: MIT
attribution: gamemechanics.pro contributors
---
# Ray Tracing in One Weekend

id: ray-tracing-in-one-weekend
type: resource
key: resource/ray-tracing-in-one-weekend
lang: en
status: active
url: https://gamemechanics.pro/en/resources/#resource-ray-tracing-in-one-weekend

Build a small path tracer to understand ray intersections, materials, sampling and lighting through your own code.

## When to use it

Build a small path tracer to understand ray intersections, materials, sampling and lighting through your own code.

## Access

The books and source code are free; the project specifies CC0. This is an educational offline renderer.

## Try it

Use the first book to render a sphere, then add a material and sample accumulation.

## Connected materials


## Sources and provenance

Original editorial recommendation. The external material retains its author’s rights.

- [Ray Tracing in One Weekend](https://raytracing.github.io/) (id: source-622f7b6c5d7f95fd)

CC-BY-4.0 · gamemechanics.pro contributors
