mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Don't initialize ItemCAOs with stick.png
This commit is contained in:
parent
44e36d9aad
commit
3a689a5c4f
@ -576,9 +576,8 @@ void ItemCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
|
|||||||
// Set material
|
// Set material
|
||||||
buf->getMaterial().setFlag(video::EMF_LIGHTING, false);
|
buf->getMaterial().setFlag(video::EMF_LIGHTING, false);
|
||||||
buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false);
|
||||||
//buf->getMaterial().setTexture(0, NULL);
|
// Initialize with a generated placeholder texture
|
||||||
// Initialize with the stick texture
|
buf->getMaterial().setTexture(0, tsrc->getTextureRaw(""));
|
||||||
buf->getMaterial().setTexture(0, tsrc->getTextureRaw("stick.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().setFlag(video::EMF_FOG_ENABLE, true);
|
||||||
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
||||||
|
Loading…
Reference in New Issue
Block a user