mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(component): finish implementing CCharacterComponent::RenderPrepHU
This commit is contained in:
parent
7b32d99bb0
commit
136155058d
@ -409,7 +409,20 @@ void CCharacterComponent::RenderPrepHU(CCharacterComponent* component) {
|
|||||||
CCharacterComponent::PasteFromSkin(SECTION_HEAD_UPPER, skin, CCharacterComponent::s_textureBuffer);
|
CCharacterComponent::PasteFromSkin(SECTION_HEAD_UPPER, skin, CCharacterComponent::s_textureBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
auto faceUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACE, 1)];
|
||||||
|
if (faceUpperTexture) {
|
||||||
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, faceUpperTexture, CCharacterComponent::s_textureBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto facialHairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_FACIAL_HAIR, 1)];
|
||||||
|
if (facialHairUpperTexture) {
|
||||||
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, facialHairUpperTexture, CCharacterComponent::s_textureBuffer);
|
||||||
|
}
|
||||||
|
|
||||||
|
auto hairUpperTexture = component->m_texture[TEXTURE_INDEX(VARIATION_HAIR, 2)];
|
||||||
|
if (hairUpperTexture) {
|
||||||
|
CCharacterComponent::PasteToSection(SECTION_HEAD_LOWER, hairUpperTexture, CCharacterComponent::s_textureBuffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterComponent::RenderPrepLL(CCharacterComponent* component) {
|
void CCharacterComponent::RenderPrepLL(CCharacterComponent* component) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user