Skip to content

missing material.h update in Section 4 #1258

@hanseuljun

Description

@hanseuljun

At the end of Section 4.2, it is assumed class lambertian has a constructor accepting a texture. But up to this point, such constructor is not introduced to lambertian.

Line 36, 37, 48, 52, 53 should be updated to that of material.h at the below link. This update converted albedo from a instance of color to texture.

https://github.com/RayTracing/raytracing.github.io/blob/95975fe79a13f95d078c82dbee1bf38b7177589e/src/TheNextWeek/material.h#L34C10-L34C10

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions