Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Share depth buffer?

$
0
0

@Link32 wrote:

Hi, does Monogame also have the restriction that XNA had, that a depth buffer is locked into a single rendertarget? Some work I'm doing requires me to change render targets, but keep the same depth buffer so when I draw anything behind what has already drawn it is discarded.

Currently, after switching rendertarget, I'm passing the depthbuffer in to a shader and drawing a fullscreen quad to 'restore' the depth. Is this really all I can do? Seems really wasteful and surely impacts performance quite significantly?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles