Skip to content

Commit 10e3ac5

Browse files
committed
Fix change highlighting isotropic scattering
Resolves #1313
1 parent 112ac19 commit 10e3ac5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

books/RayTracingTheNextWeek.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4060,8 +4060,8 @@
40604060

40614061
bool scatter(const ray& r_in, const hit_record& rec, color& attenuation, ray& scattered)
40624062
const override {
4063-
scattered = ray(rec.p, random_unit_vector(), r_in.time());
40644063
attenuation = tex->value(rec.u, rec.v, rec.p);
4064+
scattered = ray(rec.p, random_unit_vector(), r_in.time());
40654065
return true;
40664066
}
40674067

books/RayTracingTheRestOfYourLife.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,8 +2332,8 @@
23322332
bool scatter(
23332333
const ray& r_in, const hit_record& rec, color& attenuation, ray& scattered, double& pdf
23342334
) const override {
2335-
attenuation = tex->value(rec.u, rec.v, rec.p);
23362335
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++
2336+
attenuation = tex->value(rec.u, rec.v, rec.p);
23372337
scattered = ray(rec.p, random_unit_vector(), r_in.time());
23382338
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C++ highlight
23392339
pdf = 1 / (4 * pi);

0 commit comments

Comments
 (0)