Skip to content

Commit

Permalink
Implement Spot Light Shadows (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Jun 12, 2022
1 parent 594deb9 commit 7046fcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/Loader/ERS_SceneLoader/ERS_SceneLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ ERS_STRUCT_Scene ERS_CLASS_SceneLoader::ProcessScene(YAML::Node RawSceneData, lo
Scene.DirectionalLights[LightIndex]->Intensity = SceneDataNode[i]["Intensity"].as<float>();
}

if (SceneDataNode[i]["MaxDistance"]) {
Scene.DirectionalLights[LightIndex]->MaxDistance = SceneDataNode[i]["MaxDistance"].as<float>();
}

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

0 comments on commit 7046fcb

Please sign in to comment.