]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Add uniform integer vectors of 2, 3 and 4 elements
[libs/gl.git] / source / ambientocclusion.cpp
index f1e722af5896ddf6754e991acb28fbbb5bc65449..444b18b8354cd620fe900ece6ef1c873e6450995 100644 (file)
@@ -108,12 +108,12 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio):
 
        occlude_shdata.uniform("depth", 0);
        occlude_shdata.uniform("rotate", 1);
-       occlude_shdata.uniform("screen_size", w, h);
+       occlude_shdata.uniform("screen_size", static_cast<float>(w), static_cast<float>(h));
 
        combine_shdata.uniform("color", 1);
        combine_shdata.uniform("depth", 0);
        combine_shdata.uniform("occlusion", 2);
-       combine_shdata.uniform("screen_size", w, h);
+       combine_shdata.uniform("screen_size", static_cast<float>(w), static_cast<float>(h));
 
        set_depth_ratio(depth_ratio);
        set_darkness(1.5);