[merge commit]
This commit is contained in:
@@ -295,6 +295,23 @@ BlendState BS_WeightBlend
|
||||
|
||||
};
|
||||
|
||||
BlendState BS_BULR_MESH // ADDITIVE_BLEND
|
||||
{
|
||||
BlendEnable[0] = true;
|
||||
BlendEnable[1] = false;
|
||||
BlendEnable[2] = false;
|
||||
BlendEnable[3] = false;
|
||||
BlendEnable[4] = false;
|
||||
BlendEnable[5] = false;
|
||||
BlendEnable[6] = false;
|
||||
BlendEnable[7] = false;
|
||||
|
||||
// Ac * (1) + Bc * (1);
|
||||
SrcBlend[0] = one;
|
||||
DestBlend[0] = one;
|
||||
BlendOp[0] = Add;
|
||||
};
|
||||
|
||||
BlendState BS_WhiteMask
|
||||
{
|
||||
BlendEnable[0] = false;
|
||||
|
||||
@@ -55,6 +55,8 @@ struct ParticleValue
|
||||
|
||||
float fRotateAttenuation;
|
||||
float fRotateAttDelay;
|
||||
|
||||
row_major matrix PreWorldMatrix;
|
||||
};
|
||||
|
||||
|
||||
@@ -156,10 +158,13 @@ void CS_MAIN(
|
||||
// 라이프타임 움직임
|
||||
particle.vLifeTime.x += fTimeDelta;
|
||||
|
||||
/* 이전 월드를 기록한다 */
|
||||
|
||||
row_major float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation };
|
||||
particleValue.PreWorldMatrix = CurMat;
|
||||
|
||||
|
||||
/* 내 z가 가려지는 상황이었다면 연산하지않음*/
|
||||
|
||||
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y || particleValue.isStop == true)
|
||||
{
|
||||
|
||||
|
||||
@@ -625,6 +625,9 @@ void CInstance_Model::Instane_Buffer_ReStruct()
|
||||
D3D11_MAPPED_SUBRESOURCE SubResource{};
|
||||
D3D11_MAPPED_SUBRESOURCE ParticleValue_SubResource{};
|
||||
|
||||
_float4x4 IdentityMat = {};
|
||||
XMStoreFloat4x4(&IdentityMat, XMMatrixIdentity());
|
||||
|
||||
if (SUCCEEDED(m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource)))
|
||||
{
|
||||
VTX_INSTANCE_PARTICLE* pVertices = static_cast<VTX_INSTANCE_PARTICLE*>(SubResource.pData);
|
||||
@@ -755,10 +758,14 @@ void CInstance_Model::Instane_Buffer_ReStruct()
|
||||
memcpy(&pParticleValues[i].vOriginLook, SRMatrix.m[2], sizeof(_float4));
|
||||
memcpy(&pParticleValues[i].vOriginTranslation, &pVertices[i].vTranslation, sizeof(_float4));
|
||||
|
||||
memcpy(&pParticleValues[i].PreWorldMatrix, &IdentityMat, sizeof(_float4x4));
|
||||
|
||||
if (m_InstanceDesc.isRandomAniIndex == true)
|
||||
{
|
||||
pParticleValues[i].vAniIndex = _float2((_float)m_pGameInstance->Random_Int(0, (_int)m_InstanceDesc.vAniIndex.y) , m_InstanceDesc.vAniIndex.y);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
m_pContext->Unmap(m_pParticleValueBuffer, 0);
|
||||
|
||||
@@ -377,6 +377,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse A")) {
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Object Diffuse")) {
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse B")) {
|
||||
eTexture = aiTextureType::aiTextureType_BASE_COLOR;
|
||||
m_vSRV_Flag.x += 1.f;
|
||||
@@ -403,6 +406,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Normal_1")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Object Normal")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Normal A Map")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
@@ -647,7 +653,7 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
{
|
||||
if (!strcmp(FileType.c_str(), "Detail Diffuse A"))
|
||||
return S_OK;
|
||||
if (!strcmp(FileType.c_str(), "Cavity-Lichen D Mask"))
|
||||
else if (!strcmp(FileType.c_str(), "Cavity-Lichen D Mask"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Detail Diffuse B"))
|
||||
return S_OK;
|
||||
@@ -675,8 +681,16 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Albedo"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Displacement"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Material"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Distortion Pattern"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Ground Diffuse"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Ground MRO/SRO"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Rock_Texture")) {
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ void CRenderer::Render()
|
||||
Render_Effect();
|
||||
Render_NonLight();
|
||||
Render_Blend();
|
||||
Render_Blur_Mesh();
|
||||
Render_WeightBlend();
|
||||
Render_PostProcessing();
|
||||
Render_LastColor();
|
||||
@@ -794,7 +795,6 @@ void CRenderer::Render_Blend()
|
||||
return pSour->Get_Depth() > pDest->Get_Depth();
|
||||
});
|
||||
|
||||
|
||||
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLEND)])
|
||||
{
|
||||
if (nullptr != pRenderObject) {
|
||||
@@ -810,6 +810,37 @@ void CRenderer::Render_Blend()
|
||||
COMPUTE_TIMEDELTA("Timer_Render_Blend");
|
||||
}
|
||||
|
||||
void CRenderer::Render_Blur_Mesh()
|
||||
{
|
||||
COMPUTE_TIMEDELTA("Timer_Render_Blur_Mesh");
|
||||
EVENTSCOPE_("Render_Blur_Mesh");
|
||||
|
||||
m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)].sort([](CGameObject* pSour, CGameObject* pDest)->_bool {
|
||||
return pSour->Get_Depth() > pDest->Get_Depth();
|
||||
});
|
||||
|
||||
if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh")))
|
||||
return;
|
||||
|
||||
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)])
|
||||
{
|
||||
if (nullptr != pRenderObject) {
|
||||
if (FAILED(pRenderObject->Render())) {
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
|
||||
SAFE_RELEASE(pRenderObject);
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->End_MRT())) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)].clear();
|
||||
COMPUTE_TIMEDELTA("Timer_Render_Blur_Mesh");
|
||||
}
|
||||
|
||||
void CRenderer::Render_PostProcessing()
|
||||
{
|
||||
/* POSTPROCESSING */
|
||||
|
||||
@@ -506,6 +506,17 @@ HRESULT CRenderer::Initialize()
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur"), TEXT("Target_MotionBlur")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* MRT_Blur_Mesh */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_Mesh"), TEXT("Target_VelocityMap")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_Mesh"), TEXT("Target_Depth")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
m_pShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_DEFERRED, nullptr, nullptr);
|
||||
|
||||
@@ -5,7 +5,7 @@ NS_BEGIN(Engine)
|
||||
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
|
||||
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
|
||||
enum class COLLIDER { AABB, OBB, SPHERE, END };
|
||||
enum class RENDER {PRIORITY, SHADOW_NEAR, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, DISTORTION, UI, OCCLUSION, SHADOW_MIDDLE, PRESHADOW, UI_OVERLAY ,END };
|
||||
enum class RENDER {PRIORITY, SHADOW_NEAR, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, DISTORTION, BULR_MESH ,UI, OCCLUSION, SHADOW_MIDDLE, PRESHADOW, UI_OVERLAY ,END };
|
||||
enum class RAY { LOCAL, WORLD, END };
|
||||
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
|
||||
enum class BLEND_BONE{SPINE,SHOULDER_L,SHOULDER_R,NECK,SHOULDER_NECK_L, SHOULDER_NECK_R,END};
|
||||
|
||||
@@ -234,6 +234,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float fRotateAttenuation = {};
|
||||
_float fRotateAttDelay = {};
|
||||
|
||||
_float4x4 PreWorldMatrix = {};
|
||||
|
||||
}CS_PARTICLE_VALUE_DESC;
|
||||
|
||||
public:
|
||||
|
||||
@@ -124,6 +124,7 @@ class CRenderer final : public CBase
|
||||
void Render_WeightBlend();
|
||||
void Render_NonLight();
|
||||
void Render_Blend();
|
||||
void Render_Blur_Mesh();
|
||||
void Render_PostProcessing();
|
||||
void Render_Distortion();
|
||||
void Render_DistortionAcc();
|
||||
|
||||
@@ -21,7 +21,7 @@ enum ESTATE
|
||||
MAPHELP,POTION,
|
||||
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
|
||||
SPELL_FAIL, SPELL_CHARGE,
|
||||
ANCIENT_LIGHTNING_CHARGE, ANCIENT_LIGHTNING,
|
||||
ANCIENT_LIGHTNING,
|
||||
PARRY_180,PARRY2, PARRY3, PARRY4,
|
||||
BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_REVELIO, BROOM_HOVER_IDLE, BROOM_HOVER_FWD, BROOM_HOVER_LEFT, BROOM_HOVER_RIGHT, BROOM_HOVER_START, BROOM_HOVER_REVELIO,BROOM_MOUNT, BROOM_MOUNT_END,BROOM_DISMOUNT,BROOM_TURBO_FWD, BROOM_TURBO_DOWN, BROOM_TURBO_UP, BROOM_TURBO_LEFT, BROOM_TURBO_RIGHT,
|
||||
RUSH_START,RUSH_LOOP,RUSH_END,
|
||||
|
||||
Reference in New Issue
Block a user