]> git.tdb.fi Git - libs/gl.git/blobdiff - source/effects/ambientocclusion.h
Use correct sampler for the ambient occlusion rotate lookup
[libs/gl.git] / source / effects / ambientocclusion.h
index 6c2c5d7eea938daa6be0e6e5ce2387dd2a361660..71a9270337a0d8517ab848ad2a9dd11dad22d548 100644 (file)
@@ -8,7 +8,6 @@
 #include "programdata.h"
 #include "rendertarget.h"
 #include "texture2d.h"
-#include "texturing.h"
 
 namespace Msp {
 namespace GL {
@@ -42,13 +41,13 @@ public:
 private:
        Texture2D rotate_lookup;
        RenderTarget occlude_target;
-       Texturing texturing;
-       Program occlude_shader;
-       Program combine_shader;
+       const Program &occlude_shader;
+       const Program &combine_shader;
        mutable ProgramData shdata;
-       RefPtr<Mesh> quad;
-       RefPtr<Sampler> linear_sampler;
-       RefPtr<Sampler> nearest_sampler;
+       const Mesh &quad;
+       const Sampler &linear_sampler;
+       const Sampler &nearest_clamp_sampler;
+       const Sampler &nearest_sampler;
 
 public:
        AmbientOcclusion(unsigned, unsigned, float = 1.0f);