couch/core/Light.cpp

22 lines
576 B
C++
Raw Normal View History

2021-01-21 15:26:39 -06:00
#include "Light.h"
Name Light::GetType() const {return "Light";}
Name DirectionalLight::GetType() const {return "DirectionalLight";}
DirectionalLight::DirectionalLight() {
this->direction = Vector3(0.0f);
this->color = Vector3(0.0f);
this->ambient = 0.0f;
this->diffuse = 0.0f;
this->specular = 0.0f;
}
DirectionalLight::DirectionalLight(Vector3 direction, Vector3 color, cfloat ambient, cfloat diffuse, cfloat specular) {
this->direction = direction;
this->color = color;
this->ambient = ambient;
this->diffuse = diffuse;
this->specular = specular;
}