Skip to content

Commit 06b33f6

Browse files
authored
Merge pull request #456 from RayTracing/fix-421
book1: Update highlighting for new headers
2 parents 02ee90e + 2cd22e5 commit 06b33f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
If we take that math and hard-code it into our program, we can test it by coloring red any pixel
560560
that hits a small sphere we place at -1 on the z-axis:
561561

562-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
562+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
563563
bool hit_sphere(const vec3& center, double radius, const ray& r) {
564564
vec3 oc = r.origin() - center;
565565
auto a = dot(r.direction(), r.direction());
@@ -568,6 +568,7 @@
568568
auto discriminant = b*b - 4*a*c;
569569
return (discriminant > 0);
570570
}
571+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
571572

572573

573574
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
@@ -1094,11 +1095,12 @@
10941095
<div class='together'>
10951096
And the new main:
10961097

1097-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
1098+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
10981099
#include "rtweekend.h"
10991100

11001101
#include "hittable_list.h"
11011102
#include "sphere.h"
1103+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
11021104

11031105
#include <iostream>
11041106

0 commit comments

Comments
 (0)