]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/Effect.hxx
Random buildings - initial commit.
[simgear.git] / simgear / scene / material / Effect.hxx
index 6daa279f157e0eb86bb56a3ed7f65be1e14a97f8..0a5ffe2b333008e7c86d3d479528a85576389fc8 100644 (file)
@@ -24,6 +24,7 @@
 #include <boost/functional/hash.hpp>
 
 #include <osg/Object>
+#include <osg/observer_ptr>
 #include <osgDB/ReaderWriter>
 
 #include <simgear/props/props.hxx>
@@ -90,7 +91,8 @@ public:
         LIGHTING_BUFFER,
         MIDDLE_BLOOM_BUFFER,
         BLOOM_BUFFER,
-        AO_BUFFER
+        AO_BUFFER,
+        SHADOW_BUFFER
     };
 
     // Define what needs to be generated for this effect
@@ -158,7 +160,7 @@ protected:
             bool operator()(const Key& lhs, const Key& rhs) const;
         };
     };
-    typedef std::tr1::unordered_map<Key, osg::ref_ptr<Effect>,
+    typedef std::tr1::unordered_map<Key, osg::observer_ptr<Effect>,
                                     boost::hash<Key>, Key::EqualTo> Cache;
     Cache* getCache()
     {