Depth buffer copy

Ok, passing depth as texture works for me.
If someone wants to try it and guessing what is var_gl_position.xy in @zendorx code, it is clip space position (gl_Position passed from vertex program) divided by W component.

1 Like