feat: implement multi-layer texture binding

This commit is contained in:
daoge_cmd
2026-03-03 21:20:10 +08:00
parent 5422191ed4
commit d2bc3342dc
12 changed files with 38 additions and 12 deletions

View File

@@ -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;
}