]> git.tdb.fi Git - libs/gl.git/commitdiff
Add bounding sphere passthrough to Effect
authorMikko Rasa <tdb@tdb.fi>
Mon, 5 Dec 2016 17:56:18 +0000 (19:56 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 5 Dec 2016 17:56:18 +0000 (19:56 +0200)
source/effect.h

index 4be963f653c686ac9a1688f2be8e13399645a341..c55aebf95a5c0363e459a4c010fa79c89ad018e0 100644 (file)
@@ -26,6 +26,7 @@ public:
        void disable_for_pass(const Tag &);
 
        virtual const Matrix *get_matrix() const { return renderable.get_matrix(); }
+       virtual const Geometry::BoundingSphere<float, 3> *get_bounding_sphere() const { return renderable.get_bounding_sphere(); }
 
        virtual void setup_frame(Renderer &r) { renderable.setup_frame(r); }
        virtual void finish_frame() { renderable.finish_frame(); }