Defucked defucked rendering

This commit is contained in:
2014-05-07 22:34:38 +02:00
parent b1b60bce61
commit 62ca923821
13 changed files with 207 additions and 113 deletions
+3 -3
View File
@@ -230,8 +230,8 @@ void GameWorld::Initialize()
auto transform = AddComponent<Components::Transform>(Light, "Transform");
transform->Position = glm::vec3(20+ 10*cos(i), 3, 0 + 10*sin(i));
auto light = AddComponent<Components::PointLight>(Light, "PointLight");
light->Diffuse = glm::vec3(94.f/255.f, 227.f/255.f, 230.f/255.f);
light->Specular = glm::vec3(94.f/255.f, 227.f/255.f, 230.f/255.f);
light->Diffuse = glm::vec3(0.5f, 0.5f, 1.0f);
light->Specular = glm::vec3(1.0f, 1.0f, 1.0f);
light->specularExponent = 1.0f;
auto model = AddComponent<Components::Model>(Light, "Model");
model->ModelFile = "Models/Placeholders/PhysicsTest/PointLight.obj";
@@ -243,7 +243,7 @@ void GameWorld::Initialize()
auto cube = CreateEntity();
auto transform = AddComponent<Components::Transform>(cube, "Transform");
transform->Position = glm::vec3(20, 10 + i*2, 0);
transform->Scale = glm::vec3(1);
//transform->Scale = glm::vec3(1);
transform->Orientation = glm::quat(glm::vec3(0.0f, 0.0f, 0.0f));
auto model = AddComponent<Components::Model>(cube, "Model");
model->ModelFile = "Models/Placeholders/PhysicsTest/Cube2.obj";