Working with the Blin-Phong lighting. Fixed the symmetry between the normals. Starting working on shadows

This commit is contained in:
MitchellHansen
2017-01-15 22:48:37 -08:00
parent 129e475b15
commit 9a12fba310
3 changed files with 119 additions and 12 deletions

View File

@@ -115,8 +115,8 @@ int main() {
// Light for the currently non functional Bling Phong shader
Light l;
l.direction_cartesian = sf::Vector3f(+1.5f, -1.2f, -0.5f);
l.position = sf::Vector3f(100.0f, 100.0f, 100.0f);
l.direction_cartesian = sf::Vector3f(-0.2f, -0.2f, -1.5f);
l.position = sf::Vector3f(100.0f, 100.0f, 500.0f);
l.rgbi = sf::Vector4f(0.3f, 0.4f, 0.3f, 1.0f);
std::vector<Light> light_vec;