Make CONTENT_IGNORE to not block the view when occlusion culling
authorPerttu Ahola <celeron55@gmail.com>
Thu, 3 Nov 2011 18:45:44 +0000 (20:45 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 3 Nov 2011 18:45:44 +0000 (20:45 +0200)
src/mapnode.cpp

index 484fcbe0af3a8fddd1aac23d2cbcc18a0fef8a0e..847608040b20bf27ccfc6f0c17ddb879dfaf5a6d 100644 (file)
@@ -164,6 +164,9 @@ void init_mapnode()
                f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
        }
 
+       // Make CONTENT_IGNORE to not block the view when occlusion culling
+       content_features(CONTENT_IGNORE).solidness = 0;
+
        /*
                Initialize mapnode content
        */