-
Couldn't load subscription status.
- Fork 951
Description
In the current context, ray_color(scattered, ...) , meaning the subscript
double scattering_pdf(const ray& r_in, const hit_record& rec, const ray& scattered)
const override {
auto cos_theta = dot(rec.normal, unit_vector(scattered.direction()));
return cos_theta < 0 ? 0 : cos_theta/pi;
}However, from the context and code, it seems that
Am I understanding this correctly? Should the notation be revised for clarity?