mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 01:53:45 +01:00
added fog to players
This commit is contained in:
parent
78510b49c7
commit
813b6a91b3
@ -167,12 +167,13 @@ TODO: Better handling of objects and mobs
|
|||||||
- Client should not discriminate between blocks, server should
|
- Client should not discriminate between blocks, server should
|
||||||
- Make other players utilize the same framework
|
- Make other players utilize the same framework
|
||||||
|
|
||||||
SUGG: Split Inventory into ClientInventory and ServerInventory
|
TODO: Draw big amounts of torches better (that is, throw them in the
|
||||||
|
same meshbuffer (can the meshcombiner class be used?))
|
||||||
|
|
||||||
Doing now:
|
Doing now:
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
TODO: Convert the text input system to use a modal menu
|
TODO: Convert the text input system to use a modal menu... or something
|
||||||
|
|
||||||
======================================================================
|
======================================================================
|
||||||
|
|
||||||
|
@ -112,6 +112,7 @@ RemotePlayer::RemotePlayer(
|
|||||||
//buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
//buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
||||||
buf->getMaterial().setTexture(0, driver->getTexture("../data/player.png"));
|
buf->getMaterial().setTexture(0, driver->getTexture("../data/player.png"));
|
||||||
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false);
|
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||||
|
buf->getMaterial().setFlag(video::EMF_FOG_ENABLE, true);
|
||||||
//buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
//buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
||||||
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||||
// Add to mesh
|
// Add to mesh
|
||||||
@ -135,6 +136,7 @@ RemotePlayer::RemotePlayer(
|
|||||||
//buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
//buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
||||||
buf->getMaterial().setTexture(0, driver->getTexture("../data/player_back.png"));
|
buf->getMaterial().setTexture(0, driver->getTexture("../data/player_back.png"));
|
||||||
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false);
|
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||||
|
buf->getMaterial().setFlag(video::EMF_FOG_ENABLE, true);
|
||||||
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
|
||||||
// Add to mesh
|
// Add to mesh
|
||||||
mesh->addMeshBuffer(buf);
|
mesh->addMeshBuffer(buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user