mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename SMaterial::TextureLayer -> SMaterial::TextureLayers
It's not the "texture layer" of the material, but an array of texture layers.
This commit is contained in:
parent
05ebe2418b
commit
6bf63d4b41
9 changed files with 38 additions and 38 deletions
|
@ -65,11 +65,11 @@ void GUIScene::setTexture(u32 idx, video::ITexture *texture)
|
|||
video::SMaterial &material = m_mesh->getMaterial(idx);
|
||||
material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
|
||||
material.MaterialTypeParam = 0.5f;
|
||||
material.TextureLayer[0].Texture = texture;
|
||||
material.TextureLayers[0].Texture = texture;
|
||||
material.Lighting = false;
|
||||
material.FogEnable = true;
|
||||
material.TextureLayer[0].MinFilter = video::ETMINF_NEAREST;
|
||||
material.TextureLayer[0].MagFilter = video::ETMAGF_NEAREST;
|
||||
material.TextureLayers[0].MinFilter = video::ETMINF_NEAREST;
|
||||
material.TextureLayers[0].MagFilter = video::ETMAGF_NEAREST;
|
||||
material.BackfaceCulling = false;
|
||||
material.ZWriteEnable = video::EZW_AUTO;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue