From ecceb129ac867c74d80c0aad9eb4b5d98da15e76 Mon Sep 17 00:00:00 2001 From: f478ccf2 <115742507+f478ccf2@users.noreply.github.com> Date: Wed, 4 Dec 2024 14:36:05 -0500 Subject: [PATCH] Update ambient_light.cpp --- ambient_light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambient_light.cpp b/ambient_light.cpp index dfb7860..01b3890 100755 --- a/ambient_light.cpp +++ b/ambient_light.cpp @@ -7,7 +7,7 @@ ambient_light::ambient_light(const color &p_col) :col(p_col){} color ambient_light::calculate_color(const point3d &p_position, const point3d &p_normal) const{ - return this->col; + return color::from(this->col->r, this->col->g, this->col->b, this->col->a & 100); }