#include <cmath>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
#include "blend.h"
#include "bloom.h"
#include "meshbuilder.h"
void Bloom::set_radius(float r)
{
if(r<=0.0f)
- throw InvalidParameterValue("Radius must be positive");
+ throw out_of_range("Bloom::set_radius");
int size = min(static_cast<int>(r*3.0f), 9);
blur_shdata_common.uniform("size", size);
void Bloom::set_strength(float s)
{
if(s<0.0f || s>1.0f)
- throw InvalidParameterValue("Strength must be in the range [0.0, 1.0]");
+ throw out_of_range("Bloom::set_strength");
combine_shdata.uniform("strength", s);
}