X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Feffects%2Fambientocclusion.cpp;h=8c31a53fb115ddfe5ff25dd1f540e60132f6dc5b;hp=d431bcdd51ea68417a6b285b1b7ba8773542742b;hb=c8520aa336e92f2eaf9a38c3430c608520a90324;hpb=5bb193f930fb8738d099d630c4d625d82c1215b5 diff --git a/source/effects/ambientocclusion.cpp b/source/effects/ambientocclusion.cpp index d431bcdd..8c31a53f 100644 --- a/source/effects/ambientocclusion.cpp +++ b/source/effects/ambientocclusion.cpp @@ -32,7 +32,7 @@ const Texture2D &AmbientOcclusion::get_or_create_rotate_lookup() { Resources &resources = Resources::get_global(); - static const string name = "_ambientocclusion_rotate.tex2d"; + static const string name = "_ambientocclusion_rotate.tex"; Texture2D *rotate_lookup = resources.find(name); if(rotate_lookup) return *rotate_lookup; @@ -128,13 +128,6 @@ void AmbientOcclusion::set_debug_name(const string &name) } -AmbientOcclusion::Template::Template(): - n_samples(16), - occlusion_radius(0.5f), - darkness(1.0f), - edge_depth_threshold(0.1f) -{ } - AmbientOcclusion *AmbientOcclusion::Template::create(unsigned width, unsigned height) const { RefPtr ao = new AmbientOcclusion(width/size_divisor, height/size_divisor);