Sorry, I just figure this out.
Looks like this is a bug in RenderDoc, not the opengl it self
I tried to render a depth map that use for shadow mapping in OpenGL. Although that artifact seems have no effect on the result, but it’s still weird why they are there.
I tried different format, but those lines are still there. However, they never present in render buffer that use by another frame buffers.
They are depth map from a direction light’s perspective,
glm::mat4 lightProjection = glm::ortho(-20.0f, 20.0f, -20.0f, 20.0f, near_plane, far_plane); glm::mat4 lightView = glm::lookAt(-lb.dir_lights.direction, // glm::vec3(0.0f, 0.0f, 0.0f), // glm::vec3(0.0f, 1.0f, 0.0f)); glm::mat4 light_space = lightProjection * lightView;
And above is the code use for othogonal pespective