Skip to content

Commit

Permalink
Implement Point Light Shadows (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Jun 21, 2022
1 parent 96a108b commit cf5a411
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMap(ERS_STRUCT_PointLight* Light, ERS_STRUC
DepthShader->SetVec3("LightPos", Light->Pos);
DepthShader->SetFloat("FarPlane", Light->MaxDistance);
DepthShader->SetInt("ShadowMapLayer", Light->DepthMap.DepthMapTextureIndex);
std::cout<<Light->DepthMap.DepthMapTextureIndex<<std::endl;
Renderer_->RenderSceneNoTextures(TargetScene, DepthShader);

}
Expand Down Expand Up @@ -499,6 +500,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMaps(ERS_STRUCT_Shader* DepthShader, ERS_S
}

// Handle Point Lights
std::cout<<"Point lights\n";
for (unsigned int i = 0; i < ActiveScene->PointLights.size(); i++) {

// Extract Struct
Expand Down

0 comments on commit cf5a411

Please sign in to comment.