]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapnode.h
View bobbing is slower in the water.
[dragonfireclient.git] / src / mapnode.h
index 4c2b9285336d5d40cd887afaab35ebf1d68dc6f4..19dfb28025c199d5e0cb23aa46fff5d6dcb6ce13 100644 (file)
@@ -121,6 +121,7 @@ struct ContentFeatures
        bool light_propagates;
        bool sunlight_propagates;
        u8 solidness; // Used when choosing which face is drawn
+       u8 visual_solidness; // When solidness=0, this tells how it looks like
        // This is used for collision detection.
        // Also for general solidness queries.
        bool walkable;
@@ -159,6 +160,8 @@ struct ContentFeatures
        u8 liquid_viscosity;
        // Used currently for flowing liquids
        u8 vertex_alpha;
+       // Post effect color, drawn when the camera is inside the node.
+       video::SColor post_effect_color;
        // Special irrlicht material, used sometimes
        video::SMaterial *special_material;
        AtlasPointer *special_atlas;
@@ -181,6 +184,7 @@ struct ContentFeatures
                light_propagates = false;
                sunlight_propagates = false;
                solidness = 2;
+               visual_solidness = 0;
                walkable = true;
                pointable = true;
                diggable = true;
@@ -195,6 +199,7 @@ struct ContentFeatures
                liquid_alternative_source = CONTENT_IGNORE;
                liquid_viscosity = 0;
                vertex_alpha = 255;
+               post_effect_color = video::SColor(0, 0, 0, 0);
                special_material = NULL;
                special_atlas = NULL;
                light_source = 0;