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 76c378b commit 59db8b7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Source/Core/Loader/ERS_SceneLoader/ERS_SceneLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,13 @@ ERS_STRUCT_Scene ERS_CLASS_SceneLoader::ProcessScene(YAML::Node RawSceneData, lo
}


Scene.PointLights[LightIndex]->Color = glm::vec3(
SceneDataNode[i]["ColorRed"].as<float>(),
SceneDataNode[i]["ColorGreen"].as<float>(),
SceneDataNode[i]["ColorBlue"].as<float>()
);

if (SceneDataNode[i]["ColorRed"] && SceneDataNode[i]["ColorGreen"] && SceneDataNode[i]["ColorBlue"]) {
Scene.PointLights[LightIndex]->Color = glm::vec3(
SceneDataNode[i]["ColorRed"].as<float>(),
SceneDataNode[i]["ColorGreen"].as<float>(),
SceneDataNode[i]["ColorBlue"].as<float>()
);
}

Scene.PointLights[LightIndex]->Pos = glm::vec3(
SceneDataNode[i]["PosX"].as<float>(),
Expand Down

0 comments on commit 59db8b7

Please sign in to comment.