Expose depthbuffer texture
This commit is contained in:
parent
c77ffb1882
commit
5694d8b41a
@ -898,6 +898,7 @@ bool COpenGLFBODepthTexture::attach(ITexture* renderTex)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
rtt->DepthTexture=this;
|
rtt->DepthTexture=this;
|
||||||
|
rtt->DepthBufferTexture = DepthRenderBuffer;
|
||||||
grab(); // grab the depth buffer, not the RTT
|
grab(); // grab the depth buffer, not the RTT
|
||||||
rtt->unbindRTT();
|
rtt->unbindRTT();
|
||||||
return true;
|
return true;
|
||||||
|
@ -167,6 +167,7 @@ public:
|
|||||||
virtual void unbindRTT();
|
virtual void unbindRTT();
|
||||||
|
|
||||||
ITexture* DepthTexture;
|
ITexture* DepthTexture;
|
||||||
|
GLuint DepthBufferTexture;
|
||||||
protected:
|
protected:
|
||||||
GLuint ColorFrameBuffer;
|
GLuint ColorFrameBuffer;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user