mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add wielded (and CAOs) shader
This commit is contained in:
parent
5b0c719171
commit
60350699c7
11 changed files with 224 additions and 40 deletions
|
@ -1012,7 +1012,9 @@ void CNodeDefManager::fillTileAttribs(ITextureSource *tsrc, TileSpec *tile,
|
|||
if (use_normal_texture) {
|
||||
tile->normal_texture = tsrc->getNormalTexture(tiledef->name);
|
||||
}
|
||||
tile->flags_texture = tsrc->getShaderFlagsTexture(tiledef, tile);
|
||||
tile->flags_texture = tsrc->getShaderFlagsTexture(
|
||||
tile->normal_texture ? true : false,
|
||||
tiledef->tileable_horizontal, tiledef->tileable_vertical);
|
||||
|
||||
// Material flags
|
||||
tile->material_flags = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue