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 9fca5ca commit 7e3724a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,7 @@ void ERS_CLASS_DepthMaps::UpdateDepthMaps(ERS_STRUCT_Shader* DepthShader, ERS_S
}

// Handle Point Lights
std::cout<<"Point lights\n";
glBindFramebuffer(GL_FRAMEBUFFER, CubemapFBO_);//Light->DepthMap.FrameBufferObjectID);
glBindFramebuffer(GL_FRAMEBUFFER, CubemapFBO_);
glClear(GL_DEPTH_BUFFER_BIT);
for (unsigned int i = 0; i < ActiveScene->PointLights.size(); i++) {

Expand Down

0 comments on commit 7e3724a

Please sign in to comment.