mirror of
https://github.com/RayTracing/raytracing.github.io.git
synced 2026-03-31 07:20:41 +00:00
1769 Commits
Apr 25, 2025
Apr 24, 2025
Mar 21, 2025
Mar 04, 2025
Resolves #1686
Mar 02, 2025
Change `add` to `and` in Book 2 Section 5.1 Resolves #1683
Feb 25, 2025
Resolves #1681
Jan 07, 2025
Nov 15, 2024
Resolves #1637
Nov 06, 2024
Aug 31, 2024
Aug 29, 2024
Resolves #1628
Aug 28, 2024
This basically implements Peter's original alternative of having spheres always support animation, with static spheres as a special case. In this case, using a ray to represent the sphere center allows for pretty trivial selection of the center position at a given time, and simplifies the code.
Aug 23, 2024
Small improvement to rotate_y::hit() function
The old method had a floating-point weakness in which all three vector components, when small enough, can yield a vector length that underflows to zero, leading to a bogus [+/- infinity, +/- infinity, +/- infinity] result. This change also eliminates the `random_in_unit_sphere()` function, and does everything inside the `random_unit_vector()` function, which allows us to compute the vector length only once and then re-use it for normalization. Resolves #1606
Resolves #1529
Resolves #1612
Resolves #819
It used to be that the `translate` and `rotate_y` classes managed rotations of `aabb`. This change moves the `aabb` transform code into the `aabb` class itself. Reference #819
This simplifies the `material::emitted()` function. Resolves #1605
Aug 22, 2024
Resolves #1484
Aug 21, 2024
Resolves #1607
Aug 19, 2024
The prior version used a forward declaration of `hit_record`, which was insufficient since hittable.h lines referenced members of `hit_record`, and was unnecessary because hittable.h was included before material.h in practice. For this specific code, the inclusion is unnecessary, but is proper form. Resolves #1608
Aug 18, 2024
Resolves #1603
Aug 16, 2024
Resolves #1600
Aug 15, 2024
Aug 04, 2024
- Bigger font for print version code listings. - More compact line height for print + online code listings. Resolves #1595