X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Feffects%2Fambientocclusion.h;h=61d4d4f3e44a48daf94468d684d26f14e4b19ba5;hb=f4e0bcd917fd4270100e219c5fba7af185060111;hp=b0030c5917d56e0c785600d336517448bf0cb805;hpb=fe2fc291a4fc618425c64112c9ffd3519f0b8a3e;p=libs%2Fgl.git diff --git a/source/effects/ambientocclusion.h b/source/effects/ambientocclusion.h index b0030c59..61d4d4f3 100644 --- a/source/effects/ambientocclusion.h +++ b/source/effects/ambientocclusion.h @@ -39,19 +39,21 @@ public: }; private: - Texture2D rotate_lookup; + const Texture2D &rotate_lookup; RenderTarget occlude_target; const Program &occlude_shader; const Program &combine_shader; mutable ProgramData shdata; const Mesh &quad; const Sampler &linear_sampler; + const Sampler &nearest_clamp_sampler; const Sampler &nearest_sampler; public: AmbientOcclusion(unsigned, unsigned, float = 1.0f); private: + static const Texture2D &get_or_create_rotate_lookup(); static float random(unsigned &); public: