Merge branch 'Develope' into Effect

This commit is contained in:
GiJungSUk
2025-12-12 11:16:41 +09:00
93 changed files with 1902 additions and 357 deletions
@@ -195,6 +195,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
<ClInclude Include="..\Public\MageSide.h" />
<ClInclude Include="..\Public\Mage_Down_Attack.h" />
<ClInclude Include="..\Public\NPC_Ollivander.h" />
<ClInclude Include="..\Public\Box_Splesh.h" />
<ClInclude Include="..\Public\StunEffect.h" />
<ClInclude Include="..\Public\State_Broom_Dismount.h" />
@@ -370,6 +371,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Logo.cpp" />
<ClCompile Include="..\Private\Logo_Glow.cpp" />
<ClCompile Include="..\Private\Logo_Text.cpp" />
<ClCompile Include="..\Private\NPC_Ollivander.cpp" />
<ClCompile Include="..\Private\State_Broom_Dismount.cpp" />
<ClCompile Include="..\Private\State_Broom_Fly.cpp" />
<ClCompile Include="..\Private\State_Broom_Hover.cpp" />
@@ -545,6 +545,9 @@
<ClInclude Include="..\public\Enemy_Detection.h">
<Filter>02.GameObjects\UI\Enemy_Detection</Filter>
</ClInclude>
<ClInclude Include="..\Public\NPC_Ollivander.h">
<Filter>02.GameObjects\NPC\Ally\Shopper</Filter>
</ClInclude>
<ClInclude Include="..\Public\State_Shield.h">
<Filter>04.Mechanic\State\State_Combat\State_Shield</Filter>
</ClInclude>
@@ -1158,6 +1161,9 @@
<Filter Include="04.Mechanic\State\State_Combat\State_Shield">
<UniqueIdentifier>{fd4a0869-2491-4fec-9df9-3aedbac96171}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\NPC\Ally\Shopper">
<UniqueIdentifier>{02cb243a-f63e-4e55-9d55-b47e31a4c13e}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -1650,6 +1656,9 @@
<ClCompile Include="..\Private\State_Shield.cpp">
<Filter>04.Mechanic\State\State_Combat\State_Shield</Filter>
</ClCompile>
<ClCompile Include="..\Private\NPC_Ollivander.cpp">
<Filter>02.GameObjects\NPC\Ally\Shopper</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Private\Goblin_States.cpp">
+2 -3
View File
@@ -102,11 +102,10 @@ HRESULT CBroom::Render()
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
@@ -132,7 +131,7 @@ HRESULT CBroom::Ready_Components()
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
@@ -65,16 +65,16 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = false;
#endif // gimch
#ifdef Bin
m_isActiveEffectCreate = false;
m_isActiveMonsterEffectCreate = false;
m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 진우
m_isActiveEffectCreate = false;
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 기무리
m_isActiveEffectCreate = false;
m_isActiveMonsterEffectCreate = false;
m_isActiveEffectCreate = true;
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 인혁
m_isActiveEffectCreate = false;
@@ -24,6 +24,7 @@
#include "Goblin.h"
#include "Goblin_Mage.h"
#include "Goblin_Spector.h"
#include "NPC_Ollivander.h"
#pragma endregion
@@ -480,6 +481,9 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CNPC_Ollivander>(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
return E_FAIL;
}
return S_OK;
}
+22
View File
@@ -27,6 +27,7 @@
#include "Goblin_Mage.h"
#include "Goblin_Spector.h"
#include "Troll.h"
#include "NPC_Ollivander.h"
#pragma endregion
@@ -1276,6 +1277,12 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"),
VTXMESH::Elements, VTXMESH::iNumElements)))) {
@@ -1442,6 +1449,16 @@ HRESULT CLoader::Loading_For_GamePlay()
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_GerboldOlivander_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
return E_FAIL;
@@ -2130,6 +2147,11 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype<CTroll>(g_iStaticLevel, CTroll::Create(m_pDevice, m_pContext))))
return E_FAIL;
/* For.Prototype_GameObject_Troll */
if (FAILED(m_pGameInstance->Add_Prototype<CNPC_Ollivander>(g_iStaticLevel, CNPC_Ollivander::Create(m_pDevice, m_pContext)))){
return E_FAIL;
}
#pragma endregion
+8 -9
View File
@@ -49,6 +49,14 @@ void CLumos::Priority_Update(_float fTimeDelta)
{
__super::Priority_Update(fTimeDelta);
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return;
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
}
void CLumos::Update(_float fTimeDelta)
@@ -59,15 +67,6 @@ void CLumos::Update(_float fTimeDelta)
__super::Update(fTimeDelta);
Update_Event(fTimeDelta);
CWand* pWand = static_cast<CWand*>(m_pOwner);
if (pWand == nullptr)
return;
m_pLumos_Light->Get_Component<CTransform>()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
}
void CLumos::Late_Update(_float fTimeDelta)
@@ -0,0 +1,212 @@
#include "pch.h"
#include "NPC_Ollivander.h"
#include "GameInstance.h"
#include "InfoInstance.h"
#include "Player.h"
CNPC_Ollivander::CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CUnit(pDevice, pContext)
{
}
CNPC_Ollivander::CNPC_Ollivander(const CNPC_Ollivander& Prototype)
: CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
}
void CNPC_Ollivander::Priority_Update(_float fTimeDelta)
{
m_pTransformCom->RewindMomentum();
__super::Priority_Update(fTimeDelta);
}
void CNPC_Ollivander::Update(_float fTimeDelta)
{
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
__super::Update(fTimeDelta);
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
}
void CNPC_Ollivander::Late_Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
__super::Late_Update(fTimeDelta);
}
HRESULT CNPC_Ollivander::Render()
{
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CNPC_Ollivander::Render_Shadow()
{
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW))) {
return E_FAIL;
}
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", &m_pGameInstance->Get_ShadowDesc()->fFar, sizeof(_float)))) {
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CNPC_Ollivander::Bind_ShaderResources()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
}
return S_OK;
}
HRESULT CNPC_Ollivander::Initialize_Prototype()
{
return S_OK;
}
HRESULT CNPC_Ollivander::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-34.f, 5, -11.4f, 1.f));
return S_OK;
}
HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
{
if (FAILED(__super::Ready_Components(pArg))) {
return E_FAIL;
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"),
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
return E_FAIL;
}
return S_OK;
}
CNPC_Ollivander* CNPC_Ollivander::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CNPC_Ollivander* pInstance = new CNPC_Ollivander(pDevice, pContext);
if (FAILED(pInstance->Initialize_Prototype()))
{
MSG_BOX("Failed to Created : CNPC_Ollivander");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
CGameObject* CNPC_Ollivander::Clone(void* pArg, CGameObject* pOwner)
{
CNPC_Ollivander* pInstance = new CNPC_Ollivander(*this);
if (FAILED(pInstance->Initialize(pArg)))
{
MSG_BOX("Failed to Cloned : CNPC_Ollivander");
SAFE_RELEASE(pInstance);
}
return pInstance;
}
void CNPC_Ollivander::Free()
{
__super::Free();
}
#ifdef _DEBUG
void CNPC_Ollivander::Describe_Entity()
{
m_pModelCom->Describe_Entity();
if (ImGui::TreeNode("ANIM STATE")) {
for (auto& pState : m_States)
{
if (ImGui::Button(to_string(pState.first).c_str()))
{
m_pFSM->Change_State(pState.first);
}
}
GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
ImGui::TreePop();
}
}
#endif // _DEBUG
@@ -1200,7 +1200,6 @@ void CPlayer::Behavior_SpellEnter()
pairAnimInfo = m_Animation[STATEANIM::IDLE];
}
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R),m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second);
m_eSpell = STATEANIM::END;
}
break;
default:
@@ -1253,7 +1252,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END)&& m_eSpell != -1)
if (m_eSpell != ENUM_CLASS(SKILL_TYPE::END) && m_eSpell != -1)
{
_float fRatio = 0.2f;
if (iNext - iStart == 2) {
@@ -1291,6 +1290,49 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LEVIOSO_SIDE, Get_PartObject<CWand>()); },
0.f);
break;
case ENUM_CLASS(SKILL_TYPE::LUMOS):
if (m_pModelCom->Get_SecondAnimIndex() != m_Animation[STATEANIM::LUMOS].first)
{
if (SUCCEEDED(InputMove()))
{
if (m_bSprintToggle) {
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
}
else if (m_bWalkToggle) {
pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
}
else {
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
}
}
else {
pairAnimInfo = m_Animation[STATEANIM::IDLE];
}
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::LUMOS, Get_PartObject<CWand>()); },
0.f);
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS].first, m_Animation[STATEANIM::LUMOS].second);
}
else
{
if (SUCCEEDED(InputMove()))
{
if (m_bSprintToggle) {
pairAnimInfo = m_Animation[STATEANIM::SPRINT];
}
else if (m_bWalkToggle) {
pairAnimInfo = m_Animation[STATEANIM::WALK_FWD];
}
else {
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
}
}
else {
pairAnimInfo = m_Animation[STATEANIM::IDLE];
}
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second);
}
break;
}
}
else {
+1 -2
View File
@@ -46,7 +46,7 @@ HRESULT CPotion::Initialize(void* pArg)
m_vImageSize = _float2(32.f, 32.f);
m_fFontX = 1163.f;
m_fFontY = 860.f;
m_iPotionIndex = 1;
m_iPotionIndex = 10;
m_iPerPotionIndex = -1;
m_iPotion_Level = 1;
return S_OK;
@@ -102,7 +102,6 @@ void CPotion::Update(_float fTimeDelta)
m_fAlpha = 0.f;
}
}
m_iPotionIndex = 10;
if (m_iPerPotionIndex != m_iPotionIndex)
{
+103 -41
View File
@@ -160,11 +160,11 @@ void CTroll::Late_Update(_float fTimeDelta)
if (true == m_pCharacter_Controller->IsActive()) {
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
}
else {
else if (true == m_pRigidBody->IsActive()) {
m_pTransformCom->Set_WorldMatrix(m_pRigidBody->Get_Actor()->getGlobalPose());
}
if (m_bLookAt) {
if (true == m_bLookAt) {
m_pTransformCom->LookAt_Lerp(XMLoadFloat4(&m_vTargetPos), fTimeDelta, 3.f);
}
@@ -182,7 +182,7 @@ void CTroll::Late_Update(_float fTimeDelta)
m_fCross = XMVectorGetY(XMVector3Cross(vLook, vDir));
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
// m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
}
HRESULT CTroll::Render()
@@ -192,10 +192,6 @@ HRESULT CTroll::Render()
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
_uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
if (true == m_bDrawOutLine) {
iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
}
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
@@ -206,7 +202,7 @@ HRESULT CTroll::Render()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
return E_FAIL;
}
@@ -215,7 +211,7 @@ HRESULT CTroll::Render()
}
}
if (m_bDrawOutLine) {
if (true == m_bDrawOutLine) {
Render_OutLine();
}
@@ -235,6 +231,60 @@ HRESULT CTroll::Render()
return S_OK;
}
HRESULT CTroll::Render_OutLine()
{
m_bDrawOutLine = false;
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
Compute_Depth();
_float fRatio = (m_fCamDepth / *m_pGameInstance->Get_CurrentCameraFar());
m_fOutLineThickness = CMyTools::Lerp_f1D(2.f, 6.f, fRatio);
if (m_fOutLineThickness > 6.f) {
m_fOutLineThickness = 6.f;
}
else if (m_fOutLineThickness < 2.f) {
m_fOutLineThickness = 2.f;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vOutLineColor", &m_vOutLineColor, sizeof(_float3)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineThickness", &m_fOutLineThickness, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLineScale", &m_fOutLineScale, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fOutLinePower", &m_fOutLinePower, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)))) {
return E_FAIL;
}
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
for (_uint i = 0; i < iNumMeshes; i++)
{
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::OUTLINE_READ)))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
}
return S_OK;
}
HRESULT CTroll::Render_Shadow()
{
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
@@ -255,10 +305,10 @@ HRESULT CTroll::Render_Shadow()
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
}
@@ -280,41 +330,42 @@ _vector CTroll::Get_LockOnPos()
void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
{
if (true == m_bDead) {
return;
}
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
CEffect_Container* pEffect = dynamic_cast<CEffect_Container*>(pOther);
if (pEffect != nullptr)
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
switch (iSkillType)
{
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
switch (iSkillType)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
break;
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
break;
default:
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
break;
}
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
break;
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
break;
default:
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
break;
}
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
if (pProps != nullptr)
{
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
m_DamageInfo.fDamage = damagePair.first;
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
if (0 == damagePair.second) {
m_pFSM->Change_State(FSMSTATE::DEAD);
return;
}
m_pFSM->Change_State(FSMSTATE::HIT);
}
@@ -330,7 +381,18 @@ HRESULT CTroll::Ready_Components()
Desc.fRotationPerSec = XMConvertToRadians(180.0f);
Desc.fRadius = 10.f;
__super::Ready_Components(&Desc);
if (FAILED(Add_Component<CTransform>(g_iStaticLevel, &m_pTransformCom, &Desc))) {
return E_FAIL;
}
if (FAILED(Add_Component<CFSM>(g_iStaticLevel, &m_pFSM))) {
return E_FAIL;
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
m_strModelPrototypeTag = TEXT("Prototype_Component_Troll_Model");
@@ -21,6 +21,7 @@
#include "State_Swing.h"
#include "State_Slam.h"
#include "State_Hit.h"
#include "State_Dead.h"
#pragma endregion
@@ -609,9 +610,6 @@ void CTroll::Behavior_StunEnter()
[this]() { m_bLookAt = true;
},
0.6f);
}
HRESULT CTroll::Behavior_StunExitCheck(_float fTimeDelta)
@@ -686,6 +684,36 @@ void CTroll::Behavior_HitExit()
m_pFSM->Disable_State(FSMSTATE::HIT);
}
void CTroll::Behavior_DeadEnter()
{
m_bLookAt = false;
m_pFSM->Enable_State(FSMSTATE::DEAD);
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
pair<_uint, _bool> pairAnimInfo;
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
m_pRigidBody->SetActive(false);
m_pCharacter_Controller->SetActive(false);
}
HRESULT CTroll::Behavior_DeadExitCheck(_float fTimeDelta)
{
if (m_pModelCom->IsFinishedAnim()) {
m_bDead = true;
}
return S_OK;
}
void CTroll::Behavior_DeadExit()
{
m_bDead = true;
}
void CTroll::Add_FSM()
{
@@ -812,6 +840,23 @@ void CTroll::Add_FSM()
m_States.emplace(FSMSTATE::HIT, CState_Hit::Create(&Desc));
}
{
CState_Dead::STATE_DEAD_DESC Desc{};
Desc.pOwner = this;
Desc.funcEnterEvent = [this]() { Behavior_DeadEnter(); };
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_DeadExitCheck(fTimedelta); };
Desc.funcExitEvent = [this]() { Behavior_DeadExit(); };
Desc.funcLateUpdate = [this](_float fDeadRatio) {
m_fDeadRatio = fDeadRatio;
if (m_fDeadRatio > 1.f) {
m_bDead = true;
}
};
Desc.vDeadTimer.x = FLT_EPSILON5;
Desc.vDeadTimer.y = 2.f;
m_States.emplace(FSMSTATE::DEAD, CState_Dead::Create(&Desc));
}
#pragma endregion
}
@@ -99,7 +99,8 @@ HRESULT CTroll_Weapon::Render()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
return E_FAIL;
}
@@ -142,7 +143,7 @@ HRESULT CTroll_Weapon::Ready_Components()
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
reinterpret_cast<CComponent**>(&m_pShaderCom)))){
return E_FAIL;
}
@@ -15,6 +15,11 @@ namespace Client
enum class SHADER_PASS_UIEDITOR { DEFAULT, LOGO, LOGO_TEXT, LOGO_GLOW, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, TYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER, SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN, ENEMY_HPBAR, BOSS_HPBAR, ENEMY_DETECTION, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
, OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE
, END
};
enum class UI_STATE { GAMEPLAYER, SPELL, POTION, INVENTORY, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
@@ -21,6 +21,7 @@ namespace Client {
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
#define FX_VTXPOS TEXT("FX_VTXPOS")
#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM")
#pragma endregion
#pragma region MACRO_PROTOTYPE
@@ -0,0 +1,40 @@
#pragma once
#include "Client_Define.h"
#include "Unit.h"
NS_BEGIN(Client)
class CNPC_Ollivander final : public CUnit
{
protected:
CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CNPC_Ollivander(const CNPC_Ollivander& Prototype);
virtual ~CNPC_Ollivander() = default;
public:
virtual void Priority_Update(_float fTimeDelta) override;
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual HRESULT Render_Shadow() override;
protected:
CInfoInstance* m_pInfoInstance = { nullptr };
protected:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
public:
static CNPC_Ollivander* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
};
NS_END
+1 -1
View File
@@ -7,7 +7,7 @@ NS_BEGIN(Client)
class CState_Dead final : public CState_Root
{
public:
typedef struct tagLand : public CState_Root::STATE_ROOT_DESC {
typedef struct tagDead : public CState_Root::STATE_ROOT_DESC {
_float2 vDeadTimer = { 0.f, 2.f };
function<void(_float)> funcLateUpdate = { nullptr };
}STATE_DEAD_DESC;
+5 -1
View File
@@ -29,6 +29,7 @@ class CTroll final : public CMonster
virtual void Update(_float fTimeDelta) override;
virtual void Late_Update(_float fTimeDelta) override;
virtual HRESULT Render() override;
virtual HRESULT Render_OutLine() override;
virtual HRESULT Render_Shadow() override;
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
@@ -51,6 +52,7 @@ class CTroll final : public CMonster
_float4 m_vStartGripPos = { };
_float2 m_vStunTimer = { 0.f, 4.f };
_uint iIndex;
DAMAGE_INFO m_DamageInfo;
class CEffectParts* m_pRight_Smoke = { nullptr };
class CEffectParts* m_pLeft_Smoke = { nullptr };
@@ -92,7 +94,6 @@ class CTroll final : public CMonster
_float m_fSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = {};
_float m_fMaxSkillCoolTime[ENUM_CLASS(TROLL_SKILL::END)] = { 20.f,20.f, 20.f, 20.f ,20.f };
_float m_fRushTime = {};
_float m_fAttackDelay = {};
@@ -145,6 +146,9 @@ class CTroll final : public CMonster
HRESULT Behavior_HitExitCheck();
void Behavior_HitExit();
void Behavior_DeadEnter();
HRESULT Behavior_DeadExitCheck(_float fTimeDelta);
void Behavior_DeadExit();
};
NS_END
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -0,0 +1,292 @@
<Material>
<MI_HUM_N_Heads_Eyelash ShaderIndex = "0" OutLineWrite="0">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Hair_Ollivander_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_M_Hair_Ollivander_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_Eyelash>
<MI_HUM_N_Heads_Teeth ShaderIndex = "1" OutLineWrite="1">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
</MI_HUM_N_Heads_Teeth>
<MI_HUM_N_Heads_Eye ShaderIndex = "2" OutLineWrite="2">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Iris_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_Eye>
<MI_HUM_N_Heads_EyeOcclusion ShaderIndex = "3" OutLineWrite="3">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Eye_Sclera_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Heads_EyeOcclusion>
<MI_HUM_M_Facial_GerboldOllivander ShaderIndex = "4" OutLineWrite="4">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Facial_Hair_Ollivander_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_M_Hair_Ollivander_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_M_Facial_GerboldOllivander>
<MI_HUM_M_Hair_TWNHair06_GerboldOllivander ShaderIndex = "5" OutLineWrite="5">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Hair_Ollivander_DAO_MSK" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_DefaultGrey_D" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="T_HUM_M_Hair_Ollivander_THV_MSK" Extension=".dds"/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_M_Hair_TWNHair06_GerboldOllivander>
<MI_Old_M_Head_GerboldOlivander ShaderIndex = "6" OutLineWrite="6">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Head_GerboldOllivander_WithHands_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Old_M_Head_GerboldOllivander_WithHands_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Old_M_Head_Gerbold_Olivander_WithHands_SRXO" Extension=".dds"/>
</MI_Old_M_Head_GerboldOlivander>
<MI_HUM_M_Low_Ollivander ShaderIndex = "7" OutLineWrite="7">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Low_Ollivander_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_HUM_M_Low_Ollivander_SRO" Extension=".dds"/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_M_Low_Ollivander_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_M_Low_Ollivander>
<MI_HUM_M_Upp_Ollivander ShaderIndex = "8" OutLineWrite="8">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Upp_Ollivander_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_M_Upp_Ollivander_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_HUM_M_Upp_Ollivander_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_M_Upp_Ollivander>
<MI_HUM_N_Acc_Glasses_Glass01 ShaderIndex = "9" OutLineWrite="9">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_M_Acc_Glasses01_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_HUM_M_Acc_Glasses01_SRO" Extension=".dds"/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_HUM_M_Acc_Glasses01_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_HUM_N_Acc_Glasses_Glass01>
</Material>
Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -1,5 +1,5 @@
<Material>
<MI_Troll_ArmoredTroll_Body>
<MI_Troll_ArmoredTroll_Body ShaderIndex = "6" OutLineWrite="16" >
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Body_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -17,7 +17,7 @@
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="T_Troll_ArmoredTroll_Body_Corruption_A" Extension=".dds"/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
@@ -28,12 +28,12 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_ArmoredTroll_Body_SRXO" Extension=".dds"/>
</MI_Troll_ArmoredTroll_Body>
<MI_Troll_Heads_Eye>
<MI_Troll_Heads_Eye ShaderIndex = "2" OutLineWrite="15">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Eye_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="T_Eye_IrisTint_MSK" Extension=".dds"/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
@@ -57,7 +57,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_Heads_Eye>
<MI_Troll_Heads_Teeth>
<MI_Troll_Heads_Teeth ShaderIndex = "1" OutLineWrite="14">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Teeth_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -86,7 +86,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Teeth_SRXO" Extension=".dds"/>
</MI_Troll_Heads_Teeth>
<MI_Troll_ArmoredTroll_Head>
<MI_Troll_ArmoredTroll_Head ShaderIndex = "6" OutLineWrite="16">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Head_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -104,7 +104,7 @@
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="T_Troll_ArmoredTroll_Head_Corruption_A" Extension=".dds"/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
@@ -115,7 +115,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Mountain01_Head_SRXO" Extension=".dds"/>
</MI_Troll_ArmoredTroll_Head>
<MI_Troll_ArmoredTroll_Metal>
<MI_Troll_ArmoredTroll_Metal ShaderIndex = "10" OutLineWrite="18">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Metal_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -144,7 +144,7 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_ArmoredTroll_Metal>
<MI_Troll_ArmoredTroll_Leather>
<MI_Troll_ArmoredTroll_Leather ShaderIndex = "8" OutLineWrite="17">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -162,7 +162,7 @@
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_Troll_ArmoredTroll_Leather_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="T_Troll_ArmoredTroll_Leather_Corruption_A" Extension=".dds"/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
@@ -173,10 +173,10 @@
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_ArmoredTroll_Leather>
<MI_ClothSim>
<MI_ClothSim ShaderIndex = "11" OutLineWrite="19">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_Troll_ArmoredTroll_Body_SRXO" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_Cav_Spid_ThickWeb_N" Extension=".dds"/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="VFX_T_SkinBurn_Emiss_BPF_D" Extension=".dds"/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
@@ -191,7 +191,7 @@
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="VFX_T_SkinBurn_Alpha_D" Extension=".dds"/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
@@ -1,5 +1,5 @@
<Material>
<MI_FlyingClassBroom_01>
<MI_FlyingClassBroom_01 ShaderIndex = "10" OutLineWrite="10">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_FlightClassBroom_01_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -1,5 +1,5 @@
<Material>
<M_WPN_Troll_Club07.003>
<M_WPN_Troll_Club07.003 ShaderIndex = "12" OutLineWrite="12">
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_WPN_Troll_Club07_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
@@ -21,7 +21,7 @@
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Body_Corruption_A" Extension=".dds"/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
@@ -1,205 +0,0 @@
<Material>
<MI_Troll_ArmoredTroll_Body>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Body_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Troll_CMB_Mountain1_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Body_Corruption_A" Extension=".dds"/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_ArmoredTroll_Body_SRXO" Extension=".dds"/>
</MI_Troll_ArmoredTroll_Body>
<MI_Troll_Heads_Eye>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Eye_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_Heads_Eye>
<MI_Troll_Heads_Teeth>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Teeth_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Troll_Teeth_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Teeth_SRXO" Extension=".dds"/>
</MI_Troll_Heads_Teeth>
<MI_Troll_ArmoredTroll_Head>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_Mountain01_Head_D" Extension=".png"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Troll_Mountain01_Head_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Head_Corruption_A" Extension=".dds"/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="T_Troll_Mountain01_Head_SRXO" Extension=".dds"/>
</MI_Troll_ArmoredTroll_Head>
<MI_Troll_ArmoredTroll_Metal>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Metal_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="T_Troll_ArmoredTroll_Metal_E" Extension=".dds"/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Troll_ArmoredTroll_Metal_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_Troll_ArmoredTroll_Metal_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_ArmoredTroll_Metal>
<MI_Troll_ArmoredTroll_Leather>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="T_Troll_ArmoredTroll_Leather_N" Extension=".dds"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="T_Troll_ArmoredTroll_Leather_MRO" Extension=".dds"/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="T_Troll_ArmoredTroll_Leather_Corruption_A" Extension=".dds"/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_Troll_ArmoredTroll_Leather>
<MI_ClothSim>
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
<aiTextureType_DIFFUSE Index="1" Filename="T_Troll_ArmoredTroll_Leather_D" Extension=".dds"/>
<aiTextureType_SPECULAR Index="2" Filename="T_Cav_Spid_ThickWeb_N" Extension=".dds"/>
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
<aiTextureType_EMISSIVE Index="4" Filename="VFX_T_SkinBurn_Emiss_BPF_D" Extension=".dds"/>
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
<aiTextureType_TRANSMISSION Index="21" Filename="VFX_T_SkinBurn_Alpha_D" Extension=".dds"/>
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
</MI_ClothSim>
</Material>
@@ -229,7 +229,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
{
float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
fMetallic = vMRO.r;
@@ -238,7 +238,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
}
else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
{
fMetallic = 0.f;
@@ -0,0 +1,831 @@
#include "Engine_Shader_Defines.hlsli"
float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
int g_bRimLight;
int g_bUseNormalMap;
int g_bDisolve;
float4 g_vDisolveEdgeColor;
float4 g_vCamPosition;
float4 g_vOutLineColor;
float g_fFar;
float g_fOutLineScale;
float g_fOutLineThickness;
float g_fOutLinePower;
float g_fUsingSurfaceParams;
Texture2D g_DiffuseTexture;
Texture2D g_SpecularTexture;
Texture2D g_AmbientTexture;
Texture2D g_EmissiveTexture;
Texture2D g_HeightTexture;
Texture2D g_NormalTexture;
Texture2D g_ShininessTexture;
Texture2D g_OpacityTexture;
Texture2D g_DisplacementTexture;
Texture2D g_LightMapTexture;
Texture2D g_ReflectionTexture;
Texture2D g_BaseColorTexture;
Texture2D g_NormalCameraTexture;
Texture2D g_EmissionColorTexture;
Texture2D g_MetalnessTexture;
Texture2D g_Diffuse_RoughnessTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
Texture2D g_SheenTexture;
Texture2D g_ClearcoadTexture;
Texture2D g_TransmissionTexture;
Texture2D g_Maya_BaseTexture;
Texture2D g_Maya_SpecularTexture;
Texture2D g_Maya_Specular_ColorTexture;
Texture2D g_Maya_Specular_RoughnessTexture;
Texture2D g_AnisotropyTexture;
Texture2D g_SurfaceParamsTexture;
int g_iBinded_Texture[27];
matrix g_BoneMatrices[512];
struct VS_IN_MESH
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
};
struct VS_IN
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
uint4 vBlendIndex : BLENDINDEX;
float4 vBlendWeight : BLENDWEIGHT;
};
struct VS_OUT
{
float4 vPosition : SV_Position;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
VS_OUT VS_MAIN_MESH(VS_IN_MESH In)
{
VS_OUT Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), g_WorldMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix =
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix);
vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
{
VS_OUT Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix =
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix);
vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix);
vPosition.xyz += (vNormal.xyz * g_fOutLineThickness).xyz;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
struct VS_OUT_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
{
VS_OUT_SHADOW Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vProjPos = Out.vPosition;
return Out;
}
struct PS_IN
{
float4 vPosition : SV_Position;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
struct PS_OUT
{
float4 vAlbedo : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
float4 vColor : SV_Target3;
float4 vSurface : SV_Target4;
};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
};
PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
{
PS_OUT_OUTLINE Out = (PS_OUT_OUTLINE) 0;
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float3 vToView = normalize(g_vCamPosition.xyz - In.vWorldPos.xyz);
float fNdotV = saturate(dot(vNormal, vToView));
float fRim = saturate((1.0f - fNdotV) * g_fOutLineScale);
fRim = pow(fRim, g_fOutLinePower);
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
return Out;
}
PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float fDiffuseMask = vDAO_Mask.r;
float AlphaMask = vDAO_Mask.g;
float AoMask_Dao = vDAO_Mask.b;
if (AlphaMask < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
float3 vColorRoot = vDAO_Mask * 0.6f;
float3 vColorTip = vDAO_Mask;
float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip);
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
return Out;
}
PS_OUT PS_TEETH_SRXO_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vSRXO_MASK = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRXO_MASK.r, vSRXO_MASK.g, vSRXO_MASK.a, 0.f);
// SRO
return Out;
}
PS_OUT PS_EYE_DN_SRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(0.5f, 0.5f, 1.f, 0.f);
// SRO
return Out;
}
PS_OUT PS_EYE_OCC(PS_IN In)
{
PS_OUT Out;
discard;
return Out;
}
PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float fDiffuseMask = vDAO_Mask.r;
float AlphaMask = vDAO_Mask.g;
float AoMask_Dao = vDAO_Mask.b;
if (AlphaMask < 0.2f)
{
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
float3 vColorRoot = vDAO_Mask * 0.6f;
float3 vColorTip = vDAO_Mask;
float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip);
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
return Out;
}
PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDAO_Mask = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float fDiffuseMask = vDAO_Mask.r;
float AlphaMask = vDAO_Mask.g;
float AoMask_Dao = vDAO_Mask.b;
if (AlphaMask < 0.2f)
{
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
float3 vColorRoot = vDAO_Mask * 0.6f;
float3 vColorTip = vDAO_Mask;
float3 vBaseColor = lerp(vColorRoot, vColorTip, RootTip);
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
// SRO
return Out;
}
PS_OUT PS_HEADwtHAND_DSRXON_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vSRXO_Mask = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRXO_Mask.r, vSRXO_Mask.g, vSRXO_Mask.a, 0.f);
// SRO
return Out;
}
PS_OUT PS_LOWER_DSRON_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f);
// SRO
return Out;
}
PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
// MRO
return Out;
}
PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
// SRO
return Out;
}
PS_OUT PS_EmissiveMetalness_DENMRO_ToMRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
vDiffuse.rgb += vEmissive.rgb;
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
// SRO
return Out;
}
PS_OUT PS_MI_ClothSim_DSEN_ToSRO(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
vDiffuse.rgb += vEmissive.rgb;
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vSpecular_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vSpecular_Mask.r, 0.5f, 1.f, 0.f);
// SRO
return Out;
}
PS_OUT PS_Troll_Club_DAENMROSRXO_ToMROX(PS_IN In)
{
PS_OUT Out;
float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vAmbient = g_AmbientTexture.Sample(DefaultSampler, In.vTexcoord);
vDiffuse.rgb += vEmissive.rgb;
vDiffuse.rgb += vAmbient.rgb;
if (vDiffuse.a < 0.2f) {
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
float4 vSRXO_Mask = g_AnisotropyTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vMRO_MASK = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
float Roughness = vSRXO_Mask.g;
float Occlusion = saturate(vSRXO_Mask.a * vMRO_MASK.b);
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
1.f);
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = float4(vMRO_MASK.r, Roughness, Occlusion, vSRXO_Mask.b);
// SRO
return Out;
}
struct PS_IN_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
struct PS_OUT_SHADOW
{
float fShadowLightDepth : SV_TARGET0;
};
PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In)
{
PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0;
Out.fShadowLightDepth = In.vProjPos.z;
return Out;
}
technique11 DefaultTechnique
{
pass EYELASH_DAOTHV_ToSRO // 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EYELASH_DAOTHV_ToSRO();
}
pass TEETH_SRXO_ToSRO // 1
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_TEETH_SRXO_ToSRO();
}
pass EYE_DN_ToSRO // 2
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EYE_DN_SRO();
}
pass EYE_OCC // 3
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EYE_OCC();
}
pass FACIAL_HAIR_DAOTHV_ToSRO // 4
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_FACIAL_HAIR_DAOTHV_ToSRO();
}
pass HEAD_HAIR_DAOTHV_ToSRO // 5
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HEAD_HAIR_DAOTHV_ToSRO();
}
pass HEADwtHAND_DSRXON_ToSRO // 6
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HEADwtHAND_DSRXON_ToSRO();
}
pass LOWER_DSRON_ToSRO // 7
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_LOWER_DSRON_ToSRO();
}
pass UPPER_DMRON_ToMRO // 8
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_UPPER_DMRON_ToMRO();
}
pass GLASSES_DMRON_ToMRO // 9
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_GLASSES_DMRON_ToMRO();
}
pass EmissiveMetalness_DENMRO_ToMRO // 10
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EmissiveMetalness_DENMRO_ToMRO();
}
pass MI_ClothSim_DSEN_ToSRO // 11
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO();
}
pass MI_Troll_Club_DAENMROSRXO_To // 12
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_MESH();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Troll_Club_DAENMROSRXO_ToMROX();
}
/////
pass TEETH_SRXO_ToSRO__OUTLINE_READ // 13
{
SetRasterizerState(RS_Front);
SetDepthStencilState(DSS_Default_OutLine_SRead, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_OUTLINE_READ();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_OUTLINE_READ();
}
pass TEETH_SRXO_ToSRO__OUTLINE_WRITE // 14
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_TEETH_SRXO_ToSRO();
}
pass EYE_DN_ToSRO__OUTLINE_WRITE // 15
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EYE_DN_SRO();
}
pass HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE // 16
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_HEADwtHAND_DSRXON_ToSRO();
}
pass UPPER_DMRON_ToMRO__OUTLINE_WRITE // 17
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_UPPER_DMRON_ToMRO();
}
pass EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE // 18
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EmissiveMetalness_DENMRO_ToMRO();
}
pass MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE // 19
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO();
}
///////
}
@@ -24,19 +24,38 @@ float g_fDisolveEdgeWidth;
float4 g_vDisolveEdgeColor;
float4 g_vCamPosition;
Texture2D g_DiffuseTexture;
Texture2D g_NormalTexture;
Texture2D g_DAOTexture;
Texture2D g_THVTexture;
Texture2D g_SurfaceParamsTexture;
Texture2D g_TransmissionTexture;
Texture2D g_EmissiveTexture;
Texture2D g_AmbientTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
Texture2D g_DeadDisolveTexture;
Texture2D g_DeadDisolveBurnTexture;
Texture2D g_DiffuseTexture;
Texture2D g_SpecularTexture;
Texture2D g_AmbientTexture;
Texture2D g_EmissiveTexture;
Texture2D g_HeightTexture;
Texture2D g_NormalTexture;
Texture2D g_ShininessTexture;
Texture2D g_OpacityTexture;
Texture2D g_DisplacementTexture;
Texture2D g_LightMapTexture;
Texture2D g_ReflectionTexture;
Texture2D g_BaseColorTexture;
Texture2D g_NormalCameraTexture;
Texture2D g_EmissionColorTexture;
Texture2D g_MetalnessTexture;
Texture2D g_Diffuse_RoughnessTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
Texture2D g_SheenTexture;
Texture2D g_ClearcoadTexture;
Texture2D g_TransmissionTexture;
Texture2D g_Maya_BaseTexture;
Texture2D g_Maya_SpecularTexture;
Texture2D g_Maya_Specular_ColorTexture;
Texture2D g_Maya_Specular_RoughnessTexture;
Texture2D g_AnisotropyTexture;
int g_iBinded_Texture[27];
@@ -29,19 +29,39 @@ float2 g_vClipBoxLTPos;
float g_fDisolveAmount;
float g_fDisolveEdgeWidth;
Texture2D g_DiffuseTexture;
Texture2D g_NormalTexture;
Texture2D g_DAOTexture;
Texture2D g_THVTexture;
Texture2D g_SurfaceParamsTexture;
Texture2D g_TransmissionTexture;
Texture2D g_EmissiveTexture;
Texture2D g_AmbientTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
Texture2D g_NoiseTexture;
Texture2D g_CausticsTexture;
Texture2D g_DiffuseTexture;
Texture2D g_SpecularTexture;
Texture2D g_AmbientTexture;
Texture2D g_EmissiveTexture;
Texture2D g_HeightTexture;
Texture2D g_NormalTexture;
Texture2D g_ShininessTexture;
Texture2D g_OpacityTexture;
Texture2D g_DisplacementTexture;
Texture2D g_LightMapTexture;
Texture2D g_ReflectionTexture;
Texture2D g_BaseColorTexture;
Texture2D g_NormalCameraTexture;
Texture2D g_EmissionColorTexture;
Texture2D g_MetalnessTexture;
Texture2D g_Diffuse_RoughnessTexture;
Texture2D g_AmbientOcclusionTexture;
Texture2D g_UnknownTexture;
Texture2D g_SheenTexture;
Texture2D g_ClearcoadTexture;
Texture2D g_TransmissionTexture;
Texture2D g_Maya_BaseTexture;
Texture2D g_Maya_SpecularTexture;
Texture2D g_Maya_Specular_ColorTexture;
Texture2D g_Maya_Specular_RoughnessTexture;
Texture2D g_AnisotropyTexture;
int g_iBinded_Texture[AI_TEXTURE_TYPE_MAX];
Texture2D g_MaskingTexture;
@@ -589,6 +589,10 @@ call Update_Shaders.bat
<Image Include="small.ico" />
</ItemGroup>
<ItemGroup>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_NPC_PBR_Anim.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
</FxCompile>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_UIEditor.hlsl">
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Effect</ShaderType>
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">5.0</ShaderModel>
@@ -1739,5 +1739,8 @@
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_VtxPos.hlsl">
<Filter>99.Define\SHADER</Filter>
</FxCompile>
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_NPC_PBR_Anim.hlsl">
<Filter>99.Define\SHADER</Filter>
</FxCompile>
</ItemGroup>
</Project>
+10 -2
View File
@@ -1764,7 +1764,7 @@ HRESULT CLoader::Loading_For_PhysXLevel()
_wstring strFileName = L"Prototype_GameObject_" + file.path().stem().wstring();
CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIROMENT, szFilePath);
CModel* pModel = CModel::Create(m_pDevice, m_pContext, MODEL::ENVIRONMENT, szFilePath);
/*For Prototype_Component_Model_*/
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, strFileName, pModel))) {
@@ -1859,7 +1859,7 @@ HRESULT CLoader::Loading_For_Bloom()
#pragma region HAIR
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.fbx", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
TEXT("Prototype_Component_SubTroll_Model")
));
@@ -2271,6 +2271,14 @@ HRESULT CLoader::Loading_For_ObjectViewer()
MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(),
TEXT("Desc_Box")
));
futures.emplace_back(Deferred_ModelLoad(
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander.bin", XMMatrixIdentity(),
TEXT("Prototype_Component_GerboldOlivander_Model")
));
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/GerboldOllivander/GerboldOlivander_Anim.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(),
TEXT("Prototype_Component_GerboldOlivander_Anim_Model")
));
for (auto& job : futures) {
@@ -19,6 +19,9 @@ namespace Editor
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, SPECTOR, END };
enum class SHADER_PASS_NPC_PBR_ANIM { EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
, OUTLINE_READ, TEETH_SRXO_ToSRO__OUTLINE_WRITE, EYE_DN_ToSRO__OUTLINE_WRITE, HEADwtHAND_DSRXON_ToSRO__OUTLINE_WRITE, UPPER_DMRON_ToMRO__OUTLINE_WRITE, EmissiveMetalness_DENMRO_ToMRO__OUTLINE_WRITE, MI_ClothSim_DSEN_ToSRO__OUTLINE_WRITE
, END};
enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, OUTLINE_WRITE, OUTLINE_READ, BLOOM, LAKE, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, SHADOW, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
@@ -21,6 +21,7 @@ namespace Editor {
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
#define FX_UIINSTANCE TEXT("FX_UIINSTANCE")
#define FX_VTXPOS TEXT("FX_VTXPOS")
#define FX_NPC_PBR_ANIM TEXT("FX_NPC_PBR_ANIM")
#pragma endregion
#pragma region MACRO_PROTOTYPE
@@ -229,7 +229,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
{
float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
fMetallic = vMRO.r;
@@ -238,7 +238,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
}
else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
{
fMetallic = 0.f;
+47 -16
View File
@@ -496,7 +496,7 @@ HRESULT CMaterial::UnbindAllMaterialTextures(CShader* shader)
return S_OK;
}
HRESULT CMaterial::Bind_SRV(CShader* pShader)
HRESULT CMaterial::Bind_SRV(CShader* pShader, MODEL eType)
{
if (FAILED(UnbindAllMaterialTextures(pShader))) {
return E_FAIL;
@@ -527,11 +527,16 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
break;
case aiTextureType_SPECULAR:
{
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) {
pConstantName = "g_SpecularTexture";
}
else {
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
}
}
}
} break;
@@ -542,37 +547,52 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
pConstantName = "g_EmissiveTexture";
break;
case aiTextureType_HEIGHT:
pConstantName = "g_HeightTexture";
break;
case aiTextureType_NORMALS:
pConstantName = "g_NormalTexture";
break;
case aiTextureType_SHININESS:
pConstantName = "g_ShininessTexture";
break;
case aiTextureType_OPACITY:
pConstantName = "g_OpacityTexture";
break;
case aiTextureType_DISPLACEMENT:
pConstantName = "g_DisplacementTexture";
break;
case aiTextureType_LIGHTMAP:
pConstantName = "g_LightMapTexture";
break;
case aiTextureType_REFLECTION:
pConstantName = "g_ReflectionTexture";
break;
case aiTextureType_BASE_COLOR:
pConstantName = "g_BaseColorTexture";
break;
case aiTextureType_NORMAL_CAMERA:
pConstantName = "g_NormalCameraTexture";
break;
case aiTextureType_EMISSION_COLOR:
pConstantName = "g_EmissionColorTexture";
break;
case aiTextureType_METALNESS:
{
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) {
pConstantName = "g_MetalnessTexture";
}
else {
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
}
}
}
} break;
case aiTextureType_DIFFUSE_ROUGHNESS:
pConstantName = "g_Diffuse_RoughnessTexture";
break;
case aiTextureType_AMBIENT_OCCLUSION:
pConstantName = "g_AmbientOcclusionTexture";
@@ -581,27 +601,38 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader)
pConstantName = "g_UnknownTexture";
break;
case aiTextureType_SHEEN:
pConstantName = "g_SheenTexture";
break;
case aiTextureType_CLEARCOAT:
pConstantName = "g_ClearcoadTexture";
break;
case aiTextureType_TRANSMISSION:
pConstantName = "g_TransmissionTexture";
break;
case aiTextureType_MAYA_BASE:
pConstantName = "g_Maya_BaseTexture";
break;
case aiTextureType_MAYA_SPECULAR:
pConstantName = "g_Maya_SpecularTexture";
break;
case aiTextureType_MAYA_SPECULAR_COLOR:
pConstantName = "g_Maya_Specular_ColorTexture";
break;
case aiTextureType_MAYA_SPECULAR_ROUGHNESS:
pConstantName = "g_Maya_Specular_RoughnessTexture";
break;
case aiTextureType_ANISOTROPY:
{
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
if (MODEL::PBR_ANIM == eType || MODEL::PBR_NONANIM == eType) {
pConstantName = "g_AnisotropyTexture";
}
else {
pConstantName = "g_SurfaceParamsTexture";
if (!m_SRVs[iTextureType].empty()) {
_float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX);
if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) {
return E_FAIL;
}
}
}
} break;
+78 -4
View File
@@ -92,7 +92,28 @@ HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader)
if (iMaterialIndex >= m_iNumMaterials) {
return E_FAIL;
}
return m_Materials[iMaterialIndex]->Bind_SRV(pShader);
return m_Materials[iMaterialIndex]->Bind_SRV(pShader, m_eType);
}
HRESULT CModel::Begin(_uint iMeshIndex, CShader* pShader, _bool OutLine)
{
if (iMeshIndex >= m_iNumMeshes) {
return E_FAIL;
}
_uint iMaterialIndex = m_Meshes[iMeshIndex]->Get_MaterialIndex();
if (iMaterialIndex >= m_iNumMaterials) {
return E_FAIL;
}
HRESULT hr = { E_FAIL };
if (false == OutLine) {
hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_UsingPass());
}
else {
hr = pShader->Begin(m_Materials[iMaterialIndex]->Get_OutLinePass());
}
return hr;
}
HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _char* pConstantName)
@@ -295,7 +316,7 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
m_bInitialRootRotSaved = false;
}
if (m_bIsSecondFinishedAnim)
if (m_bIsSecondFinishedAnim && !m_bIsSecondLoop)
{
m_bSecondStopBlend = true;
}
@@ -386,7 +407,6 @@ void CModel::Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLo
}
else
{
// 세컨드 애니 끄기
if (m_iCurrSecondAnimIndex != -1)
m_Animations[m_iCurrSecondAnimIndex]->Depart_Animation();
@@ -1465,7 +1485,9 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
if (FAILED(Ready_Materials(pModelFilePath))) {
return E_FAIL;
}
if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) {
ParseMaterialXml(pModelFilePath);
}
if (FAILED(Ready_Animations(m_Bones))) {
return E_FAIL;
}
@@ -1500,6 +1522,9 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
if (FAILED(Ready_Materials(pModelFilePath))) {
return E_FAIL;
}
if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) {
ParseMaterialXml(pModelFilePath);
}
if (FAILED(Ready_Animations(m_Bones))) {
return E_FAIL;
@@ -1538,6 +1563,48 @@ void CModel::LoadAdditionalAnimations(const char* ModelFilePath)
}
}
void CModel::ParseMaterialXml(const _char* pFilePath)
{
filesystem::path xmlFilePath = pFilePath;
xmlFilePath.replace_extension(".xml");
tinyxml2::XMLDocument xmlDoc;
if (xmlDoc.LoadFile(xmlFilePath.string().c_str()) != tinyxml2::XML_SUCCESS){
return;
}
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Material");
if (root == nullptr){
return;
}
_int iVisitIndex = 0;
for (tinyxml2::XMLElement* pElement = root->FirstChildElement();
pElement != nullptr;
pElement = pElement->NextSiblingElement(), ++iVisitIndex)
{
_int iOrderIndex = iVisitIndex;
{
const _char* szShaderIndex = pElement->Attribute("ShaderIndex");
_int iShaderIndex = -1;
if (szShaderIndex != nullptr) {
iShaderIndex = atoi(szShaderIndex);
}
m_Materials[iOrderIndex]->Set_UsingPass(iShaderIndex);
}
{
const _char* szShaderIndex = pElement->Attribute("OutLineWrite");
_int iShaderIndex = -1;
if (szShaderIndex != nullptr) {
iShaderIndex = atoi(szShaderIndex);
}
m_Materials[iOrderIndex]->Set_OutLinePass(iShaderIndex);
}
}
}
_bool CModel::LoadData(const _char* filename)
{
@@ -1949,6 +2016,13 @@ void CModel::Free()
void CModel::Describe_Entity()
{
GUI::Begin("Model_Desc");
if (GUI::CollapsingHeader("ModelAnimations")) {
for (_uint i = 0; i < m_iNumAnimations; ++i) {
if (GUI::Button(m_Animations[i]->Get_Name().c_str())) {
Set_AnimationIndex(i, false);
}
}
}
if (GUI::Button("SaveAnimIndexWithName")) {
_wstring wstrPath = TEXT("../Bin/AnimIndex.txt");
HANDLE hFile = CreateFile(wstrPath.c_str(),
@@ -14,6 +14,7 @@ void CRenderer::Render()
if (FAILED(m_pShader->Bind_RawValue("g_vResolution", &vResolution, sizeof(_float2)))) {
assert(false);
}
Render_Priority();
Render_Shadow();
Render_NonBlend();
+1 -1
View File
@@ -32,7 +32,7 @@ enum class PXBODYSTATE {
enum class MOUSEKEYSTATE { LBUTTON, RBUTTON, WBUTTON, XBUTTON };
enum class MOUSEMOVESTATE { X, Y, W };
enum class D3DTS { VIEW, PROJ, VIEW_INV, PROJ_INV, END };
enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIRONMENT, ANIM_LOCAL,NONANIM_LOCAL};
enum class MODEL { ANIM, NONANIM, PBR_NONANIM, PBR_ANIM, ENVIRONMENT, ANIM_LOCAL,NONANIM_LOCAL, END};
enum class NAVI_POINT { A, B, C, END };
enum class NAVI_LINE { AB, BC, CA, END };
+7 -2
View File
@@ -13,7 +13,11 @@ class ENGINE_DLL CMaterial final : public CBase
public:
HRESULT UnbindAllMaterialTextures(class CShader* shader);
HRESULT Bind_SRV(class CShader* pShader);
HRESULT Bind_SRV(class CShader* pShader, MODEL eType = MODEL::END);
_int Get_UsingPass() { return m_iUsingPass; }
void Set_UsingPass(_int iPass) { m_iUsingPass = iPass; }
_int Get_OutLinePass() { return m_iOutLinePass; }
void Set_OutLinePass(_int iPass) { m_iOutLinePass = iPass; }
private:
class CGameInstance* m_pGameInstance = { nullptr };
@@ -21,7 +25,8 @@ class ENGINE_DLL CMaterial final : public CBase
ID3D11DeviceContext* m_pContext = { nullptr };
vector<ID3D11ShaderResourceView*> m_SRVs[AI_TEXTURE_TYPE_MAX];
_int m_iUsingPass = { -1 };
_int m_iOutLinePass = { -1 };
#ifdef EDITOR_PROJECT
public:
+23 -23
View File
@@ -32,19 +32,19 @@ class ENGINE_DLL CModel final : public CComponent
virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation);
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
_bool Play_Anim(_float fTimeDelta, CTransform* pTransform);
_bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform);
void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f);
void Set_Second_AnimationIndex(_uint BoneIndex,_uint iIndex, _bool isLoop = false);
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
_bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; }
_bool IsLoopAnim() const { return m_bIsLoop; }
void Set_CurrentTrackPosition(_float TrackPosition);
const _char* Get_AnimList(_uint iIndex);
_float Get_CurrentTrackPosition();
_float Get_CurrentTrackProgressRatio();
_float Get_TrackProgressRatio(_uint iIndex);
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
_bool Play_Anim(_float fTimeDelta, CTransform* pTransform);
_bool Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform);
void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false,_float fAnimSpeed = 1.f);
void Set_Second_AnimationIndex(_uint BoneIndex, _uint iIndex, _bool isLoop = false);
_bool IsFinishedAnim() const { return m_bIsFinishedAnim; }
_bool IsFinishedSecondAnim() const { return m_bIsSecondFinishedAnim; }
_bool IsLoopAnim() const { return m_bIsLoop; }
void Set_CurrentTrackPosition(_float TrackPosition);
const _char* Get_AnimList(_uint iIndex);
_float Get_CurrentTrackPosition();
_float Get_CurrentTrackProgressRatio();
_float Get_TrackProgressRatio(_uint iIndex);
size_t Get_AnimSize() { return m_Animations.size(); }
void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; }
@@ -59,26 +59,25 @@ class ENGINE_DLL CModel final : public CComponent
void Set_BlendDuration(_float Duration) { m_fBlendDuration = Duration; }
#pragma endregion
#pragma region Mesh
const _char* Get_MeshName(_uint iIndex);
_uint Get_NumMeshes() const { return m_iNumMeshes; }
void Update_RootBone(_float Amount = 1.f);
void Initialize_RootBone();
const _char* Get_MeshName(_uint iIndex);
_uint Get_NumMeshes() const { return m_iNumMeshes; }
void Update_RootBone(_float Amount = 1.f);
void Initialize_RootBone();
#pragma endregion
#pragma region Bone
HRESULT Bind_BoneMatrices(_uint iMeshIndex, class CShader* pShader, const _char* pConstantName);
const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const;
_matrix Get_BoneMatrix(const _char* pBoneName) const;
_matrix Get_BoneLocalMatrix(const _char* pBoneName) const;
const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const;
_matrix Get_BoneMatrix(const _char* pBoneName) const;
_matrix Get_BoneLocalMatrix(const _char* pBoneName) const;
static _int Get_BoneIndex(const _char* pBoneName, vector<class CBone*> Bones); // 본의 벡터와 이름을 넘겨주면 인덱스를 넘겨줌 ( n 순회 )
_int Get_BoneIndex(const _char* pBoneName) const;
_matrix Get_BoneMatrix(_uint iBoneIndex);
void Combined_BoneMatrix();
#pragma endregion
#pragma region Material
HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader);
HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader);
HRESULT Begin(_uint iMeshIndex, class CShader* pShader, _bool OutLine = false);
#pragma endregion
void ComputeAnimation(_uint AnimIndex);
@@ -209,6 +208,7 @@ class ENGINE_DLL CModel final : public CComponent
void LoadAdditionalAnimations(const char* ModelFilePath);
bool LoadData(const _char* filename);
void LoadAnim(const _char* fileName);
void ParseMaterialXml(const _char* filePath);
//
virtual HRESULT Initialize(void* pArg) override;