[fix] npc eyes

[fix] glasses alphablend
This commit is contained in:
kimnuri
2026-01-12 15:57:46 +09:00
parent ae9a0aee38
commit 70611e07c6
101 changed files with 143 additions and 728 deletions
+6 -74
View File
@@ -15,7 +15,6 @@
#include "MapElement_Interactable.h"
#include "Monster.h"
#include "TimeSocket.h"
#include "PlayerRobe.h"
#include "RaceRing.h"
#include "Wand.h"
#include "Mesh.h"
@@ -419,16 +418,8 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
if (FAILED(Bind_ShaderParameters(i))) {
return E_FAIL;
}
if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)) {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) {
return E_FAIL;
}
}
else {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
return E_FAIL;
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
@@ -749,80 +740,21 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
_float fMixerFactor = { FLT_MAX };
_uint iColorMixerMethod = { 0 };
switch (PLAYER_MESH_ORDER(iMeshOrder))
switch (CPlayer::PLAYER_MESH_ORDER(iMeshOrder))
{
case PLAYER_MESH_ORDER::HAIR_MAIN:
case PLAYER_MESH_ORDER::HEAD_EYELASH:
case PLAYER_MESH_ORDER::HAIR_SUB:
case CPlayer::PLAYER_MESH_ORDER::HAIR_MAIN:
case CPlayer::PLAYER_MESH_ORDER::EYELASH:
bUseColorMixer = true;
iColorParam = 0x2E2E2E;
fMixerFactor = 0.9f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::LOWER:
case CPlayer::PLAYER_MESH_ORDER::CLOTH:
bUseColorMixer = true;
iColorParam = 0x292557;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::SHOES:
bUseColorMixer = true;
iColorParam = 0x614242;
fMixerFactor = 0.5f;
iColorMixerMethod = 1;
break;
case PLAYER_MESH_ORDER::UPPER:
bUseColorMixer = true;
iColorParam = 0xBFAC29;
fMixerFactor = 0.658333f;
iColorMixerMethod = 1;
break;
//#ifdef 기무리
//
// case PLAYER_MESH_ORDER::ROBE_CLOTH:
// {
// CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
// _uint MeshBoneCount = pMesh->Get_NumBone();
//
// for (_uint i = 0; i < MeshBoneCount; ++i)
// {
// XMStoreFloat4x4(&SkinMatrices[i], XMMatrixIdentity());
// }
//
// _uint temp = 0;
// vector<_uint> globalMask = m_pModelCom->Get_BoneMask(ENUM_CLASS(BLEND_BONE::HIPS_CLOTH));
// vector<_int> boneIndices = pMesh->Get_BoneIndices();
//
// for (_uint i = 0; i < MeshBoneCount; ++i)
// {
// _uint global = boneIndices[i];
// if (global == 38)
// continue;
// if (globalMask[global] == 1)
// {
// SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
// }
// }
//
// GUI::DragFloat("TempWeight", &m_fTempWeight, 0.01f);
//
// if (FAILED(m_pShaderCom->Bind_RawValue("g_TempWeight", &m_fTempWeight, sizeof(_float)))) {
// return E_FAIL;
// }
//
//
// if (FAILED(m_pShaderCom->Bind_Matrices(
// "g_BoneMatrices",
// SkinMatrices.data(),
// (_int)SkinMatrices.size()
// )))
// {
// return E_FAIL;
// }
// }
// break;
//#endif // _DEBUG
default:
break;
}