This commit is contained in:
hyunbin14
2025-11-30 17:21:54 +09:00
171 changed files with 7099 additions and 773 deletions
@@ -1,3 +1,4 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
@@ -9,7 +10,7 @@ int g_iImageCountY;
uint g_iIndexU;
uint g_iIndexV;
uint g_iQuestType;
uint g_iSpellType;
int g_iSpellType;
float g_fPI;
float g_fFar;
@@ -505,22 +506,22 @@ PS_OUT PS_SpellAnim(PS_IN In)
switch (g_iSpellType)
{
case 0:
BGColor = float3(208.f, 179.f, 54.f) / 255.f;
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
break;
case 1:
BGColor = float3(89.f, 32.f, 215.f) / 255.f;
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
break;
case 2:
BGColor = float3(190.f, 46., 34.f) / 255.f;
break;
case 3:
BGColor = float3(37.f, 129.f, 162.f) / 255.f;
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
break;
case 4:
BGColor = float3(134.f, 171.f, 78.f) / 255.f;
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
break;
case 5:
BGColor = float3(0.f, 80.f, 55.f) / 255.f;
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
case 6:
BGColor = float3(0.f, 0.f, 0.f);
@@ -541,11 +542,11 @@ PS_OUT PS_SpellAnim(PS_IN In)
color1 = tex3;
float wave1 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
float wave2 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f , waveUV.y = (OverrayUV.y - waveThreshold1) /(waveThreshold2 - waveThreshold1));
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
waveUV = saturate(waveUV);
float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r;
@@ -895,7 +896,7 @@ PS_OUT PS_Magic_Item(PS_IN In)
float2 OverrayUV = In.vTexcoord;
float CoolTime = 0.f + g_fDeltaV;
float CoolTime2 = 0.f + g_fDeltaV + 0.05;
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
tex3.rgb *= BGColor;
@@ -913,16 +914,20 @@ PS_OUT PS_Magic_Item(PS_IN In)
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
waveUV = saturate(waveUV);
float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r;
if (g_fDeltaV <= 1.f)
{
if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
{
color1.rgb = float3(1.f, 1.f, 1.f);
color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f;
}
}
if (OverrayUV.y <= CoolTime)
float waveThreshold = CoolTime + wave1;
if (OverrayUV.y <= waveThreshold)
{
color1.a = 0.f;
}
@@ -961,6 +966,187 @@ PS_OUT PS_Magic_Item(PS_IN In)
return Out;
}
PS_OUT PS_Spell_Preview(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 uv = In.vTexcoord;
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
float OriginLeft = g_fNine_Slice.x;
float OriginRight = g_fNine_Slice.y;
float OriginTop = g_fNine_Slice.z;
float OriginBottom = g_fNine_Slice.w;
float CurrentLeft = OriginLeft;
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
float CurrentTop = OriginTop;
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
float2 Finaluv = In.vTexcoord;
if (CurrentPixelPosition.x < CurrentLeft)
{
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
}
else if (CurrentPixelPosition.x > CurrentRight)
{
float dist = CurrentPixelPosition.x - CurrentRight;
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
}
else
{
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
}
if (CurrentPixelPosition.y < CurrentTop)
{
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
}
else if (CurrentPixelPosition.y > CurrentBottom)
{
float dist = CurrentPixelPosition.y - CurrentBottom;
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
}
else
{
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
}
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv);
Color = tex1;
tex3.rgb = tex2.rgb;
Color = lerp(Color, tex3, tex3.a);
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv);
if (inside1)
{
Color = lerp(Color, tex4, tex4.a);
}
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Spell_Header(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float3 BGColor= float3(1.f, 1.f, 1.f);
switch (g_iSpellType)
{
case 0:
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
break;
case 1:
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
break;
case 2:
BGColor = float3(190.f, 46., 34.f) / 255.f;
break;
case 3:
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
break;
case 4:
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
break;
case 5:
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
case 6:
BGColor = float3(0.f, 0.f, 0.f);
break;
}
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
Color.rgb *= BGColor;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Spell_Header_Line(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 uv = In.vTexcoord;
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
float OriginLeft = g_fNine_Slice.x;
float OriginRight = g_fNine_Slice.y;
float OriginTop = g_fNine_Slice.z;
float OriginBottom = g_fNine_Slice.w;
float CurrentLeft = OriginLeft;
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
float CurrentTop = OriginTop;
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
float2 Finaluv = In.vTexcoord;
if (CurrentPixelPosition.x < CurrentLeft)
{
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
}
else if (CurrentPixelPosition.x > CurrentRight)
{
float dist = CurrentPixelPosition.x - CurrentRight;
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
}
else
{
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
}
if (CurrentPixelPosition.y < CurrentTop)
{
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
}
else if (CurrentPixelPosition.y > CurrentBottom)
{
float dist = CurrentPixelPosition.y - CurrentBottom;
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
}
else
{
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
}
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
//Color.rgb = tex2.rgb;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
technique11 PosTexTechnique11
{
pass Default
@@ -1161,4 +1347,34 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Magic_Item();
}
pass Spell_Preview
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Preview();
}
pass Spell_Header
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Header();
}
pass Spell_Header_Line
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Header_Line();
}
}
+11 -6
View File
@@ -25,15 +25,18 @@ HRESULT CBombard::Initialize_Prototype()
HRESULT CBombard::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
if (FAILED(__super::Initialize(pArg))){
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard")))
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Bombard"))) {
return E_FAIL;
}
m_wstrEffectName = L"Bombard";
@@ -78,13 +81,15 @@ void CBombard::Late_Update(_float fTimeDelta)
HRESULT CBombard::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
if (pObject == nullptr) {
return E_FAIL;
}
m_pOwner = pObject;
if (FAILED(Ready_Child()))
if (FAILED(Ready_Child())) {
return E_FAIL;
}
Reset_EffectParts();
@@ -141,7 +146,7 @@ HRESULT CBombard::Ready_Child()
XMStoreFloat3(&vDir, vOwnerLook * 2.f);
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_BOMBARD_STRIKE);
Desc.vDeltaPos = vDir;
Desc.vLifeTime = { 0.f, 2.f };
+6 -3
View File
@@ -20,12 +20,14 @@ HRESULT CBroom::Initialize_Prototype()
HRESULT CBroom::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components()))
if (FAILED(Ready_Components())) {
return E_FAIL;
}
Add_FSM();
@@ -105,8 +107,9 @@ HRESULT CBroom::Ready_Components()
/* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Broom_Model"),
reinterpret_cast<CComponent**>(&m_pModelCom))))
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
return E_FAIL;
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
@@ -64,14 +64,17 @@ HRESULT CBuildingContainer::Render_BoundingBox()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(0)))
if (FAILED(m_pShaderCom->Begin(0))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources()))
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Render()))
if (FAILED(m_pVIBufferCom->Render())) {
return E_FAIL;
}
m_pOcclusionQueryCom->End_Query();
@@ -112,8 +115,9 @@ HRESULT CBuildingContainer::Ready_Components(void* pArg)
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_VTXPOS,
reinterpret_cast<CComponent**>(&m_pShaderCom))))
return E_FAIL;
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
return E_FAIL;
}
MAP_CONTAINER_DESC* pDesc = static_cast<MAP_CONTAINER_DESC*>(pArg);
@@ -140,13 +144,15 @@ HRESULT CBuildingContainer::Ready_Components(void* pArg)
/* Com_VIBuffer */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Box"),
reinterpret_cast<CComponent**>(&m_pVIBufferCom), &vBoxCorners)))
reinterpret_cast<CComponent**>(&m_pVIBufferCom), &vBoxCorners))) {
return E_FAIL;
}
/* Com_OcclusionQuery */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_OcclusionQuery"),
reinterpret_cast<CComponent**>(&m_pOcclusionQueryCom))))
reinterpret_cast<CComponent**>(&m_pOcclusionQueryCom)))) {
return E_FAIL;
}
return S_OK;
}
+19 -8
View File
@@ -26,14 +26,17 @@ HRESULT CDecendo::Initialize_Prototype()
HRESULT CDecendo::Initialize(void* pArg)
{
if (FAILED(__super::Initialize(pArg)))
if (FAILED(__super::Initialize(pArg))) {
return E_FAIL;
}
if (FAILED(Ready_Components(pArg)))
if (FAILED(Ready_Components(pArg))) {
return E_FAIL;
}
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo")))
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Decendo"))) {
return E_FAIL;
}
m_wstrEffectName = L"Decendo";
@@ -62,8 +65,9 @@ void CDecendo::Priority_Update(_float fTimeDelta)
void CDecendo::Update(_float fTimeDelta)
{
if (m_bVisible == false)
if (m_bVisible == false){
return;
}
__super::Update(fTimeDelta);
@@ -103,15 +107,17 @@ void CDecendo::Late_Update(_float fTimeDelta)
HRESULT CDecendo::Pre_Setting(CGameObject* pObject)
{
if (pObject == nullptr)
if (pObject == nullptr) {
return E_FAIL;
}
/* 부모 할당 */
m_pOwner = pObject;
/* 피직스 생성*/
if (FAILED(Ready_Child()))
if (FAILED(Ready_Child())) {
return E_FAIL;
}
/* 초기 셋팅 초기화 */
Reset_EffectParts();
@@ -171,6 +177,7 @@ HRESULT CDecendo::Ready_Child()
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.f };
@@ -249,14 +256,15 @@ void CDecendo::Free()
{
__super::Free();
if (m_pPhysHitBox != nullptr)
if (m_pPhysHitBox != nullptr){
SAFE_RELEASE(m_pPhysHitBox);
}
SAFE_RELEASE(m_pProjectile_Blur);
SAFE_RELEASE(m_pProjectile);
}
#ifdef _DEBUG
void CDecendo::Describe_Entity()
{
GUI::Begin("VALUE");
@@ -270,6 +278,9 @@ void CDecendo::Describe_Entity()
GUI::End();
}
#endif // _DEBUG
HRESULT CDecendo::Bind_ShaderResources()
{
return S_OK;
+2 -2
View File
@@ -148,7 +148,7 @@ HRESULT CGoblin::Ready_Components()
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.1f;
@@ -167,7 +167,7 @@ HRESULT CGoblin::Ready_Components()
m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION));
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER);
Desc.iSubKind = ENUM_CLASS(PXOBJECT::GOBLIN_WARRIOR);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -26,6 +26,16 @@ void CInfoInstance::Change_Level()
m_pMapInfo->Change_Level();
}
void CInfoInstance::Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight)
{
m_pPlayerInfo->Update_CameraCoordinateSystem(vLook, vRight);
}
pair<_float3, _float3> CInfoInstance::Get_CameraCoordinateSystem()
{
return m_pPlayerInfo->Get_CameraCoordinateSystem();
}
#pragma region MONSTER_INFO
HRESULT CInfoInstance::Regist_PlayerAlly(CUnit* pUnit)
{
@@ -204,7 +204,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag)
CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{};
Desc.vPos = { 0.f, 0.f, 0.f };
Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f };
Desc.iSubKind = 23;
Desc.iSubKind = ENUM_CLASS(PXOBJECT::WALL);
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXWall>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) {
return E_FAIL;
-15
View File
@@ -263,21 +263,6 @@ HRESULT CLoader::Loading_For_GamePlay()
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
}
return S_OK;
});
Asset_FileLoad("../Bin/Resources/Textures/HUD", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath)
{
_string strFilePath = pFilePath;
_wstring wstrFilePath = CMyTools::ToWstring(strFilePath);
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) {
return E_FAIL;
+1 -1
View File
@@ -28,7 +28,7 @@ HRESULT CMainApp::Initialize()
EngineDesc.iWinSizeY = g_iWinSizeY;
EngineDesc.iStaticLevel = g_iStaticLevel;
EngineDesc.iNumLevels = ENUM_CLASS(LEVEL::END);
EngineDesc.iNumCollidableGroup = ENUM_CLASS(COLLIDABLEOBJECT::END);
EngineDesc.iNumCollidableGroup = ENUM_CLASS(COLLIDABLEOBJECT_KIND::END);
//ShowCursor(false);
+1 -1
View File
@@ -66,7 +66,7 @@ HRESULT CMonster::Render_OutLine()
GUI::SetNextItemWidth(80.f);
static _float3 vOutLineColor = _float3(1.f, 0.960784376f, 0.933333397f);
static _float fOutLineThickness = { 1.f }; // 카메라로부터 거리가 멀어지면 늘어나게끔 바꾸는걸 추천함
static _float fOutLineThickness = { 2.f }; // 카메라로부터 거리가 멀어지면 늘어나게끔 바꾸는걸 추천함
static _float fOutLineScale = { 1.f };
static _float fOutLinePower = { 1.f };
GUI::ColorPicker3("vOutLineColor", (_float*)&vOutLineColor);
+8 -5
View File
@@ -36,8 +36,9 @@ HRESULT CNomalJap::Initialize(void* pArg)
m_wstrEffectName = L"Nomal_Jap";
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap")))
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Jap"))){
return E_FAIL;
}
m_pProjectile_Side = Get_PartObject<CEffectParts>("JapProjSide");
@@ -114,8 +115,9 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
m_pOwner = pObject;
/* 피직스 생성*/
if (FAILED(Ready_Child()))
if (FAILED(Ready_Child())){
return E_FAIL;
}
/* 초기 셋팅 초기화 */
Reset_EffectParts();
@@ -137,12 +139,10 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject)
Get_PartObject<CTrailObject>()->Get_Component<CTrail>()->Reset_Trail();
//나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬
m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component<CTransform>()->Get_State(STATE::LOOK));
_vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
_vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2));
m_vRotateUp = XMVector3Rotate(vUp, vQuaternion);
@@ -172,7 +172,7 @@ HRESULT CNomalJap::Ready_Child()
XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f));
Desc.vRotRPY = { 0.f, 0.f, 0.f };
Desc.iSubKind = 70;
Desc.iSubKind = ENUM_CLASS(PXOBJECT::SKILL_NORMALJAP);
Desc.vDeltaPos = _float3(0.f, 0.f, 0.f);
Desc.vLifeTime = { 0.f, 1.f };
@@ -249,12 +249,15 @@ void CNomalJap::Free()
Safe_Release(m_pProjectile_Side);
}
#ifdef _DEBUG
void CNomalJap::Describe_Entity()
{
}
#endif // _DEBUG
HRESULT CNomalJap::Bind_ShaderResources()
{
return S_OK;
+33 -13
View File
@@ -103,7 +103,7 @@ HRESULT CPlayer::Initialize(void* pArg)
void CPlayer::Priority_Update(_float fTimeDelta)
{
ReLockOnTarget();
SetGravity();
m_pTransformCom->RewindMomentum();
__super::Priority_Update(fTimeDelta);
@@ -197,15 +197,16 @@ void CPlayer::Render_CameraCoordinateSystem()
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
GUI::Button("##0", { 100.f, 100.f }); GUI::SameLine();
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), {100.f, 100.f}); GUI::SameLine();
GUI::Button("##2", {100.f, 100.f});
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine();
GUI::Button("##4", { 100.f, 100.f }); GUI::SameLine();
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f });
GUI::Button("##6", {100.f, 100.f}); GUI::SameLine();
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine();
GUI::Button("##8", {100.f, 100.f});
_float fButtonSize = 25.f;
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button("##2", { fButtonSize, fButtonSize });
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
GUI::Button("##8", { fButtonSize, fButtonSize });
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
@@ -256,12 +257,12 @@ HRESULT CPlayer::Ready_Components()
{ // CCT
CCharacter_Controller::Character_Controller_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER);
Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER);
Desc.pTransform = m_pTransformCom;
Desc.eBodyType = ACTOR::CAPSULE;
Desc.fContactOffset = 0.17f;
Desc.fMaterial = { 0.5f, 0.5f, 0.6f };
Desc.bAutoStepping = { false };
Desc.bAutoStepping = { true };
Desc.fStepOffset = { 0.05f };
Desc.fRadius = 0.5f;
Desc.fHeight = 1.0f;
@@ -271,11 +272,12 @@ HRESULT CPlayer::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
return E_FAIL;
}
m_pCharacter_Controller->SetGravity(false);
}
{ // DO
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER);
Desc.iSubKind = ENUM_CLASS(PXOBJECT::PLAYER);
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
@@ -340,6 +342,23 @@ void CPlayer::ReLockOnTarget()
}
}
void CPlayer::SetGravity()
{
PSX::PxControllerCollisionFlags eCollisionFlags = m_pCharacter_Controller->Get_CollisionFlags();
eCollisionFlags;
if ( false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_DOWN)
&& false == eCollisionFlags.isSet(PSX::PxControllerCollisionFlag::Enum::eCOLLISION_SIDES)) {
if (false == m_pFSM->IsEnable(STATEANIM::JUMP)) { // 벽에 닿지 않았는데 점프 중이 아닐 땐 중력 on
m_pCharacter_Controller->SetGravity(true);
}
else { // 점프 중일 땐 off
m_pCharacter_Controller->SetGravity(false);
}
}
else { // 벽에 닿는중일 땐 항상 중력 off
m_pCharacter_Controller->SetGravity(false);
}
}
void CPlayer::Update_CameraCoordinateSystem()
{
@@ -347,6 +366,7 @@ void CPlayer::Update_CameraCoordinateSystem()
_vector xmvUp = XMVectorSet(0.f, 1.f, 0.f, 0.f);
XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook)));
XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook);
m_pInfoInstance->Update_CameraCoordinateSystem(m_vCameraLookDir, m_vRimLightColor);
}
_matrix CPlayer::Get_WandPos()
@@ -11,6 +11,17 @@ void CPlayerInfo::Update(_float fTimeDelta)
{
}
void CPlayerInfo::Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight)
{
m_vCameraLookDir = vLook;
m_vCameraRightDir = vRight;
}
pair<_float3, _float3> CPlayerInfo::Get_CameraCoordinateSystem()
{
return { m_vCameraLookDir, m_vCameraRightDir };
}
void CPlayerInfo::Change_Level()
{
}
+11 -29
View File
@@ -211,17 +211,13 @@ HRESULT CSlot_Number::Ready_Components(void* pArg)
void CSlot_Number::UV()
{
pUVDesc[0].fUVStart = Meter_Index(1);
pUVDesc[0].fUVEnd = Compute_UVY(1);
pUVDesc[1].fUVStart = Meter_Index(2);
pUVDesc[1].fUVEnd = Compute_UVY(2);
pUVDesc[2].fUVStart = Meter_Index(3);
pUVDesc[2].fUVEnd = Compute_UVY(3);
pUVDesc[3].fUVStart = Meter_Index(4);
pUVDesc[3].fUVEnd = Compute_UVY(4);
pUVDesc[0].fUV = Meter_Index(1);
pUVDesc[1].fUV = Meter_Index(2);
pUVDesc[2].fUV = Meter_Index(3);
pUVDesc[3].fUV = Meter_Index(4);
}
_float2 CSlot_Number::Meter_Index(_uint Number)
_float4 CSlot_Number::Meter_Index(_uint Number)
{
m_fIamge_Size = { 320.f, 128.f };
@@ -234,29 +230,15 @@ _float2 CSlot_Number::Meter_Index(_uint Number)
_uint frameX = Number % iXCount;
_uint frameY = Number / iXCount;
_float2 UVStart;
UVStart.x = frameX * frameWidth / m_fIamge_Size.x;
UVStart.y = frameY * frameHeight / m_fIamge_Size.y;
_float4 UV;
UV.x = frameX * frameWidth / m_fIamge_Size.x;
UV.y = frameY * frameHeight / m_fIamge_Size.y;
UV.z = UV.x + (frameWidth / m_fIamge_Size.x);
UV.w = UV.y + (frameHeight / m_fIamge_Size.y);
return UVStart;
return UV;
}
_float2 CSlot_Number::Compute_UVY(_uint Number)
{
m_fIamge_Size = { 320.f, 128.f };
_float frameWidth = 64.f;
_float frameHeight = 64.f;
// Start 구함
_float2 UVStart = Meter_Index(Number);
_float2 UVEnd;
UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x);
UVEnd.y = UVStart.y + (frameHeight / m_fIamge_Size.y);
return UVEnd;
}
CSlot_Number* CSlot_Number::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
@@ -44,10 +44,11 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
m_fAngle = XMConvertToRadians(-135.f);
m_fAlpha = 1.f;
m_fAlphaTime = 1.f;
m_vUVScale.x = 1.f;
m_vUVScale.y = 1.f;
m_fCoolTime = 5.f;
m_fSortZ = 0.01f;
m_iSkillType = ENUM_CLASS(SKILLTYPE::CONTROL);
m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
Compute_UI(5);
m_bActive = true;
return S_OK;
@@ -55,7 +56,7 @@ HRESULT CSpell_Overlay::Initialize(void* pArg)
void CSpell_Overlay::Compute_UI(_uint SpellID)
{
_float2 fImage_Size = { 1024.f, 1536.f };
_float2 fImage_Size = { 1024.f, 1536.f};
_uint iCountX = 4;
_uint iCountY = 6;
@@ -154,7 +155,7 @@ HRESULT CSpell_Overlay::Render()
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLTYPE))))
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
{
return E_FAIL;
}
@@ -201,6 +202,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
{
return E_FAIL;
@@ -221,7 +226,7 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSkillType, sizeof(_float))))
if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
{
return E_FAIL;
}
@@ -241,6 +246,10 @@ HRESULT CSpell_Overlay::Bind_ShaderResources()
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
{
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
{
return E_FAIL;
@@ -274,6 +283,10 @@ HRESULT CSpell_Overlay::Ready_Components(void* pArg)
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast<CComponent**>(&m_pDiffuse_TextureCom3), nullptr)))
{
return E_FAIL;
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
{
return E_FAIL;
@@ -315,6 +328,7 @@ void CSpell_Overlay::Free()
SAFE_RELEASE(m_pDiffuse_TextureCom);
SAFE_RELEASE(m_pDiffuse_TextureCom1);
SAFE_RELEASE(m_pDiffuse_TextureCom2);
SAFE_RELEASE(m_pDiffuse_TextureCom3);
SAFE_RELEASE(m_pShaderCom);
SAFE_RELEASE(m_pVIBufferCom);
}
@@ -39,7 +39,7 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_fAlpha = 1.f;
m_fTimeMult = 3.f;
m_fAngle = XMConvertToRadians(45);
m_fAngle = XMConvertToRadians(-135);
m_fAlphaTime = 1.f;
m_fOffSetX = 101.f;
m_fOffSetY = 101.f;
@@ -47,7 +47,6 @@ HRESULT CSpell_Slot::Initialize(void* pArg)
m_pVIBufferCom->Set_Cloned(true);
m_pVIBufferCom->Set_Pos(380.f, -30.f, m_fOffSetX, m_fOffSetY, m_iCols);
m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY);
m_pVIBufferCom->Set_ImageUV();
m_bActive = true;
return S_OK;
}
+25 -7
View File
@@ -37,7 +37,7 @@ HRESULT CTerrain::Initialize(void* pArg)
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
Desc.pMeshName = TEXT("Hogsmeade_HeightMap");
Desc.iSubKind = 998;
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
/* Com_RigidBody */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"),
reinterpret_cast<CComponent**>(&m_pRigidBody), &Desc))) {
@@ -74,10 +74,31 @@ HRESULT CTerrain::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
#ifdef _DEBUG
static _int iValue1 = 16;
static _int iValue2 = 16;
static _int iValue3 = 16;
GUI::SliderInt("DSN1", (_int*)&iValue1, 1, 1024);
GUI::SliderInt("DSN2", (_int*)&iValue2, 1, 1024);
GUI::SliderInt("DSN3", (_int*)&iValue3, 1, 1024);
m_vDRN.x = 1.f / (_float)iValue1;
m_vDRN.y = 1.f / (_float)iValue2;
m_vDRN.z = 1.f / (_float)iValue3;
#endif // _DEBUG
if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseMultiplier", &m_vDRN.x, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fSurfaceMultiplier", &m_vDRN.y, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_fNormalMultiplier", &m_vDRN.z, sizeof(_float)))) {
return E_FAIL;
}
#ifdef _DEBUG
if (m_bWasWireFrame)
{
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::TERRAIN)))) {
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::ENV_TERRAIN_ANISO)))) {
return E_FAIL;
}
}
@@ -87,14 +108,11 @@ HRESULT CTerrain::Render()
return E_FAIL;
}
}
#else
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::DEFAULT)))) {
#endif // _DEBUG
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::ENV_TERRAIN_ANISO)))) {
return E_FAIL;
}
#endif // _DEBUG
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
return E_FAIL;
+110 -4
View File
@@ -3,23 +3,129 @@
namespace Client
{
enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END };
enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END };
enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT };
enum class MAPOBJECT_RENDER_TYPE { NORMAL, DECAL, GLASS };
enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, HAIR, EYELASH, OUTLINE_WRITE, OUTLINE_READ, END };
enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, 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, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END };
enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, ENV_TERRAIN_ANISO, END };
enum class SHADER_PASS_PARTICLE { EXPLOSION, END };
enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, TRAIL_BLOOM, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, ALPHA_BLEND, BLOOM, END };
enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, END };
enum class SHADER_PASS_UIEDITOR { DEFAULT, 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, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END };
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
enum class SKILL_TYPE { JAP, BOMBARD, DESCENDO, PROTEGO, END };
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
}
namespace Client {
enum class COLLIDABLEOBJECT_KIND {
NOT_DEFINE,
PLAYER,
MONSTER,
HOSTILE_HITBOX,
ALLY_HITBOX,
NEUTRAL_HITBOX,
ENVIRONMENT,
NPC,
ITEM,
TRIGGERBOX,
REGION,
NOCOLLIDE,
END,
};
enum class PXOBJECT : _uint {
#pragma region NOT_DEFINE
NOT_DEFINE = 000,
#pragma endregion
#pragma region PLAYER
PLAYER = 010,
#pragma endregion
#pragma region MONSTER
MONSTER = 030,
GOBLIN_WARRIOR, // 031
GOBLIN_MAGICIAN,
GOBLIN_THEIF,
TROLL,
PENSIVE_GUARDIAN,
#pragma endregion
#pragma region HOSTILE_HITBOX
HOSTILE_HITBOX = 100,
GOBLIN_SMASH,
GOBLIN_DAGGER,
GOBLIN_SHIELD_BREAK_MELEE,
GOBLIN_SHIELD_BREAK_MAGIC,
GOBLIN_NORMAL_MAGIC,
#pragma endregion
#pragma region ALLY_HITBOX
ALLY_HITBOX = 200,
SKILL_REVAILIO,
SKILL_ACCIO,
SKILL_DEPULSO,
SKILL_DEPULSO_OBSTACLE,
SKILL_DEPULSO_OBSTACLE_FLAMED,
SKILL_NORMALJAP,
SKILL_NORMALJAP_FINAL,
SKILL_BOMBARD_STRIKE,
SKILL_BOMBARD_FLAME,
SKILL_INCENDIO_STRIKE,
SKILL_INCENDIO_SPREAD,
#pragma endregion
#pragma region NEUTRAL_HITBOX
NEUTRAL_HITBOX = 300,
FLAMED_FLOOR,
#pragma endregion
#pragma region ENVIRIONMENT
ENVIRIONMENT = 400,
TERRAIN,
WATER,
WALL,
WALL_BREAKABLE,
WALL_CLIMBABLE,
DOOR,
BUILDING,
BOX,
#pragma endregion
#pragma region NPC
NPC = 500,
#pragma endregion
#pragma region ITEM
ITEM = 600,
DROPITEM = 630,
TRAP = 660,
#pragma endregion
#pragma region TRIGGERBOX
TRIGGERBOX = 700,
CINEMATIC = 770,
CINEMATIC_INTRO,
CINEMATIC_HOGSMEADE_ENTER,
CINEMATIC_TROLL_ENCOUNTER,
CINEMATIC_TROLL_DEAD,
#pragma endregion
#pragma region REGION
REGION = 800,
HOGWARTS,
HOGSMEADE,
#pragma endregion
#pragma region NOCOLLIDE
NOCOLLIDE = 900,
GAIL,
#pragma endregion
END = 999
};
}
@@ -15,4 +15,15 @@ namespace Client
vector<_wstring> pRigidBodyTags;
vector<CRigidBody_Static*> LoadedRigidBody;
}FOLDER_LOAD;
typedef struct tagSpellInfo
{
_uint iSpell_ID{};
_wstring pSpell_Name{};
_uint iSpell_Type{};
_uint iSpell_CoolTime{};
_bool bSpell_Lock = false;
_bool bEquip_Spell = false;
}SPELLINFO;
};
@@ -25,6 +25,10 @@ class CInfoInstance final : public CBase
void Update(_float fTimeDelta);
void Change_Level();
#pragma region PLAYER_INFO
void Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight);
pair<_float3, _float3> Get_CameraCoordinateSystem();
#pragma endregion
#pragma region MONSTER_INFO
HRESULT Regist_PlayerAlly(CUnit* pUnit);
HRESULT Deregist_PlayerAlly(CUnit* pUnit);
+1
View File
@@ -60,6 +60,7 @@ class CPlayer final : public CUnit
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
void ReLockOnTarget();
void SetGravity();
void Update_CameraCoordinateSystem();
#ifdef _DEBUG
@@ -19,6 +19,8 @@ class CPlayerInfo final : public CBase
void Update(_float fTimeDelta);
void Change_Level();
void Update_CameraCoordinateSystem(_float3& vLook, _float3& vRight);
pair<_float3, _float3> Get_CameraCoordinateSystem();
private:
CGameInstance* m_pGameInstance = { nullptr };
class CInfoInstance* m_pInfoInstance = { nullptr };
@@ -27,6 +29,8 @@ class CPlayerInfo final : public CBase
private:
CTransform* m_pTransform = { nullptr };
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
_float3 m_vCameraRightDir = { 1.f, 0.f, 0.f };
private:
+1 -2
View File
@@ -33,8 +33,7 @@ class CSlot_Number final : public CElementObject
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
void UV();
_float2 Meter_Index(_uint Numver);
_float2 Compute_UVY(_uint Numver);
_float4 Meter_Index(_uint Numver);
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
@@ -39,6 +39,7 @@ class CSpell_Overlay final : public CElementObject
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
CTexture* m_pDiffuse_TextureCom2 = { nullptr };
CTexture* m_pDiffuse_TextureCom3 = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+2
View File
@@ -44,6 +44,8 @@ class CTerrain final : public CGameObject
CTexture* m_pMROTextureCom = { nullptr };
CTexture* m_pAlphaMapTextureCom = { nullptr };
_float3 m_vDRN = { (1.f / 16.f), (1.f / 16.f), (1.f / 16.f) };
_float m_fUsingSurfaceParams = {};
_float3 m_vPickingPosition = {};
@@ -7,6 +7,18 @@ sampler DefaultSampler = sampler_state
AddressU = wrap;
AddressV = wrap;
};
sampler AnisoTropy_BLUR_Sampler = sampler_state // 밉맵이 있어야 의미가 있음
{
Filter = AnisoTropic;
MaxAnisotropy = 16;
AddressU = wrap;
AddressV = wrap;
AddressW = wrap;
MipLodBias = 0.5f; // 밉맵 레벨 +1시켜서 의도적으로 뭉갬
MinLOD = 0;
MaxLOD = 0xFFFFFFFF;
ComparisonFunc = ALWAYS;
};
sampler ClampSampler = sampler_state
{
@@ -85,7 +85,7 @@ DepthStencilState DSS_Effect
StencilEnable = false;
};
DepthStencilState DSS_Default_OutLine_Write
DepthStencilState DSS_Default_Environment_SWrite
{
DepthEnable = true;
DepthWriteMask = true;
@@ -105,8 +105,49 @@ DepthStencilState DSS_Default_OutLine_Write
BackFaceStencilPass = Replace;
BackFaceStencilFunc = Always;
};
DepthStencilState DSS_Default_Environment_SRead
{
DepthEnable = true;
DepthWriteMask = false;
DepthFunc = less_equal;
DepthStencilState DSS_Default_OutLine_Read
StencilEnable = true;
StencilReadMask = 0xff; // <-- ff -> 1111 1111 씀
StencilWriteMask = 0x00; // <-- 00 -> 0000 0000 안씀
FrontFaceStencilFail = Keep;
FrontFaceStencilDepthFail = Keep;
FrontFaceStencilPass = Keep;
FrontFaceStencilFunc = Equal;
BackFaceStencilFail = Keep;
BackFaceStencilDepthFail = Keep;
BackFaceStencilPass = Keep;
BackFaceStencilFunc = NOT_Equal;
};
DepthStencilState DSS_Default_OutLine_SWrite
{
DepthEnable = true;
DepthWriteMask = zero;
DepthFunc = less_equal;
StencilEnable = true;
StencilReadMask = 0xff;
StencilWriteMask = 0xff;
FrontFaceStencilFail = Keep;
FrontFaceStencilDepthFail = Keep;
FrontFaceStencilPass = Replace;
FrontFaceStencilFunc = Always;
BackFaceStencilFail = Keep;
BackFaceStencilDepthFail = Keep;
BackFaceStencilPass = Replace;
BackFaceStencilFunc = Always;
};
DepthStencilState DSS_Default_OutLine_SRead
{
DepthEnable = true;
DepthWriteMask = zero;
@@ -124,7 +165,7 @@ DepthStencilState DSS_Default_OutLine_Read
BackFaceStencilFail = Keep;
BackFaceStencilDepthFail = Keep;
BackFaceStencilPass = Keep;
BackFaceStencilFunc = Equal;
BackFaceStencilFunc = NOT_Equal;
};
DepthStencilState DSS_Occlusion
@@ -13,6 +13,11 @@ float2 g_vResolution;
uint g_iBloomEmbossingPass;
float g_fThreshold;
float g_fDepthThreshold;
float g_fFocusDistance;
float g_fFarBlurStart;
float g_fFarBlurEnd;
float g_fDOFBlurMultiplier;
Texture2D g_Texture;
@@ -41,12 +46,17 @@ Texture2D g_BlurWeightTexture;
Texture2D g_BlurWeightXTexture;
Texture2D g_SurfaceTexture;
Texture2D g_OriginalTexture;
vector g_vLightDiffuse;
vector g_vLightAmbient;
vector g_vLightSpecular;
float g_fFogDensity;
float g_fFogPow;
vector g_vFogColor;
struct VS_IN
{
float3 vPosition : POSITION;
@@ -92,8 +102,8 @@ struct PS_IN
struct PS_OUT_BACKBUFFER
{
float4 vBackBuffer : SV_TARGET0;
float4 vBloomBuffer : SV_Target1;
float4 vBackBuffer : SV_TARGET0;
float4 vEnvironment : SV_Target1;
};
PS_OUT_BACKBUFFER PS_MAIN_DEBUG(PS_IN In)
@@ -101,7 +111,7 @@ PS_OUT_BACKBUFFER PS_MAIN_DEBUG(PS_IN In)
PS_OUT_BACKBUFFER Out;
Out.vBackBuffer = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Out.vBloomBuffer = float4(0.f, 0.f, 0.f, 0.f);
Out.vEnvironment = float4(0.f, 0.f, 0.f, 0.f);
return Out;
}
@@ -123,7 +133,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float fViewZ = vDepth.y * g_fFar;
float4 vWorldPosition;
float4 vWorldPosition; // 월드 복원
{
vWorldPosition.x = uv.x * 2 - 1;
vWorldPosition.y = uv.y * -2 + 1;
@@ -140,6 +150,7 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float fOcclusion = 1.f;
float fAttenuation = 1.f;
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
@@ -158,9 +169,9 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
fMetallic = 0.f;
float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
vF0 = vSRO.rrr;
fRoughness = vSRO.g;
fOcclusion = vSRO.b;
vF0 = vSRO.rrr;
fRoughness = vSRO.g;
fOcclusion = vSRO.b;
}
else // basic Lighting(phong blinn) // if you were here, you miss some assets.
{
@@ -170,7 +181,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
return Out;
}
float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion);
float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 디렉셔널
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
@@ -208,31 +226,35 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
float3 vF0 = float3(0.04f, 0.04f, 0.04f);
float fMetallic = 0.f;
float fRoughness = 0.5f;
float fOcclusion = 1.f;
float fAttenuation = 1.f;
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
if (fAttenuation <= 0.f)
{
float fDistance = length(vToLight);
fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange);
if (fAttenuation <= 0.f) { discard; }
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
Out.vSpecular = float4(0.f, 0.f, 0.f, 1.f);
return Out;
}
if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic
{
float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
fMetallic = vMRO.r;
fRoughness = vMRO.g;
fOcclusion = vMRO.b;
vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
}
else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular
{
fMetallic = 0.f;
float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
vF0 = vSRO.rrr;
fRoughness = vSRO.g;
@@ -246,8 +268,18 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
PBR_Out.vShade *= fDiffuseAOStrength;
Out.vShade = float4(PBR_Out.vShade, 1.f);
Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
@@ -266,7 +298,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
float fViewZ = vDepth.y * g_fFar;
float4 vWorldPosition;
float4 vWorldPosition; // 월드 복원
{
vWorldPosition.x = uv.x * 2 - 1;
vWorldPosition.y = uv.y * -2 + 1;
@@ -283,16 +315,26 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
float fOcclusion = 1.f;
float fAttenuation = 1.f;
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
if (fAttenuation <= 0.f)
{
float fDistance = length(vToLight);
fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange);
if (fAttenuation <= 0.f) { discard; }
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
Out.vSpecular = float4(0.f, 0.f, 0.f, 1.f);
return Out;
}
float fCosAngle = dot(vToView, g_vLightDir.xyz);
if (fCosAngle < g_fSpotOuterAngle) { discard; }
if (fCosAngle < g_fSpotOuterAngle)
{
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
Out.vSpecular = float4(0.f, 0.f, 0.f, 1.f);
return Out;
}
float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle));
fAttenuation *= fSpotAttenenuation;
@@ -303,12 +345,13 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
fMetallic = vMRO.r;
fRoughness = vMRO.g;
fOcclusion = vMRO.b;
vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
}
else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular
{
fMetallic = 0.f;
float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
vF0 = vSRO.rrr;
fRoughness = vSRO.g;
@@ -322,23 +365,33 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
return Out;
}
float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
{ // 수치조정 // 점광원
float fMinRoughness = 0.05f;
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
fRoughness = saturate(saturate(fCameraDistance * 0.01f) * 0.1f + fRoughness); // 거리기반 러프니스 ( 대충 멀수록 반짝반짝한건 더 뭉개져서 표현 )
vF0 = min(vF0, 0.9f); // 메탈릭 상한선
}
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
PBR_Out.vShade *= fDiffuseAOStrength;
Out.vShade = float4(PBR_Out.vShade, 1.f);
Out.vSpecular = float4(PBR_Out.vSpecular, 1.f);
return Out;
}
//float g_fWeights[32] =
//{
// 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000,
// 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800,
// 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200,
// 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200
//};
float g_fWeights_32[32] =
{
0.000477, 0.000888, 0.001585, 0.002720, 0.004485, 0.007105, 0.010814, 0.015813,
0.022216, 0.029988, 0.038893, 0.048463, 0.058021, 0.066740, 0.073759, 0.078320,
0.079902, 0.078320, 0.073759, 0.066740, 0.058021, 0.048463, 0.038893, 0.029988,
0.022216, 0.015813, 0.010814, 0.007105, 0.004485, 0.002720, 0.001585, 0.000888
};
float g_fWeights[128] =
float g_fWeights_128[128] =
{
0.000209902, 0.000241594, 0.000277451, 0.000317919, 0.000363477, 0.000414637, 0.000471944, 0.000535974,
0.000607333, 0.000686659, 0.000774615, 0.000871889, 0.00097919, 0.00109725, 0.00122679, 0.00136858,
@@ -423,11 +476,11 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In)
vTexcoord.x = In.vTexcoord.x;
vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
vColor += g_fWeights[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
vColor += g_fWeights_128[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBackBuffer += vColor;
Out.vBloomBuffer;
Out.vEnvironment = Out.vBackBuffer;
return Out;
}
@@ -520,7 +573,6 @@ PS_OUT_FLT4_SINGLE PS_MAIN_BLOOM_FINISH(PS_IN In)
return Out;
}
PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
{
PS_OUT_BLUR_X Out;
@@ -533,7 +585,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x;
vTexcoord.y = In.vTexcoord.y;
vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBlurX = vColor;
@@ -542,6 +594,172 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In)
return Out;
}
PS_OUT_BLUR_X PS_MAIN_BLUR_X_ENV(PS_IN In)
{
PS_OUT_BLUR_X Out;
vector vDepthDesc;
float2 vTexcoord;
float fSampleViewZ;
float4 vColor = 0.f;
float fBlurAmount = 0.0f;
float4 vCenter = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vOriginal = g_BlurTexture.Sample(ClampSampler, In.vTexcoord);
float fCenterViewZ = vCenter.y * g_fFar;
float fTerrain = (1.f / 255.f);
if (false == AlmostEqual3(vCenter.a, fTerrain))
{ // 터레인셀이 아니면 스킵
Out.vBlurX = vOriginal;
Out.vBlurWeight = 0.0f;
return Out;
}
if (fCenterViewZ > g_fFocusDistance)
{
// 현재 셀이 초점거리보다 멀면 블러
// 블러되는 양은 (현재 셀의 거리가 얼마나 더 멀리 있냐) // END보다 멀면 최대치이므로 saturate
float fValue = saturate((fCenterViewZ - g_fFarBlurStart) / (g_fFarBlurEnd - g_fFarBlurStart));
fBlurAmount = fValue; // 0~1
}
if (fBlurAmount <= FLT_EPSILON3) {
// 최소치 이내면 블러 안함
Out.vBlurX = vOriginal;
Out.vBlurWeight = 0.0f;
return Out;
}
float fAcc = 0.f;
for (int i = -16; i < 16; ++i)
{
vTexcoord.x = In.vTexcoord.x + ((float) i / g_vResolution.x) * fBlurAmount * g_fDOFBlurMultiplier;
vTexcoord.y = In.vTexcoord.y;
vDepthDesc = g_DepthTexture.Sample(DefaultSampler, vTexcoord);
if (false == AlmostEqual3(vDepthDesc.a, fTerrain))
{ // 터레인셀이 아니면 스킵
continue;
}
fSampleViewZ = vDepthDesc.y * g_fFar;
if (abs(fCenterViewZ - fSampleViewZ) > g_fDepthThreshold)
{ // 센터 위치와 z값이 너무 많이 차이나면 샘플링 스킵
continue;
}
vColor += g_fWeights_32[i + 16] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
fAcc += g_fWeights_32[i + 16];
}
if (fAcc <= FLT_EPSILON3)
{ // 블러 실패하면 원본값 씀
Out.vBlurX = vOriginal;
Out.vBlurWeight = 0.0f;
return Out;
}
else
{
vColor.xyz /= fAcc;
}
Out.vBlurX = vColor;
Out.vBlurWeight = fAcc;
return Out;
}
PS_OUT_BACKBUFFER PS_MAIN_POSTCOMBINED(PS_IN In)
{
PS_OUT_BACKBUFFER Out;
vector vDepthDesc;
float2 vTexcoord;
float fSampleViewZ;
float4 vColor = 0.f;
float fBlurAmount = 0.0f;
float4 vOriginal = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
float4 vCenter = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord);
float fCenterViewZ = vCenter.y * g_fFar;
float fTerrain = (1.f / 255.f);
if (false == AlmostEqual3(vCenter.a, fTerrain))
{ // 터레인셀이 아니면 스킵
Out.vBackBuffer = vOriginal;
Out.vEnvironment = 0.0f;
return Out;
}
if (fCenterViewZ > g_fFocusDistance)
{
// 현재 셀이 초점거리보다 멀면 블러
// 블러되는 양은 (현재 셀의 거리가 얼마나 더 멀리 있냐) // END보다 멀면 최대치이므로 saturate
float fValue = saturate((fCenterViewZ - g_fFarBlurStart) / (g_fFarBlurEnd - g_fFarBlurStart));
fBlurAmount = fValue; // 0~1
}
if (fBlurAmount <= FLT_EPSILON3)
{
// 최소치 이내면 블러 스킵
Out.vBackBuffer = vOriginal;
Out.vEnvironment = 0.0f;
return Out;
}
float fAcc = 0.f;
for (int i = -16; i < 16; ++i)
{
vTexcoord.x = In.vTexcoord.x;
vTexcoord.y = In.vTexcoord.y + ((float) i / g_vResolution.y) * fBlurAmount * g_fDOFBlurMultiplier;
vDepthDesc = g_DepthTexture.Sample(DefaultSampler, vTexcoord);
if (false == AlmostEqual3(vDepthDesc.a, fTerrain))
{ // 터레인셀이 아니면 스킵
continue;
}
fSampleViewZ = vDepthDesc.y * g_fFar;
if (abs(fCenterViewZ - fSampleViewZ) > g_fDepthThreshold)
{ // 센터 위치와 z값이 너무 많이 차이나면 샘플링 스킵
continue;
}
vColor += g_fWeights_32[i + 16] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
fAcc += g_fWeights_32[i + 16];
}
if (fAcc <= FLT_EPSILON3)
{ // 블러 실패하면 원본값 씀
Out.vBackBuffer = vOriginal;
Out.vEnvironment = 0.0f;
return Out;
return Out;
}
else
{
vColor.xyz /= fAcc;
}
float fOriginalLumen = length(vOriginal.rgb);
float fBlurLumen = length(vColor.rgb);
float fLumenScale = 1.0f;
if (fBlurLumen > 1e-4f)
{
fLumenScale = fOriginalLumen / fBlurLumen;
}
float3 vBlurMatched = vColor.rgb * fLumenScale;
float fBlendAmount = saturate(fBlurAmount * g_fDOFBlurMultiplier);
float3 finalColor = lerp(vOriginal.rgb, vBlurMatched, fBlendAmount);
Out.vBackBuffer = float4(vColor.xyz, vOriginal.a);
Out.vEnvironment = 0.f;
return Out;
}
PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In)
{
PS_OUT_BLUR_X Out;
@@ -554,7 +772,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In)
vTexcoord.x = In.vTexcoord.x;
vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y;
vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord);
}
Out.vBlurX = vColor;
@@ -563,6 +781,31 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In)
return Out;
}
PS_OUT_FLT4_SINGLE PS_MAIN_FOG(PS_IN In)
{
PS_OUT_FLT4_SINGLE Out;
vector vColor = g_OriginalTexture.Sample(DefaultSampler, In.vTexcoord);
vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord);
vector vFinalColor;
float fViewZ = vDepthDesc.y * g_fFar;
float fRatio;
fRatio = clamp(pow(exp(-(g_fFogDensity * fViewZ)), g_fFogPow), 0.f, 1.f);
vFinalColor = lerp(g_vFogColor, vColor, max(fRatio, 0.2f));
vFinalColor.a = 1.f;
if (1.f == vDepthDesc.y)
vFinalColor = float4(g_vFogColor);
Out.vSingleTarget = vFinalColor;
return Out;
}
technique11 DefaultTechnique
{
@@ -685,4 +928,32 @@ technique11 DefaultTechnique
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_BLOOM_FINISH();
}
pass BlurX_ENV_Pass // 12
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 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_MAIN_BLUR_X_ENV();
}
pass PostCombinedPass // 13
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_Environment_SRead, 1);
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_MAIN_POSTCOMBINED();
}
pass FogPass // 14
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_AlphaBlend, 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_MAIN_FOG();
}
}
@@ -1,3 +1,4 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
@@ -9,7 +10,7 @@ int g_iImageCountY;
uint g_iIndexU;
uint g_iIndexV;
uint g_iQuestType;
uint g_iSpellType;
int g_iSpellType;
float g_fPI;
float g_fFar;
@@ -505,22 +506,22 @@ PS_OUT PS_SpellAnim(PS_IN In)
switch (g_iSpellType)
{
case 0:
BGColor = float3(208.f, 179.f, 54.f) / 255.f;
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
break;
case 1:
BGColor = float3(89.f, 32.f, 215.f) / 255.f;
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
break;
case 2:
BGColor = float3(190.f, 46., 34.f) / 255.f;
break;
case 3:
BGColor = float3(37.f, 129.f, 162.f) / 255.f;
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
break;
case 4:
BGColor = float3(134.f, 171.f, 78.f) / 255.f;
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
break;
case 5:
BGColor = float3(0.f, 80.f, 55.f) / 255.f;
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
case 6:
BGColor = float3(0.f, 0.f, 0.f);
@@ -541,11 +542,11 @@ PS_OUT PS_SpellAnim(PS_IN In)
color1 = tex3;
float wave1 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
float wave2 = sin(OverrayUV.x * 10.f + g_fTime ) * 0.01f;
float wave1 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
float wave2 = sin(OverrayUV.x * 10.f + g_fTime) * 0.01f;
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f , waveUV.y = (OverrayUV.y - waveThreshold1) /(waveThreshold2 - waveThreshold1));
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
waveUV = saturate(waveUV);
float tex5 = g_Texture3.Sample(DefaultSampler, waveUV).r;
@@ -895,7 +896,7 @@ PS_OUT PS_Magic_Item(PS_IN In)
float2 OverrayUV = In.vTexcoord;
float CoolTime = 0.f + g_fDeltaV;
float CoolTime2 = 0.f + g_fDeltaV + 0.05;
float CoolTime2 = 0.f + g_fDeltaV + 0.1f;
atlasUV = startUV + In.vTexcoord * (endUV - startUV);
float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV);
tex3.rgb *= BGColor;
@@ -913,16 +914,20 @@ PS_OUT PS_Magic_Item(PS_IN In)
float waveThreshold1 = CoolTime + wave1;
float waveThreshold2 = CoolTime2 + wave2;
float2 waveUV = float2(waveUV.x = OverrayUV.x * 2.f + g_fTime * 0.3f, waveUV.y = (OverrayUV.y - waveThreshold1) / (waveThreshold2 - waveThreshold1));
waveUV = saturate(waveUV);
float Mask = g_MaskingTexture.Sample(DefaultSampler, waveUV).r;
if (g_fDeltaV <= 1.f)
{
if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2)
{
color1.rgb = float3(1.f, 1.f, 1.f);
color1.rgb += float3(1.f, 1.f, 1.f) * Mask * 1.f;
}
}
if (OverrayUV.y <= CoolTime)
float waveThreshold = CoolTime + wave1;
if (OverrayUV.y <= waveThreshold)
{
color1.a = 0.f;
}
@@ -961,6 +966,187 @@ PS_OUT PS_Magic_Item(PS_IN In)
return Out;
}
PS_OUT PS_Spell_Preview(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 uv = In.vTexcoord;
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
float OriginLeft = g_fNine_Slice.x;
float OriginRight = g_fNine_Slice.y;
float OriginTop = g_fNine_Slice.z;
float OriginBottom = g_fNine_Slice.w;
float CurrentLeft = OriginLeft;
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
float CurrentTop = OriginTop;
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
float2 Finaluv = In.vTexcoord;
if (CurrentPixelPosition.x < CurrentLeft)
{
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
}
else if (CurrentPixelPosition.x > CurrentRight)
{
float dist = CurrentPixelPosition.x - CurrentRight;
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
}
else
{
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
}
if (CurrentPixelPosition.y < CurrentTop)
{
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
}
else if (CurrentPixelPosition.y > CurrentBottom)
{
float dist = CurrentPixelPosition.y - CurrentBottom;
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
}
else
{
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
}
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
float4 tex3 = g_Texture2.Sample(DefaultSampler, Finaluv);
Color = tex1;
tex3.rgb = tex2.rgb;
Color = lerp(Color, tex3, tex3.a);
float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
float4 tex4 = g_Texture3.Sample(DefaultSampler, Finaluv);
if (inside1)
{
Color = lerp(Color, tex4, tex4.a);
}
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Spell_Header(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float3 BGColor= float3(1.f, 1.f, 1.f);
switch (g_iSpellType)
{
case 0:
BGColor = float3(255.f, 255.f, 0.f) / 255.f;
break;
case 1:
BGColor = float3(150.f, 120.f, 240.f) / 255.f;
break;
case 2:
BGColor = float3(190.f, 46., 34.f) / 255.f;
break;
case 3:
BGColor = float3(24.f, 190.f, 255.f) / 255.f;
break;
case 4:
BGColor = float3(200.f, 220.f, 150.f) / 255.f;
break;
case 5:
BGColor = float3(50.f, 150.f, 110.f) / 255.f;
break;
case 6:
BGColor = float3(0.f, 0.f, 0.f);
break;
}
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
Color.rgb *= BGColor;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
PS_OUT PS_Spell_Header_Line(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 Color = float4(1.f, 1.f, 1.f, 1.f);
float2 uv = In.vTexcoord;
float2 CurrentPixelPosition = uv * g_fCurrent_Size;
float OriginLeft = g_fNine_Slice.x;
float OriginRight = g_fNine_Slice.y;
float OriginTop = g_fNine_Slice.z;
float OriginBottom = g_fNine_Slice.w;
float CurrentLeft = OriginLeft;
float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight);
float CurrentTop = OriginTop;
float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom);
float2 Finaluv = In.vTexcoord;
if (CurrentPixelPosition.x < CurrentLeft)
{
Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x;
}
else if (CurrentPixelPosition.x > CurrentRight)
{
float dist = CurrentPixelPosition.x - CurrentRight;
Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x;
}
else
{
float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft);
Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x);
}
if (CurrentPixelPosition.y < CurrentTop)
{
Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y;
}
else if (CurrentPixelPosition.y > CurrentBottom)
{
float dist = CurrentPixelPosition.y - CurrentBottom;
Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y;
}
else
{
float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop);
Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y);
}
float4 tex1 = g_Texture.Sample(DefaultSampler, Finaluv);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
Color = tex1;
//Color.rgb = tex2.rgb;
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
technique11 PosTexTechnique11
{
pass Default
@@ -1161,4 +1347,34 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_Magic_Item();
}
pass Spell_Preview
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Preview();
}
pass Spell_Header
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Header();
}
pass Spell_Header_Line
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Header_Line();
}
}
@@ -4,12 +4,18 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_Texture;
Texture2D g_Texture1;
Texture2D g_Texture2;
Texture2D g_Texture3;
Texture2D g_Texture4;
Texture2D g_Texture5;
Texture2D g_MaskTexture;
float g_fAlpha;
float g_fOwnerAlpha;
float g_fCanvasAlpha;
float g_fAngle;
float g_fFar;
float g_fTime;
struct VS_IN
{
@@ -18,14 +24,17 @@ struct VS_IN
float2 vSize : TEXCOORD1;
float2 vPos : TEXCOORD2;
float2 vUVStart : TEXCOORD3;
float2 vUVEnd: TEXCOORD4;
float4 vUV : TEXCOORD3;
float4 vColor : TEXCOORD4;
float bHover : TEXCOORD5;
};
struct VS_OUT
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
float4 vColor : TEXCOORD1;
float bHover : TEXCOORD2;
};
VS_OUT VS_MAIN(VS_IN In)
@@ -34,17 +43,21 @@ VS_OUT VS_MAIN(VS_IN In)
matrix matVP = mul(g_ViewMatrix, g_ProjMatrix);
float3 vLocalPos = In.vPosition;
vLocalPos.xy *= In.vSize;
vLocalPos.xy += In.vPos;
float2 StartUV = In.vUVStart;
float2 EndUV = In.vUVEnd;
if (In.bHover != 0)
vLocalPos.xy *= In.vSize * 1.1f;
else
vLocalPos.xy *= In.vSize;
vLocalPos.xy += In.vPos;
float4 UV = In.vUV;
float3 vParentPos = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43);
float3 vFinalWorldPos = vLocalPos + vParentPos;
Out.vPosition = mul(float4(vFinalWorldPos, 1.f), matVP);
Out.vTexcoord = StartUV + In.vTexcoord * (EndUV - StartUV);
Out.vTexcoord = UV.xy + In.vTexcoord * (UV.zw - UV.xy);
Out.vColor = In.vColor;
Out.bHover = In.bHover;
return Out;
}
@@ -52,6 +65,8 @@ struct PS_IN
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
float4 vColor : TEXCOORD1;
float bHover : TEXCOORD2;
};
struct PS_OUT
@@ -88,7 +103,7 @@ PS_OUT PS_Alpha_Blend(PS_IN In)
float4 color = g_Texture.Sample(ClampSampler, In.vTexcoord);
if(color.a <= 0.4f)
if (color.a <= 0.4f)
discard;
color.a *= Alpha;
@@ -124,6 +139,172 @@ PS_OUT PS_Megic_Meter(PS_IN In)
return Out;
}
PS_OUT PS_Spell_List(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float3 Blue = float3(41.f, 165.f, 255.f) / 255.f;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
color = tex1;
tex2.rgb *= Blue * 1.5f;
if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f)))
color = tex2;
//if(color.a <= 0.4f)
// discard;
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Eessential_Spell_Slot(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord);
color = tex1;
color = lerp(tex1, tex2, tex2.a);
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Eessential_Spell(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
color = tex1;
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Color_Image(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord);
color = tex1;
color *= In.vColor;
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Spell_Hover(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float3 HoverOff = g_Texture2.Sample(DefaultSampler, In.vTexcoord).rgb;
float3 HoverOn = g_Texture3.Sample(DefaultSampler, In.vTexcoord).rgb;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
if (In.bHover != 0)
{
float tex1 = g_Texture5.Sample(DefaultSampler, In.vTexcoord).r;
color.r *= tex1.r;
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
color = lerp(tex1, tex2, tex2.a);
color.rgb = HoverOn;
}
else
{
float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
color.r *= tex1.r;
float4 tex2 = g_Texture4.Sample(DefaultSampler, In.vTexcoord);
color = lerp(tex1, tex2, tex2.a);
color.rgb = HoverOff;
color.a *= 0.5f;
}
color *= In.vColor;
color.a *= Alpha;
Out.vColor = color;
return Out;
}
PS_OUT PS_Spell_Effect(PS_IN In)
{
PS_OUT Out;
if (In.bHover == 0)
discard;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = float4(1.f, 1.f, 1.f, 1.f);
float2 maskUV = In.vTexcoord + g_fTime * float2(0.2f, 0.0f);
//float2 center = float2(0.5, 0.5);
//float2 uv = In.vTexcoord - center;
//float angle = -g_fTime;
//float s = sin(angle);
//float c = cos(angle);
//float2 rotUV = float2(
//uv.x * c - uv.y * s,
//uv.x * s + uv.y * c
//) + center;
//float2 maskUV = In.vTexcoord;
//maskUV.x += g_fTime * float2(0.05, 0.02); // 속도 조절 가능
//float2 center = float2(0.5, 0.0);
//float2 uv = In.vTexcoord - center;
//float scale = 0.5 + sin(g_fTime * 20) * 0.5;
//uv.x *= scale;
//uv += center;
float tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord).r;
float mask = g_MaskTexture.Sample(DefaultSampler, maskUV).r;
color.a *= tex1;
color.a *= mask;
color.a *= Alpha;
color *= In.vColor;
Out.vColor = color;
return Out;
}
technique11 PosTexTechnique11
{
pass Default
@@ -158,4 +339,70 @@ technique11 PosTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Megic_Meter();
}
pass Spell_List
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_List();
}
pass Eessential_Spell_Slot
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Eessential_Spell_Slot();
}
pass Eessential_Spell
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Eessential_Spell();
}
pass Color_Image
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Color_Image();
}
pass Spell_Hover
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Hover();
}
pass Spell_Effect
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, 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_Spell_Effect();
}
}
@@ -249,14 +249,14 @@ PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
vector vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
vector vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
if (vMtrlDiffuse.a < 0.2f)
{
discard;
}
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
@@ -513,7 +513,7 @@ technique11 DefaultTechnique
pass OutLine_Write_Pass // 6
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_Write, 1);
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;
@@ -523,7 +523,7 @@ technique11 DefaultTechnique
pass OutLine_Read_Pass // 7
{
SetRasterizerState(RS_Front);
SetDepthStencilState(DSS_Default_OutLine_Read, 0);
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();
GeometryShader = NULL;
@@ -207,11 +207,11 @@ PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
vector vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMtrlDiffuse = g_DiffuseTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
vector vSurface = g_SurfaceParamsTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
if (vMtrlDiffuse.a < 0.2f) { discard; }
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, AnisoTropy_BLUR_Sampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
@@ -573,7 +573,7 @@ technique11 MeshTechnique11
pass OutLine_Write_Pass // 13
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_OutLine_Write, 1);
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;
@@ -583,7 +583,7 @@ technique11 MeshTechnique11
pass OutLine_Read_Pass // 14
{
SetRasterizerState(RS_Front);
SetDepthStencilState(DSS_Default_OutLine_Read, 0);
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();
GeometryShader = NULL;
@@ -5,6 +5,9 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
float g_fFar;
float g_fUsingSurfaceParams;
float g_fDiffuseMultiplier;
float g_fSurfaceMultiplier;
float g_fNormalMultiplier;
Texture2D g_DiffuseTexture;
Texture2D g_NormalTexture;
@@ -73,35 +76,35 @@ PS_OUT PS_MAIN(PS_IN In)
vector vMask = g_MaskTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(DefaultSampler, tileUV);
vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(DefaultSampler, tileUV);
vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(DefaultSampler, tileUV);
vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(DefaultSampler, tileUV);
vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(DefaultSampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(DefaultSampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(DefaultSampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(DefaultSampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse = float4(float3(vMtrlDiffuse_0.xyz * vMask.r +
vMtrlDiffuse_1.xyz * vMask.g +
vMtrlDiffuse_2.xyz * vMask.b +
vMtrlDiffuse_3.xyz * vMask.a), 1.f);
vMtrlDiffuse_1.xyz * vMask.g +
vMtrlDiffuse_2.xyz * vMask.b +
vMtrlDiffuse_3.xyz * vMask.a), 1.f);
vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(DefaultSampler, tileUV);
vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(DefaultSampler, tileUV);
vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(DefaultSampler, tileUV);
vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(DefaultSampler, tileUV);
vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(DefaultSampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(DefaultSampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(DefaultSampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(DefaultSampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface = (vSurface_0 * vMask.r +
vSurface_1 * vMask.g +
vSurface_2 * vMask.b +
vSurface_3 * vMask.a);
float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], DefaultSampler, tileUV);
float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], DefaultSampler, tileUV);
float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], DefaultSampler, tileUV);
float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], DefaultSampler, tileUV);
float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], DefaultSampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], DefaultSampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], DefaultSampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], DefaultSampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded = normalize(vNormalDecoded_0.xyz * vMask.r +
vNormalDecoded_1.xyz * vMask.g +
vNormalDecoded_1.xyz * vMask.b +
vNormalDecoded_1.xyz * vMask.a);
vNormalDecoded_1.xyz * vMask.g +
vNormalDecoded_1.xyz * vMask.b +
vNormalDecoded_1.xyz * vMask.a);
float3 vBinormal = cross(In.vNormal.xyz, float3(1.f, 0.f, 0.f));
@@ -123,9 +126,67 @@ PS_OUT PS_MAIN(PS_IN In)
return Out;
}
PS_OUT PS_MAIN_TERRAIN_ANISO(PS_IN In)
{
PS_OUT Out;
float2 tileUV = In.vWorldPos.xz / 16.f;
vector vMask = g_MaskTexture.Sample(AnisoTropy_BLUR_Sampler, In.vTexcoord);
vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fDiffuseMultiplier);
vector vMtrlDiffuse = float4(float3(vMtrlDiffuse_0.xyz * vMask.r +
vMtrlDiffuse_1.xyz * vMask.g +
vMtrlDiffuse_2.xyz * vMask.b +
vMtrlDiffuse_3.xyz * vMask.a), 1.f);
vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fSurfaceMultiplier);
vector vSurface = (vSurface_0 * vMask.r +
vSurface_1 * vMask.g +
vSurface_2 * vMask.b +
vSurface_3 * vMask.a);
float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], AnisoTropy_BLUR_Sampler, In.vWorldPos.xz * g_fNormalMultiplier);
float3 vNormalDecoded = normalize(vNormalDecoded_0.xyz * vMask.r +
vNormalDecoded_1.xyz * vMask.g +
vNormalDecoded_1.xyz * vMask.b +
vNormalDecoded_1.xyz * vMask.a);
float3 vBinormal = cross(In.vNormal.xyz, float3(1.f, 0.f, 0.f));
float3 vTangent = cross(vBinormal, In.vNormal.xyz);
float3x3 WorldMatrix = float3x3(vTangent, vBinormal, In.vNormal.xyz);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
Out.vAlbedo = vMtrlDiffuse;
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
g_fUsingSurfaceParams, // 서페이스 파라미터
(1.f / 255.f)); // 지형은 1
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
Out.vSurface = vSurface;
return Out;
}
technique11 NorTexTechnique11
{
pass NorTexPass
pass NorTexPass // 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
@@ -134,7 +195,7 @@ technique11 NorTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass TerrainPass
pass TerrainPass // 1
{
SetRasterizerState(RS_Nocull_Wireframe);
SetDepthStencilState(DSS_Default, 0);
@@ -143,5 +204,13 @@ technique11 NorTexTechnique11
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass Environment_Terrain_Pass // 2
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default_Environment_SWrite, 1);
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_MAIN_TERRAIN_ANISO();
}
}

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 857 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

@@ -208,6 +208,9 @@
<ClInclude Include="..\Public\Dummy_PhysXWall.h" />
<ClInclude Include="..\Public\Dummy_Plane.h" />
<ClInclude Include="..\Public\Dummy_PhysXPlayable.h" />
<ClInclude Include="..\public\GameTime.h" />
<ClInclude Include="..\public\Eessential_Spell.h" />
<ClInclude Include="..\public\Eessential_Spell_Slot.h" />
<ClInclude Include="..\public\HpBarBG.h" />
<ClInclude Include="..\Public\Bombard.h" />
<ClInclude Include="..\public\InstancedProp.h" />
@@ -215,6 +218,7 @@
<ClInclude Include="..\public\Magic_Item.h" />
<ClInclude Include="..\public\Magic_Meter.h" />
<ClInclude Include="..\Public\EffectPool.h" />
<ClInclude Include="..\public\MapElement_Light.h" />
<ClInclude Include="..\Public\MissionBanner_Border.h" />
<ClInclude Include="..\Public\NomalJap.h" />
<ClInclude Include="..\Public\Effect_Container.h" />
@@ -252,9 +256,18 @@
<ClInclude Include="..\Public\Protego.h" />
<ClInclude Include="..\public\Slot_Number.h" />
<ClInclude Include="..\public\Spell_Canvas.h" />
<ClInclude Include="..\public\Spell_Header.h" />
<ClInclude Include="..\public\Spell_Header_Line.h" />
<ClInclude Include="..\public\Spell_Hover.h" />
<ClInclude Include="..\public\Spell_Hover_Effect.h" />
<ClInclude Include="..\public\Spell_List.h" />
<ClInclude Include="..\public\Spell_List_Image.h" />
<ClInclude Include="..\public\Spell_Panel.h" />
<ClInclude Include="..\public\Spell_Preview.h" />
<ClInclude Include="..\public\Spell_Slot_Preview.h" />
<ClInclude Include="..\public\Spell_State.h" />
<ClInclude Include="..\public\Spell_UI.h" />
<ClInclude Include="..\public\Spell_Vidio_Border.h" />
<ClInclude Include="..\Public\State_Combat.h" />
<ClInclude Include="..\Public\State_Dodge.h" />
<ClInclude Include="..\Public\State_Idle.h" />
@@ -347,6 +360,9 @@
<ClCompile Include="..\Private\Dummy_PhysXWall.cpp" />
<ClCompile Include="..\Private\Dummy_Plane.cpp" />
<ClCompile Include="..\Private\Dummy_PhysXPlayable.cpp" />
<ClCompile Include="..\private\GameTime.cpp" />
<ClCompile Include="..\private\Eessential_Spell.cpp" />
<ClCompile Include="..\private\Eessential_Spell_Slot.cpp" />
<ClCompile Include="..\Private\Goblin_States.cpp" />
<ClCompile Include="..\private\HpBarBG.cpp" />
<ClCompile Include="..\Private\Bombard.cpp" />
@@ -355,6 +371,7 @@
<ClCompile Include="..\private\Magic_Item.cpp" />
<ClCompile Include="..\private\Magic_Meter.cpp" />
<ClCompile Include="..\Private\EffectPool.cpp" />
<ClCompile Include="..\private\MapElement_Light.cpp" />
<ClCompile Include="..\Private\MissionBanner_Border.cpp" />
<ClCompile Include="..\Private\NomalJap.cpp" />
<ClCompile Include="..\Private\Effect_Container.cpp" />
@@ -393,9 +410,18 @@
<ClCompile Include="..\Private\Protego.cpp" />
<ClCompile Include="..\private\Slot_Number.cpp" />
<ClCompile Include="..\private\Spell_Canvas.cpp" />
<ClCompile Include="..\Private\Spell_Header.cpp" />
<ClCompile Include="..\private\Spell_Header_Line.cpp" />
<ClCompile Include="..\private\Spell_Hover.cpp" />
<ClCompile Include="..\private\Spell_Hover_Effect.cpp" />
<ClCompile Include="..\private\Spell_List.cpp" />
<ClCompile Include="..\private\Spell_List_Image.cpp" />
<ClCompile Include="..\private\Spell_Panel.cpp" />
<ClCompile Include="..\private\Spell_Preview.cpp" />
<ClCompile Include="..\private\Spell_Slot_Preview.cpp" />
<ClCompile Include="..\private\Spell_State.cpp" />
<ClCompile Include="..\private\Spell_UI.cpp" />
<ClCompile Include="..\private\Spell_Vidio_Border.cpp" />
<ClCompile Include="..\Private\State_Combat.cpp" />
<ClCompile Include="..\Private\State_Dodge.cpp" />
<ClCompile Include="..\Private\State_Idle.cpp" />
@@ -205,9 +205,6 @@
<Filter Include="02.GameObjects\Dummys\DummyPhysX\PhysXFreeDoor">
<UniqueIdentifier>{3131278b-18f5-4b84-ba85-73104998e9c9}</UniqueIdentifier>
</Filter>
<Filter Include="80.State">
<UniqueIdentifier>{9c21aba5-00c1-4b4c-8a82-dac7a156fd9b}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Player">
<UniqueIdentifier>{680910fd-aee2-4f69-b644-12b36b0f635b}</UniqueIdentifier>
</Filter>
@@ -298,30 +295,6 @@
<Filter Include="02.GameObjects\Layer_Effect\Effect\06.Bombard">
<UniqueIdentifier>{c81350c7-0edb-4e51-babf-09bf627414f1}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\State_Combat">
<UniqueIdentifier>{a56502cb-b0b8-4ea7-bc5e-5482b416fef9}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement">
<UniqueIdentifier>{8a70232d-f917-4ff6-b617-302e325996ae}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement\State_Move">
<UniqueIdentifier>{dac78c4e-b898-45dc-8740-794899de0c69}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement\State_Idle">
<UniqueIdentifier>{d5681f71-af29-4418-bf3a-a1486c6ba171}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus">
<UniqueIdentifier>{029a22c4-ab06-4db0-9527-4e3cfa1a2e0d}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Dodge">
<UniqueIdentifier>{b017e167-f48d-4417-a924-765ab802cff5}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Jump">
<UniqueIdentifier>{904a7ae5-33fe-49a1-9f31-27443acc9e1a}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Land">
<UniqueIdentifier>{0b8cac41-419f-48ce-87bc-805b8962b4df}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\GamePlay_Canvas\Action_Panel\HpBarBG">
<UniqueIdentifier>{7e8b7123-11fb-4946-99fe-3265932d0536}</UniqueIdentifier>
</Filter>
@@ -378,7 +351,7 @@
</Filter>
<Filter Include="02.GameObjects\Layer_Effect\Effect\08.Protego">
<UniqueIdentifier>{8bb21e5b-933f-4930-8d49-1093e0c3ea77}</UniqueIdentifier>
</Filter>
</Filter>
<Filter Include="50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border">
<UniqueIdentifier>{a54567fa-e528-4c98-a605-289d7d300029}</UniqueIdentifier>
</Filter>
@@ -391,6 +364,72 @@
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot">
<UniqueIdentifier>{c7b1ffc6-548f-464c-8f19-8b6ff5913b06}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_List">
<UniqueIdentifier>{8d15e456-f0d7-45b6-b725-7f1a8c0f6b0f}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot">
<UniqueIdentifier>{bae34bc2-3b69-40c0-8c9a-278dba07c8aa}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell">
<UniqueIdentifier>{1700ba11-4e28-4934-b757-bfed96b74503}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_List_Image">
<UniqueIdentifier>{da710064-ef45-41e1-8fc5-1fc544cb4cb8}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_State">
<UniqueIdentifier>{78ffbbbe-930a-4770-93fc-ec46f7ff2c8d}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Hober">
<UniqueIdentifier>{d5815cd9-96d2-4364-b0d6-be0bb10b02db}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect">
<UniqueIdentifier>{62f1bdfb-9162-434a-a462-b63f5e763277}</UniqueIdentifier>
</Filter>
<Filter Include="80.State">
<UniqueIdentifier>{9c21aba5-00c1-4b4c-8a82-dac7a156fd9b}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\State_Combat">
<UniqueIdentifier>{a56502cb-b0b8-4ea7-bc5e-5482b416fef9}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement">
<UniqueIdentifier>{8a70232d-f917-4ff6-b617-302e325996ae}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement\State_Move">
<UniqueIdentifier>{dac78c4e-b898-45dc-8740-794899de0c69}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Movement\State_Idle">
<UniqueIdentifier>{d5681f71-af29-4418-bf3a-a1486c6ba171}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus">
<UniqueIdentifier>{029a22c4-ab06-4db0-9527-4e3cfa1a2e0d}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Dodge">
<UniqueIdentifier>{b017e167-f48d-4417-a924-765ab802cff5}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Jump">
<UniqueIdentifier>{904a7ae5-33fe-49a1-9f31-27443acc9e1a}</UniqueIdentifier>
</Filter>
<Filter Include="80.State\Focus\State_Land">
<UniqueIdentifier>{0b8cac41-419f-48ce-87bc-805b8962b4df}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Preview">
<UniqueIdentifier>{99125f58-acb9-4e9c-af15-87bf4e09c9b1}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header">
<UniqueIdentifier>{261e2297-e48d-4e42-b57e-12b0c0e633a3}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header_Line">
<UniqueIdentifier>{754c2260-5073-4489-9fa8-0df8da6d0255}</UniqueIdentifier>
</Filter>
<Filter Include="50.UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border">
<UniqueIdentifier>{9d80f32a-aaca-490e-babf-3a7fe4cc0600}</UniqueIdentifier>
</Filter>
<Filter Include="03.GameTime">
<UniqueIdentifier>{cf446efa-94e5-4fd2-83e1-dba2149eddc8}</UniqueIdentifier>
</Filter>
<Filter Include="02.GameObjects\Env\03.MapElement\Light">
<UniqueIdentifier>{99652c97-4011-4d1f-84fb-7e6aa9f6ec1a}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="Editor.h">
@@ -749,7 +788,7 @@
</ClInclude>
<ClInclude Include="..\Public\Protego.h">
<Filter>02.GameObjects\Layer_Effect\Effect\08.Protego</Filter>
</ClInclude>
</ClInclude>
<ClInclude Include="..\Public\MissionBanner_Border.h">
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border</Filter>
</ClInclude>
@@ -762,6 +801,45 @@
<ClInclude Include="..\public\Current_Spell_Slot.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_List.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_List</Filter>
</ClInclude>
<ClInclude Include="..\public\Eessential_Spell_Slot.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot</Filter>
</ClInclude>
<ClInclude Include="..\public\Eessential_Spell.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_List_Image.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_List_Image</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_State.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_State</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Hover.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Hober</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Hover_Effect.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Preview.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Header.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Header_Line.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header_Line</Filter>
</ClInclude>
<ClInclude Include="..\public\Spell_Vidio_Border.h">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border</Filter>
</ClInclude>
<ClInclude Include="..\public\GameTime.h">
<Filter>03.GameTime</Filter>
</ClInclude>
<ClInclude Include="..\public\MapElement_Light.h">
<Filter>02.GameObjects\Env\03.MapElement\Light</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Editor.ico">
@@ -1119,7 +1197,7 @@
</ClCompile>
<ClCompile Include="..\Private\Protego.cpp">
<Filter>02.GameObjects\Layer_Effect\Effect\08.Protego</Filter>
</ClCompile>
</ClCompile>
<ClCompile Include="..\Private\MissionBanner_Border.cpp">
<Filter>50.UI\GamePlay_Canvas\Mission_Panel\MissionBanner_Border</Filter>
</ClCompile>
@@ -1132,6 +1210,45 @@
<ClCompile Include="..\private\Current_Spell_Slot.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Current_Spell_Slot</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_List.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_List</Filter>
</ClCompile>
<ClCompile Include="..\private\Eessential_Spell_Slot.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell_Slot</Filter>
</ClCompile>
<ClCompile Include="..\private\Eessential_Spell.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Eessential_Spell</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_List_Image.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_List_Image</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_State.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_State</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_Hover.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Hober</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_Hover_Effect.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Hover_Effect</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_Preview.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview</Filter>
</ClCompile>
<ClCompile Include="..\Private\Spell_Header.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_Header_Line.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Preview\Spell_Header_Line</Filter>
</ClCompile>
<ClCompile Include="..\private\Spell_Vidio_Border.cpp">
<Filter>50.UI\Spell_Canvas\Spell_Panel\Spell_Vidio_Border</Filter>
</ClCompile>
<ClCompile Include="..\private\GameTime.cpp">
<Filter>03.GameTime</Filter>
</ClCompile>
<ClCompile Include="..\private\MapElement_Light.cpp">
<Filter>02.GameObjects\Env\03.MapElement\Light</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Editor.rc">

Some files were not shown because too many files have changed in this diff Show More