]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shadowmap.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / shadowmap.h
index c2c104aca9c69d4d32a669f4f508e4c4d5faa3d6..e142fc8cafdd56023459035f53d48e73205c997b 100644 (file)
@@ -27,12 +27,15 @@ private:
        Framebuffer fbo;
        Matrix shadow_matrix;
        Texture2D depth_buf;
+       RefPtr<Sampler> sampler;
        Vector3 target;
        float radius;
        float depth_bias;
        mutable ProgramData shdata;
        bool rendered;
 
+       static WeakPtr<Sampler> shadow_sampler;
+
 public:
        ShadowMap(unsigned, Renderable &, const Light &);
 
@@ -52,6 +55,9 @@ public:
        thin objects from casting shadows on nearby sufraces. */
        void set_depth_bias(float);
 
+       const Texture2D &get_depth_texture() const { return depth_buf; }
+       const Matrix &get_shadow_matrix() const { return shadow_matrix; }
+
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();