This commit is contained in:
GiJungSUk
2025-12-24 15:05:04 +09:00
parent 8846c2ca3c
commit 65d5feb392
72 changed files with 224 additions and 25 deletions
@@ -962,6 +962,25 @@ HRESULT CEffectObject::Bind_ShaderResources()
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask_G", &m_EffectInfo.isMask_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask_B", &m_EffectInfo.isMask_B, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise_G", &m_EffectInfo.isNoise_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise_B", &m_EffectInfo.isNoise_B, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve_G", &m_EffectInfo.isDissolve_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve_B", &m_EffectInfo.isDissolve_B, sizeof(_bool)))) {
return E_FAIL;
}
if (m_pDiffuse_TextureCom != nullptr)
+12
View File
@@ -1605,6 +1605,8 @@ HRESULT CLoader::Loading_For_GamePlay()
});
#pragma endregion
m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다.");
@@ -2148,6 +2150,16 @@ HRESULT CLoader::Loading_For_GamePlay()
});
Asset_FileLoad("../Bin/Resources/Models/Effect/DragonMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName,
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
return E_FAIL;
return S_OK;
});
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
#pragma region UI
@@ -178,8 +178,10 @@ namespace Client
_bool isMotionBlur = {};
_bool isPadding0 = {};
_bool isPadding1 = {};
_bool isNoise_G = {};
_bool isNoise_B = {};
_float fModelBlurIntensity = { 0.f };
_bool isBloom = {};
@@ -204,7 +206,7 @@ namespace Client
_float isLightTime = { 0.f };
_bool isLightDissolve = {};
_bool isPadding2 = {};
_bool isDissolve_G = {};
_float4 vDissolveColor = {};
_float2 vDissolveColorCut = {};
@@ -222,9 +224,9 @@ namespace Client
_float4 vPadding5 = {};
_bool isRimLight = {};
_bool isPadding3 = {};
_bool isPadding4 = {};
_bool isPadding5 = {};
_bool isMask_G = {};
_bool isMask_B = {};
_bool isDissolve_B = {};
}EFFECT_INFO;
@@ -89,11 +89,18 @@ bool g_isDiffuseUVMove;
bool g_isNoiseColor;
bool g_isNoiseAlpha;
bool g_isNoiseUVMove;
bool g_isNoise_B;
bool g_isNoise_G;
float4 g_vNoiseColor;
float2 g_vNoiseUVGainAmount;
int g_iNoiseMoveLerpOption;
/* 마스크 */
bool g_isMask_G;
bool g_isMask_B;
bool g_isMaskClampSample;
bool g_isMaskUVMove;
@@ -115,6 +122,9 @@ bool g_isDissolveMove;
bool g_isReverseDissolve;
bool g_isNomalDissolve;
bool g_isDissolve_B;
bool g_isDissolve_G;
float g_fDissolveMaskEdge;
float g_fDissolveSoftMask;
float g_fDissolveCutRatio;
@@ -452,7 +462,18 @@ float4 DrawEffect(PS_IN In)
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
if (g_isNoiseAlpha)
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r);
{
float fNoiseValue = vMtrlNoise.r;
if (g_isNoise_G == true)
fNoiseValue = vMtrlNoise.g;
if (g_isNoise_B == true)
fNoiseValue = vMtrlNoise.b;
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fNoiseValue.r);
}
if (g_isNoiseColor)
{
@@ -506,21 +527,27 @@ float4 DrawEffect(PS_IN In)
else
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord);
float fMaskValue = vMtrlMask.r;
if (g_isMask_G == true)
fMaskValue = vMtrlMask.g;
if (g_isMask_B == true)
fMaskValue = vMtrlMask.b;
float fSoftMask;
if (g_fSoftMask > FLT_EPSILON5)
fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask);
fSoftMask = saturate((fMaskValue - g_fSoftMaskEdge) * g_fSoftMask);
else
fSoftMask = vMtrlMask.r;
fSoftMask = fMaskValue;
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask);
}
else
{
{
vMtrlMask.r = 1.f;
}
@@ -570,12 +597,21 @@ float4 DrawEffect(PS_IN In)
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
/* */
float fDissolveValue = vMtrlDissolve.r;
if (g_isDissolve_G == true)
fDissolveValue = vMtrlDissolve.g;
if (g_isDissolve_B == true)
fDissolveValue = vMtrlDissolve.b;
float fSoftDissolve;
if (g_fDissolveSoftMask > FLT_EPSILON5)
fSoftDissolve = saturate((vMtrlDissolve.r - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
fSoftDissolve = saturate((fDissolveValue - g_fDissolveMaskEdge) * g_fDissolveSoftMask);
else
fSoftDissolve = vMtrlDissolve.r;
fSoftDissolve = fDissolveValue;
vMtrlDissolve.r = fSoftDissolve;
Binary file not shown.

After

Width:  |  Height:  |  Size: 950 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1007 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 779 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 458 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

@@ -746,6 +746,10 @@ void CEditEffect::Describe_Entity()
{
if (GUI::TreeNode("MASKING"))
{
GUI::Checkbox("Mask G", &m_EffectInfo.isMask_G);
GUI::SameLine();
GUI::Checkbox("Mask B", &m_EffectInfo.isMask_B);
GUI::InputFloat2("MaskUVCutting", (_float*)&m_EffectInfo.vUVMaskCutting);
GUI::Checkbox("MaskUVMove", &m_EffectInfo.isMaskUVMove);
@@ -797,6 +801,10 @@ void CEditEffect::Describe_Entity()
{
if (GUI::TreeNode("DISSOLV_TEX"))
{
GUI::Checkbox("Dissolve G", &m_EffectInfo.isDissolve_G);
GUI::SameLine();
GUI::Checkbox("Dissolve B", &m_EffectInfo.isDissolve_B);
GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve);
GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve);
@@ -895,6 +903,10 @@ void CEditEffect::Describe_Entity()
{
if (GUI::TreeNode("NOISE"))
{
GUI::Checkbox("Noise G", &m_EffectInfo.isNoise_G);
GUI::SameLine();
GUI::Checkbox("Noise B", &m_EffectInfo.isNoise_B);
GUI::Checkbox("NoiseColor", &m_EffectInfo.isNoiseColor);
GUI::Checkbox("NoiseAlpha", &m_EffectInfo.isNoiseAlpha);
GUI::Checkbox("NoiseMove", &m_EffectInfo.isNoiseUVMove);
@@ -1039,6 +1039,27 @@ HRESULT CEffectObject::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_RawValue("g_fModelBlurIntensity", &m_EffectInfo.fModelBlurIntensity, sizeof(_float)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask_G", &m_EffectInfo.isMask_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask_B", &m_EffectInfo.isMask_B, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise_G", &m_EffectInfo.isNoise_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise_B", &m_EffectInfo.isNoise_B, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve_G", &m_EffectInfo.isDissolve_G, sizeof(_bool)))) {
return E_FAIL;
}
if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve_B", &m_EffectInfo.isDissolve_B, sizeof(_bool)))) {
return E_FAIL;
}
@@ -46,11 +46,19 @@ HRESULT CLevel_EffectViewer::Initialize()
return E_FAIL;
}
_float4 vColor = _float4(0.2f, 0.2f, 0.2f, 1.f);
m_pGameInstance->Set_FogColor(vColor);
m_pGameInstance->Set_Fog(10.f, 5.f);
CTerrain::TERRAIN_DESC Desc = {};
/* Hogsmeade */
CInfoInstance::GetInstance()->Load_MapObjects("Dungeon_Map_Data", LAYER_BACKGROUND);
Desc.isEdit = false;
Desc.iAlphaSizeX = 2048;
Desc.iAlphaSizeY = 2048;
Desc.vPosition = _float3(-194, 18.5f, -153.f);
Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin";
Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin";
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc)))
return E_FAIL;
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CEffectPool>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함!
+11
View File
@@ -1513,6 +1513,17 @@ HRESULT CLoader::Loading_For_Effect()
});
Asset_FileLoad("../Bin/Resources/Models/Effect/DragonMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
return E_FAIL;
return S_OK;
});
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Desc_Box"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity()))))
return E_FAIL;
+8 -6
View File
@@ -89,8 +89,10 @@ class CEffectObject abstract : public CPartObject
_bool isMotionBlur = {};
_bool isPadding0 = {};
_bool isPadding1 = {};
_bool isNoise_G = {};
_bool isNoise_B= {};
_float fModelBlurIntensity = {0.f};
_bool isBloom = {};
@@ -115,7 +117,7 @@ class CEffectObject abstract : public CPartObject
_float isLightTime = { 0.f };
_bool isLightDissolve = {};
_bool isPadding2 = {};
_bool isDissolve_G = {};
_float4 vDissolveColor = {};
_float2 vDissolveColorCut = {};
@@ -133,9 +135,9 @@ class CEffectObject abstract : public CPartObject
_float4 vPadding5 = {};
_bool isRimLight = {};
_bool isPadding3 = {};
_bool isPadding4 = {};
_bool isPadding5 = {};
_bool isMask_G = {};
_bool isMask_B = {};
_bool isDissolve_B = {};
}EFFECT_INFO;
@@ -40,8 +40,6 @@ class CInfoInstance final : public CBase
pair<CUnit*, CTransform*> Get_NearestPlayerAlly(_fvector vPos);
#pragma endregion
#pragma region MAP_INFO
HRESULT Load_MapObjects(const _char* pFilePath, const _wchar* pLayerTag);
#pragma endregion
#pragma region Spell_INFO
HRESULT Load_SpellInfo(const _char* pFilePath);