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 f89797a commit 925b403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMap(ERS_STRUCT_SpotLight* Light, ERS_STRUCT
// Calculate Project, View, Space Matrices

float AspectRatio = DepthTextureArrayWidth_ / DepthTextureArrayHeight_;
float FOV = glm::radians(Light->CutOff) * 2;// * (0.01745329));
float FOV = glm::radians(130.0f);// * (0.01745329));
ObjectProjection = glm::perspective(FOV, AspectRatio, NearPlane, FarPlane); // Perspective models regular light source


Expand Down

0 comments on commit 925b403

Please sign in to comment.