mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
calculate ambient, diffuse and specular
This commit is contained in:
parent
bb8819013c
commit
27bdd95fa6
5 changed files with 21 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue