]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/ambientocclusion.h
Store the ambient occlusion rotate lookup texture in resources
[libs/gl.git] / source / effects / ambientocclusion.h
index 71a9270337a0d8517ab848ad2a9dd11dad22d548..61d4d4f3e44a48daf94468d684d26f14e4b19ba5 100644 (file)
@@ -39,7 +39,7 @@ public:
        };
 
 private:
-       Texture2D rotate_lookup;
+       const Texture2D &rotate_lookup;
        RenderTarget occlude_target;
        const Program &occlude_shader;
        const Program &combine_shader;
@@ -53,6 +53,7 @@ public:
        AmbientOcclusion(unsigned, unsigned, float = 1.0f);
 
 private:
+       static const Texture2D &get_or_create_rotate_lookup();
        static float random(unsigned &);
 
 public: