Skip to content

Commit

Permalink
Implement PBR Shaders (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Apr 16, 2022
1 parent bc542d5 commit 76741bf
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Source/Core/Manager/ERS_SceneManager/ERS_SceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,10 @@ void ERS_CLASS_SceneManager::AddPointLight() {
std::shared_ptr<ERS_STRUCT_PointLight> Light = std::make_shared<ERS_STRUCT_PointLight>();

Light->UserDefinedName = "New Point Light";
Light->Ambient = glm::vec3(0.0f);
Light->Diffuse = glm::vec3(0.5f);
Light->Specular = glm::vec3(0.5f);
Light->Color = glm::vec3(0.0f);

Light->RolloffConstant = 1.0f;
Light->RolloffLinear = 0.18f;
Light->RolloffQuadratic = 0.064f;

Light->Intensity = 1.0f;

Scenes_[ActiveScene_]->PointLights.push_back(Light);
Scenes_[ActiveScene_]->IndexSceneObjects();
Expand All @@ -138,9 +135,8 @@ void ERS_CLASS_SceneManager::AddDirectionalLight() {
std::shared_ptr<ERS_STRUCT_DirectionalLight> Light = std::make_shared<ERS_STRUCT_DirectionalLight>();

Light->UserDefinedName = "New Directional Light";
Light->Ambient = glm::vec3(0.0f);
Light->Diffuse = glm::vec3(0.5f);
Light->Specular = glm::vec3(0.5f);
Light->Color = glm::vec3(0.0f);


Scenes_[ActiveScene_]->DirectionalLights.push_back(Light);
Scenes_[ActiveScene_]->IndexSceneObjects();
Expand Down

0 comments on commit 76741bf

Please sign in to comment.