Hello guys, now I’m working at a depth of field shader.
Here’s how it works:
I render the whole scene to a FrameBuffer then apply the shader on it.
But, there’s a problem: How do I pass the depthbuffer as an uniform to the shader? I couldn’t find it anywhere in FrameBuffer’s methods.
Any help is appreciated.