From ee3b665441b2f83041416098049cc16b6b63d942 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sun, 17 Apr 2022 20:50:22 +0800 Subject: Fix: rename object::material() to object::get_material. Make it compile on Debian 11 GCC. --- hitlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hitlist.h') diff --git a/hitlist.h b/hitlist.h index ab9cca3..76832db 100644 --- a/hitlist.h +++ b/hitlist.h @@ -86,7 +86,7 @@ public: return pixel::from_normalized(nv); #endif #ifdef T_DIFFUSE - const auto &materi = hit_obj->material(); + const auto &materi = hit_obj->get_material(); if (materi.scatter(r, *hit_obj, hit_t, ruvg)) { TRACELOG(" scattered ray: [%-10f,%-10f,%-10f], decay=[%-10f,%-10f,%-10f]\n", r.direction().x, r.direction().y, r.direction().z, -- cgit v1.2.3