diff options
author | Kahrl <kahrl@gmx.net> | 2011-09-07 19:21:28 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2011-09-07 19:21:28 +0200 |
commit | c0b35fa429c68b49b2d6a5124aff6dcc31400b63 (patch) | |
tree | 32a3c9856e7f34bf1055177ba3f939624dc0c695 /src/mapnode.h | |
parent | d28ea57083481bff8180249fc8b43f7ed7b18545 (diff) | |
download | minetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.tar.gz minetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.tar.bz2 minetest-c0b35fa429c68b49b2d6a5124aff6dcc31400b63.zip |
Removed unused camera_position and camera_direction fields from Client. Moved ClientEnvironment::drawPostFx to ClientMap::renderPostFx -- this will make the camera management classes easier to write, as ClientMap already knows the camera position but ClientEnvironment doesn't and has to be told about it. This also eliminates the need for Client::getEnv(). Made the post effect color a content feature defined in content_mapnode.h.
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 3ad67aaf6..19dfb2802 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -160,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; @@ -197,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; |