mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 12:13:51 +00:00
feat: implement multi-layer texture binding
This commit is contained in:
parent
5422191ed4
commit
d2bc3342dc
12 changed files with 38 additions and 12 deletions
|
|
@ -428,7 +428,7 @@ void Textures::bindTextureLayers(ResourceLocation *resource)
|
|||
|
||||
for( int i = 0; i < layers; i++ )
|
||||
{
|
||||
RenderManager.TextureBind(loadTexture(resource->getTexture(i)));
|
||||
RenderManager.TextureBind(i, loadTexture(resource->getTexture(i)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1520,3 +1520,4 @@ bool Textures::IsOriginalImage(TEXTURE_NAME texId, const wstring& name)
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue