+#define _USE_MATH_DEFINES
#include <cmath>
#include "ambientocclusion.h"
#include "blend.h"
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);