]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Use libmspmath to provide vector and matrix operations
[libs/gl.git] / source / ambientocclusion.cpp
index 278720cec48fac4903661f4f52010fa99a3b19b1..4ef376251a6a065013666f85bfe4803db1b4f2e9 100644 (file)
@@ -79,7 +79,9 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio):
        occlusion.storage(RGB, w, h);
        occlusion.set_min_filter(NEAREST);
        occlusion.set_mag_filter(NEAREST);
+       occlusion.set_wrap(CLAMP_TO_EDGE);
        fbo.attach(COLOR_ATTACHMENT0, occlusion, 0);
+       fbo.require_complete();
 
        combine_texturing.attach(2, occlusion);