X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fambientocclusion.cpp;h=21271acf2555d8a7f6b474d9cf3657cc69dccdb9;hp=c35e5771de1d76f3a7ea95e8ab9c2125f7156754;hb=1863f17c5c5563be8492d7f01e5c613a740ea1e9;hpb=3ac3a51c623271da815c8ee60c484445871753bf diff --git a/source/effects/ambientocclusion.cpp b/source/effects/ambientocclusion.cpp index c35e5771..21271acf 100644 --- a/source/effects/ambientocclusion.cpp +++ b/source/effects/ambientocclusion.cpp @@ -116,6 +116,16 @@ void AmbientOcclusion::render(Renderer &renderer, const Texture2D &color, const quad.draw(renderer); } +void AmbientOcclusion::set_debug_name(const string &name) +{ +#ifdef DEBUG + occlude_target.set_debug_name(name+" [RT]"); + shdata.set_debug_name(name+" [UBO]"); +#else + (void)name; +#endif +} + AmbientOcclusion::Template::Template(): n_samples(16),