Initial commit: Final state of the master project

This commit is contained in:
2017-09-16 09:41:37 +02:00
commit 696180d43b
832 changed files with 169717 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#include "../core/Defines.h"
#include "PointLight.h"
PointLight::PointLight() {
SetPosition(0.0);
}
PointLight::~PointLight() {
}
const glm::vec3& PointLight::GetPosition() const
{
return mPosition;
}
void PointLight::SetPosition(const glm::vec3& pos)
{
mPosition = pos;
}
void PointLight::SetPosition(double seed) {
double theta = mPi * (.65 + .25 * sin(.9*seed));
double phi = m2Pi * (.4*seed - int(.4*seed));
double x = 500.0 * sin(theta) * cos(phi);
double y = 500.0 * cos(theta);
double z = 500.0 * sin(theta) * sin(phi);
mPosition = glm::vec3(x, y, z);
}