X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fshadowmap.cpp;h=f11ea7a710558085c4ce059289fac848baff3cc9;hp=11bb706e6afa3265562e277e3ac899783e888095;hb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;hpb=08d0a9f283b71e874b769b2661389b0aca598f4f;ds=sidebyside diff --git a/source/effects/shadowmap.cpp b/source/effects/shadowmap.cpp index 11bb706e..f11ea7a7 100644 --- a/source/effects/shadowmap.cpp +++ b/source/effects/shadowmap.cpp @@ -13,20 +13,20 @@ using namespace std; namespace Msp { namespace GL { -ShadowMap::ShadowMap(Resources &resources, unsigned s, Renderable &r, const Light &l, Renderable &c): +ShadowMap::ShadowMap(unsigned s, Renderable &r, const Light &l, Renderable &c): Effect(r), light(l), shadow_caster(c), - sampler(resources.get("_linear_clamp_shadow.samp")) + sampler(Resources::get_global().get("_linear_clamp_shadow.samp")) { init(s); } -ShadowMap::ShadowMap(Resources &resources, unsigned s, Renderable &r, const Light &l): +ShadowMap::ShadowMap(unsigned s, Renderable &r, const Light &l): Effect(r), light(l), shadow_caster(r), - sampler(resources.get("_linear_clamp_shadow.samp")) + sampler(Resources::get_global().get("_linear_clamp_shadow.samp")) { init(s); }