I am trying to make a planar reflection in OpenGL. I have set the stencil test and projecting the reflection on a mirror object, but the reflection is rendered above all other objects and floor in the scene (like on images). And the second problem is that the background color of the reflection is not ..
I am using depth test and clearing depth buffer also. Also, using glm for generating projection and view matrices, but scene has some kind of rippling when moving camera forward or backwards and trees are switching places. Here are the videos: https://www.youtube.com/watch?v=knVMf3QOuk0&ab_channel=GiviArabidze https://www.youtube.com/watch?v=hna-LelDr4E&ab_channel=GiviArabidze Source: Windows Que..
Problem Description I’m following (loosely) along the point light shadow map tutorial on LearnOpenGL to render a depth cubemap with a geometry shader in one pass. However I haven’t been successful in doing so. When I render the scene without shadows I get this image. However when I tried to render it with depth map ..