X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=builtin_data%2F_ambientocclusion_occlude.glsl;h=62fd153b712589e205f73738887a7db4e05f05c9;hb=1e3b07299f798983ee0b861121a65ca2e8c8830a;hp=260f1efa770a89a04679dfc39c7c5de3277d7cc7;hpb=d4312ccb1a73acecc57394b2c5230083b1f8b6a1;p=libs%2Fgl.git diff --git a/builtin_data/_ambientocclusion_occlude.glsl b/builtin_data/_ambientocclusion_occlude.glsl index 260f1efa..62fd153b 100644 --- a/builtin_data/_ambientocclusion_occlude.glsl +++ b/builtin_data/_ambientocclusion_occlude.glsl @@ -14,10 +14,10 @@ void main() for(int i=0; i=min_depth) + float sample_depth = texture(depth, psp.xy*0.5+0.5).r; + if(sample_depth>=min_depth) { - if(sample