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 e3c373f commit 4ac7fe2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/Loader/ERS_SceneLoader/ERS_SceneLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ ERS_STRUCT_Scene ERS_CLASS_SceneLoader::ProcessScene(YAML::Node RawSceneData, lo
if (SceneDataNode[i]["Intensity"]) {
Scene.SpotLights[LightIndex]->Intensity = SceneDataNode[i]["Intensity"].as<float>();
}
if (SceneDataNode[i]["MaxDistance"]) {
Scene.SpotLights[LightIndex]->MaxDistance = SceneDataNode[i]["MaxDistance"].as<float>();
}
Scene.SpotLights[LightIndex]->CutOff = SceneDataNode[i]["CutOff"].as<float>();
Scene.SpotLights[LightIndex]->Rolloff = SceneDataNode[i]["RollOff"].as<float>();

Expand Down

0 comments on commit 4ac7fe2

Please sign in to comment.