Re: [osg-users] Depth and Color buffer attachemnts do not play along together

2021-03-28 Thread Trajce Nikolov NICK
Attached is the minimal code that reproduce the problem Thanks a bunch as always! Nick On Sun, Mar 28, 2021 at 2:49 PM Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Hi Community, > > I am attaching to the main camera DepthBuffer and ColorBuffer as Texture2D > - attached is the s

[osg-users] Depth and Color buffer attachemnts do not play along together

2021-03-28 Thread Trajce Nikolov NICK
Hi Community, I am attaching to the main camera DepthBuffer and ColorBuffer as Texture2D - attached is the setup. I also have shader to check the depth buffer - so it is ok as on the image. And I am displaying it on a quad. The depth buffer is still getting me zeros when the colorbuffer is attache