更新时间:2023-11-08 17:05:28
如果一个附加的图像是分层的,那么所有附加的图像必须被分层.因此,如果您想使用深度缓冲区进行分层渲染,则深度图像必须也分层.
If one attached image is layered, then all attached images must be layered. So if you want to do layered rendering with a depth buffer, the depth image must also be layered.
因此,您应该使用具有深度格式的二维数组纹理,而不是使用渲染缓冲区.
So instead of using a renderbuffer, you should use a 2D array texture with a depth format.