+void ShadowMap::set_darkness(float d)
+{
+ if(d<0.0f || d>1.0f)
+ throw invalid_argument("ShadowMap::set_darkness");
+
+ shdata.uniform("shadow_darkness", d);
+}
+
+void ShadowMap::set_depth_bias(float b)
+{
+ if(b<0.0f)
+ throw invalid_argument("ShadowMap::set_depth_bias");
+
+ depth_bias = b;
+}
+