Open xchhuang opened 5 years ago
The issue only occurs on a retina display (https://github.com/JoeyDeVries/LearnOpenGL/issues/98#issuecomment-364618401). You'll need to use glfwGetFramebufferSize(window, &width, &height)
to get the actual framebuffer size.
Alternatively, you could just add glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GL_FALSE)
.
Hi all,
I try to render the depth buffer following the "shadow mapping depth" tutorial and source code, and here is my code (with some modifications based on the original code).
However, the result looks like this: the depth map seems work but it only shows up on half of the screen. Does anyone have an idea how to solve it ? I am running on macOS High Sierra and thanks in advance.