1120-21:27
commit
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -82,6 +82,7 @@ bool g_isMaskUVMove;
|
||||
bool g_isNoiseUVMove;
|
||||
|
||||
bool g_isReverseDissolve;
|
||||
bool g_isEmissiveDissolve;
|
||||
|
||||
float g_fFar;
|
||||
|
||||
@@ -427,14 +428,23 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
discard;
|
||||
|
||||
Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w);
|
||||
|
||||
|
||||
if (vMtrlDiffuse.a / g_fDiffuseAlpha > g_fEmissiveCutAlpha)
|
||||
float fEmissiveCutAlpha = g_fEmissiveCutAlpha;
|
||||
|
||||
if (g_isEmissiveDissolve == true)
|
||||
{
|
||||
float3 vEmissiveColor = g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a);
|
||||
Out.vColorTarget = vector(vEmissiveColor, vMtrlDiffuse.a);
|
||||
fEmissiveCutAlpha += (In.vLifeTime.x / In.vLifeTime.y) / 2;
|
||||
}
|
||||
else
|
||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
float fSmoothAlpha = smoothstep(fEmissiveCutAlpha - 0.1f, fEmissiveCutAlpha + 0.1f, vMtrlDiffuse.a);
|
||||
|
||||
|
||||
|
||||
float3 vEmissiveColor = g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a);
|
||||
|
||||
Out.vColorTarget = vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);
|
||||
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -623,18 +633,21 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
||||
|
||||
}
|
||||
|
||||
//vMtrlDiffuse.a *= g_fDiffuseAlpha;
|
||||
vMtrlDiffuse.a *= g_fDiffuseAlpha;
|
||||
|
||||
//// 색깔 추가할 처리 (이미시브)
|
||||
// 색깔 추가할 처리 (이미시브)
|
||||
|
||||
//float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
|
||||
vector vEmissive;
|
||||
|
||||
//if (g_isEmissive == true)
|
||||
//{
|
||||
// vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||
//}
|
||||
float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f);
|
||||
|
||||
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity;
|
||||
float fSmoothAlpha = smoothstep(g_fEmissiveCutAlpha - 0.02f, g_fEmissiveCutAlpha + 0.02f, vMtrlDiffuse.a);
|
||||
|
||||
float3 vEmissiveColor = g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a);
|
||||
|
||||
vEmissive = vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);
|
||||
|
||||
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity + vEmissive;
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -65,8 +65,6 @@ void CEditEffect::Late_Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
|
||||
XMStoreFloat4x4(&m_CombinedWorldMatrix , m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix());
|
||||
|
||||
if (m_EffectInfo.isBlur == true)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this);
|
||||
@@ -441,6 +439,7 @@ void CEditEffect::Describe_Entity()
|
||||
GUI::ColorEdit4("Emissive", (_float*)&m_EffectInfo.vEmissive);
|
||||
|
||||
GUI::Checkbox("EmissiveTex", &m_EffectInfo.isEmissive);
|
||||
GUI::Checkbox("EmissiveDissolve", &m_EffectInfo.isEmissiveDissolve);
|
||||
|
||||
if (m_EffectInfo.isEmissive)
|
||||
{
|
||||
@@ -724,6 +723,21 @@ void CEditEffect::Describe_Entity()
|
||||
|
||||
}
|
||||
|
||||
ImGui::Begin("Simple Plot");
|
||||
|
||||
// samples.data()와 개수, optional offset 인덱스 등 넘길 수 있음
|
||||
ImGui::PlotLines("Value", m_ValueVector.data(), (int)m_ValueVector.size(), 0, nullptr, FLT_MAX, FLT_MAX, ImVec2(0, 100));
|
||||
|
||||
GUI::InputFloat("InputValue", &m_fInputValue);
|
||||
|
||||
if (GUI::Button("AddValue"))
|
||||
{
|
||||
m_ValueVector.push_back(m_fInputValue);
|
||||
}
|
||||
|
||||
ImGui::End();
|
||||
|
||||
|
||||
GUI::Separator(); GUI::Spacing();
|
||||
|
||||
|
||||
|
||||
@@ -609,9 +609,8 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel)
|
||||
HRESULT CEffectObject::Bind_ShaderResources()
|
||||
{
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", &m_CombinedWorldMatrix))) {
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
@@ -660,8 +659,12 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isReverseDissolve", &m_EffectInfo.isReverseDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolve", &m_EffectInfo.isEmissiveDissolve, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -40,6 +40,7 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
m_wstrEffectName = L"Nomal_Jap";
|
||||
|
||||
m_PartObjects.begin()->second->Set_Visible(true);
|
||||
m_PartObjects.begin()->second->Get_Component<CTransform>()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
@@ -91,7 +92,7 @@ HRESULT CNomalJap::Ready_Child()
|
||||
Desc.vDeltaPos = { 0.f, 0.f, 1.f };
|
||||
Desc.vLifeTime = { 0.f, 2.f };
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this))) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummy_PhysXEffectHitBox>(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -138,12 +139,18 @@ void CNomalJap::OnCollision(CGameObject* pOther , void* pDesc)
|
||||
}
|
||||
|
||||
m_PartObjects.begin()->second->Set_Visible(false);
|
||||
|
||||
m_pPhysHitBox->Set_Dead();
|
||||
}
|
||||
|
||||
void CNomalJap::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
//if(m_pPhysHitBox != nullptr)
|
||||
// if (m_pPhysHitBox->Get_Depth() == false)
|
||||
// SAFE_RELEASE(m_pPhysHitBox);
|
||||
|
||||
}
|
||||
|
||||
void CNomalJap::Describe_Entity()
|
||||
|
||||
@@ -34,7 +34,8 @@ class CEditEffect final : public CEffectObject
|
||||
|
||||
private:
|
||||
_int m_iSelectTextureNum = {};
|
||||
|
||||
vector<_float> m_ValueVector = {};
|
||||
_float m_fInputValue = {};
|
||||
public:
|
||||
static CEditEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
|
||||
@@ -65,6 +65,8 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagPreEffectInfo
|
||||
@@ -111,10 +113,9 @@ class CEffectObject abstract : public CPartObject
|
||||
|
||||
LIGHT_DESC LightDesc = {};
|
||||
RENDER eRenderOrder = { RENDER::EFFECT };
|
||||
|
||||
_bool isReverseDissolve = {};
|
||||
|
||||
|
||||
EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT };
|
||||
_bool isEmissiveDissolve = { false };
|
||||
|
||||
}PRE_EFFECT_INFO;
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ class CNomalJap final : public CEffect_Container
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CDummy_PhysXEffectHitBox* m_pPhysHitBox = {};
|
||||
public:
|
||||
static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
|
||||
@@ -26,6 +26,20 @@ class ENGINE_DLL CContainerObject abstract : public CGameObject
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T* Get_PartObject() {
|
||||
|
||||
for (auto& pPart : m_PartObjects)
|
||||
{
|
||||
if (typeid((*pPart.second)) == typeid(T))
|
||||
{
|
||||
return dynamic_cast<T*>(pPart.second);
|
||||
}
|
||||
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
protected:
|
||||
unordered_map<_string, class CPartObject*> m_PartObjects;
|
||||
|
||||
@@ -61,4 +75,4 @@ class ENGINE_DLL CContainerObject abstract : public CGameObject
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
NS_END
|
||||
|
||||
Reference in New Issue
Block a user