calculate ambient, diffuse and specular

This commit is contained in:
Shuo Feng 2024-02-29 01:16:49 -05:00
parent bb8819013c
commit 27bdd95fa6
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
5 changed files with 21 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Vector3f Geometry::ambient() const { return ca; }
float Geometry::coefDiffuse() const { return kd; }
float Geometry::coefSpecular() const { return ks; }
float Geometry::coefAmbient() const { return ka; }
float Geometry::getPhong() const { return phong; }
void Geometry::setTransform(const Matrix4f &transform) {
this->transform = transform;