Merge branch 'master' of https://github.com/sippeangelo/Escape-the-Dawn
This commit is contained in:
@@ -83,6 +83,17 @@ void Systems::LevelGenerationSystem::SpawnObstacle()
|
|||||||
powerUp->Duration = 5.f;
|
powerUp->Duration = 5.f;
|
||||||
|
|
||||||
model->ModelFile = "Models/powerup.obj";
|
model->ModelFile = "Models/powerup.obj";
|
||||||
|
|
||||||
|
auto lightEnt = m_World->CreateEntity(ent);
|
||||||
|
transform = m_World->AddComponent<Components::Transform>(lightEnt, "Transform");
|
||||||
|
transform->Position = glm::vec3(0.0f, 2.0f, 2.5f);
|
||||||
|
auto light = m_World->AddComponent<Components::PointLight>(lightEnt, "PointLight");
|
||||||
|
light->Specular = glm::vec3(0.1f, 0.1f, 0.1f);
|
||||||
|
light->Diffuse = glm::vec3(0.05f, 0.36f, 1.f);
|
||||||
|
light->constantAttenuation = 0.f;
|
||||||
|
light->linearAttenuation = 1.0f;
|
||||||
|
light->quadraticAttenuation = 0.f;
|
||||||
|
light->spotExponent = 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Put it below ground level
|
// Put it below ground level
|
||||||
|
|||||||
Reference in New Issue
Block a user