Merge branch 'Develope' into Shader
This commit is contained in:
@@ -251,7 +251,7 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
|
||||
|
||||
if (ch.KeyCount < 2)
|
||||
{
|
||||
KeyFrame k = g_KeyFrameBuffer[ch.StartIndex];
|
||||
KeyFrame k = g_PrevKeyFrameBuffer[ch.StartIndex];
|
||||
S = k.vScale;
|
||||
T = k.vTranslation;
|
||||
R = QuatNormalize(k.vRotation);
|
||||
@@ -274,13 +274,13 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
|
||||
|
||||
row_major float4x4 SampleBlendedLocal(uint bone)
|
||||
{
|
||||
if (PrevAnimIndex == 0xFFFFFFFFu)
|
||||
if (PrevAnimIndex == -1)
|
||||
{
|
||||
float3 S;
|
||||
float4 R;
|
||||
float3 T;
|
||||
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
|
||||
if ((int) bone == RootBoneIndex)
|
||||
if (bone == RootBoneIndex)
|
||||
{
|
||||
T = 0;
|
||||
R = RootInitRot;
|
||||
@@ -295,7 +295,7 @@ row_major float4x4 SampleBlendedLocal(uint bone)
|
||||
float3 T;
|
||||
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
|
||||
|
||||
if ((int) bone == RootBoneIndex)
|
||||
if (bone == RootBoneIndex)
|
||||
{
|
||||
T = 0;
|
||||
R = RootInitRot;
|
||||
@@ -305,38 +305,17 @@ row_major float4x4 SampleBlendedLocal(uint bone)
|
||||
|
||||
float br = saturate(BlendRatio);
|
||||
|
||||
if (br <= 0.0f)
|
||||
{
|
||||
float3 S;
|
||||
float4 R;
|
||||
float3 T;
|
||||
SampleLocalTRS_Prev(bone, PrevTime, S, R, T);
|
||||
|
||||
if ((int) bone == RootBoneIndex)
|
||||
{
|
||||
T = 0;
|
||||
R = RootInitRot;
|
||||
}
|
||||
return MakeAffine(S, R, T);
|
||||
}
|
||||
|
||||
if (br >= 1.0f)
|
||||
{
|
||||
float3 S;
|
||||
float4 R;
|
||||
float3 T;
|
||||
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
|
||||
|
||||
if ((int) bone == RootBoneIndex)
|
||||
{
|
||||
T = 0;
|
||||
R = RootInitRot;
|
||||
}
|
||||
return MakeAffine(S, R, T);
|
||||
}
|
||||
|
||||
float3 sA, sB, tA, tB;
|
||||
float4 rA, rB;
|
||||
|
||||
float prevT = PrevTime;
|
||||
|
||||
if (BlendRatio < 1e-4f)
|
||||
{
|
||||
prevT = CurrentTime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
SampleLocalTRS_Prev(bone, PrevTime, sA, rA, tA);
|
||||
SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB);
|
||||
@@ -345,7 +324,7 @@ row_major float4x4 SampleBlendedLocal(uint bone)
|
||||
float3 T = lerp(tA, tB, br);
|
||||
float4 R = QuatSlerp(rA, rB, br);
|
||||
|
||||
if ((int) bone == RootBoneIndex)
|
||||
if (bone == RootBoneIndex)
|
||||
{
|
||||
T = 0;
|
||||
R = RootInitRot;
|
||||
|
||||
@@ -88,7 +88,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
bool isMoveUp;
|
||||
bool isExcludePos;
|
||||
bool isStopMove_For_Depth_Compare;
|
||||
bool isPadding2;
|
||||
bool isNoPos;
|
||||
|
||||
float fTimeDelta;
|
||||
float fSizeLerpOption; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
@@ -146,6 +146,11 @@ void CS_MAIN(
|
||||
particle.vTranslation = CurMat[3].xyzw;
|
||||
}
|
||||
|
||||
if (isNoPos)
|
||||
{
|
||||
particle.vTranslation.xyz += WorldMatrix[3].xyz;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 라이프타임 움직임
|
||||
|
||||
@@ -629,12 +629,18 @@ call Update_Lib.bat
|
||||
<None Include="..\Public\fMod\fmod_errors.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Distortion.hlsl" />
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Distortion.hlsl">
|
||||
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
|
||||
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
|
||||
</FxCompile>
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Instance_Compute.hlsl">
|
||||
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
|
||||
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
|
||||
</FxCompile>
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Local_Compute.hlsl" />
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Local_Compute.hlsl">
|
||||
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
|
||||
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
|
||||
</FxCompile>
|
||||
<FxCompile Include="..\Bin\Resources\ShaderFiles\Shader_Mesh_Compute.hlsl">
|
||||
<ShaderType Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Effect</ShaderType>
|
||||
<ShaderModel Condition="'$(Configuration)|$(Platform)'=='Release|x64'">5.0</ShaderModel>
|
||||
|
||||
@@ -888,10 +888,7 @@ HRESULT CGameInstance::Bind_CS_RenderTarget(_uint iIndex, const _wstring& strTar
|
||||
{
|
||||
return m_pRenderTarget_Manager->Bind_CS_RenderTarget(iIndex, strTargetTag);
|
||||
}
|
||||
_float2 CGameInstance::Get_RenderTargetSize(const _wstring& wstrTargetKey)
|
||||
{
|
||||
return m_pRenderTarget_Manager->Get_RenderTargetSize(wstrTargetKey);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CGameInstance::RenderTarget_Debuger()
|
||||
{
|
||||
@@ -1213,6 +1210,11 @@ _float3 CGameInstance::Get_MouseMove()
|
||||
return { 0.f, 0.f, 0.f };
|
||||
}
|
||||
|
||||
_long CGameInstance::Get_DIMouseMove(MOUSEMOVESTATE eMouseState)
|
||||
{
|
||||
return m_pKey_Manager->Get_DIMouseMove(eMouseState);
|
||||
}
|
||||
|
||||
void CGameInstance::Picking()
|
||||
{
|
||||
return m_pMouse_Manager->Picking();
|
||||
|
||||
@@ -569,6 +569,8 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
|
||||
pDesc->isRandomAniIndex = m_InstanceDesc.isRandomAniIndex;
|
||||
pDesc->isExcludePos = m_InstanceDesc.isExcludePos;
|
||||
pDesc->isStop_Move_For_Depth_Compare = m_InstanceDesc.isStop_Move_For_Depth_Compare;
|
||||
pDesc->isNoPos = m_InstanceDesc.isNoPos;
|
||||
|
||||
|
||||
pDesc->WorldMatrix = *m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr();
|
||||
pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption;
|
||||
@@ -857,6 +859,13 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("NoPos", &m_InstanceDesc.isNoPos))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (GUI::Checkbox("RandomIndex", &m_InstanceDesc.isRandomAniIndex))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
@@ -324,6 +324,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse A Map")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Difuse_1")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Base color")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
@@ -336,9 +339,15 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Lamp")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "WindowDiffuse")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Color Glass")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Window_Surface_Diffuse")){
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
@@ -353,6 +362,18 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = aiTextureType::aiTextureType_HEIGHT;
|
||||
m_vSRV_Flag.x += 2.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse C")) {
|
||||
eTexture = aiTextureType::aiTextureType_HEIGHT;
|
||||
m_vSRV_Flag.x += 2.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse D")) {
|
||||
eTexture = aiTextureType::aiTextureType_CLEARCOAT;
|
||||
m_vSRV_Flag.x += 4.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Cavity D")) {
|
||||
eTexture = aiTextureType::aiTextureType_HEIGHT;
|
||||
m_vSRV_Flag.x += 2.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse A")) {
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
@@ -360,6 +381,14 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = aiTextureType::aiTextureType_BASE_COLOR;
|
||||
m_vSRV_Flag.x += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Lichen D")) {
|
||||
eTexture = aiTextureType::aiTextureType_BASE_COLOR;
|
||||
m_vSRV_Flag.x += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Diffuse B Map")) {
|
||||
eTexture = aiTextureType::aiTextureType_BASE_COLOR;
|
||||
m_vSRV_Flag.x += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "TopBlend_Albedo")) {
|
||||
eTexture = aiTextureType::aiTextureType_BASE_COLOR;
|
||||
m_vSRV_Flag.x += 1.f;
|
||||
@@ -367,6 +396,16 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Normal Map")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "HRO Map")){
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
m_vPBR_Flag.y = PBR_HRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Normal_1")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Normal A Map")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Base Normal")){
|
||||
eTexture = aiTextureType::aiTextureType_NORMALS;
|
||||
}
|
||||
@@ -398,6 +437,10 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = aiTextureType::aiTextureType_SHININESS;
|
||||
m_vSRV_Flag.y += 2.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Cavity Detail N")) {
|
||||
eTexture = aiTextureType::aiTextureType_SHININESS;
|
||||
m_vSRV_Flag.y += 2.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Moss Normal Map")) {
|
||||
eTexture = aiTextureType::aiTextureType_SHININESS;
|
||||
m_vSRV_Flag.y += 2.f;
|
||||
@@ -413,6 +456,14 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = aiTextureType::aiTextureType_OPACITY;
|
||||
m_vSRV_Flag.y += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Lichen Detail N")){
|
||||
eTexture = aiTextureType::aiTextureType_OPACITY;
|
||||
m_vSRV_Flag.y += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Normal B Map")){
|
||||
eTexture = aiTextureType::aiTextureType_OPACITY;
|
||||
m_vSRV_Flag.y += 1.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "MRO")){
|
||||
eTexture = aiTextureType::aiTextureType_METALNESS;
|
||||
m_vPBR_Flag.x = PBR_MRO;
|
||||
@@ -473,6 +524,10 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = aiTextureType::aiTextureType_METALNESS;
|
||||
m_vPBR_Flag.x = PBR_SRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO Map D")) {
|
||||
eTexture = aiTextureType::aiTextureType_SHEEN;
|
||||
m_vPBR_Flag.x = PBR_SRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO Map B")) {
|
||||
eTexture = Switch_PBR_B(Use);
|
||||
m_vPBR_Flag.y = PBR_SRO;
|
||||
@@ -485,6 +540,10 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
eTexture = Switch_PBR_B(Use);
|
||||
m_vPBR_Flag.y = PBR_SRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO B Map")) {
|
||||
eTexture = Switch_PBR_B(Use);
|
||||
m_vPBR_Flag.y = PBR_SRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SROH")) {
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
m_vPBR_Flag.x = PBR_SROH;
|
||||
@@ -504,6 +563,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "MROH/SROH Map A")) {
|
||||
eTexture = Switch_PBR(Use);
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Object MRO/SRO")) {
|
||||
eTexture = Switch_PBR(Use);
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "MROH/SROH Map B")) {
|
||||
eTexture = Switch_PBR_B(Use);
|
||||
}
|
||||
@@ -527,6 +589,8 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "RGBA_Mask")) {
|
||||
eTexture = aiTextureType::aiTextureType_MAYA_BASE;
|
||||
m_vSRV_Flag.x = 5.f;
|
||||
m_vSRV_Flag.y = 5.f;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "exterior_Cube_Map")) {
|
||||
return S_OK;
|
||||
@@ -540,6 +604,9 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
else if (!strcmp(FileType.c_str(), "Emissive Map")) {
|
||||
eTexture = aiTextureType::aiTextureType_EMISSIVE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "Lamp Emissive")) {
|
||||
eTexture = aiTextureType::aiTextureType_EMISSIVE;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "FakeExtDiffuse")) {
|
||||
eTexture = aiTextureType::aiTextureType_EMISSIVE;
|
||||
}
|
||||
@@ -580,8 +647,14 @@ 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"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Detail Diffuse B"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Detail Albedo"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Top Layer Base Color"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Detail Normal A"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Detail Normal B"))
|
||||
@@ -600,6 +673,10 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Distortion Top"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Albedo"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Material"))
|
||||
return S_OK;
|
||||
else if (!strcmp(FileType.c_str(), "Rock_Texture")) {
|
||||
eTexture = aiTextureType::aiTextureType_DIFFUSE;
|
||||
}
|
||||
@@ -704,6 +781,10 @@ aiTextureType CMaterial::Switch_PBR(string FileType)
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
m_vPBR_Flag.y = PBR_HRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "HRO Map")) {
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
m_vPBR_Flag.y = PBR_HRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO")) {
|
||||
eTexture = aiTextureType::aiTextureType_SPECULAR;
|
||||
m_vPBR_Flag.y = PBR_SRO;
|
||||
@@ -746,10 +827,6 @@ aiTextureType CMaterial::Switch_PBR_B(string FileType)
|
||||
eTexture = aiTextureType::aiTextureType_DISPLACEMENT;
|
||||
m_vPBR_Flag.y = PBR_SROA;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "HRO")) {
|
||||
eTexture = aiTextureType::aiTextureType_DISPLACEMENT;
|
||||
m_vPBR_Flag.y = PBR_HRO;
|
||||
}
|
||||
else if (!strcmp(FileType.c_str(), "SRO")) {
|
||||
eTexture = aiTextureType::aiTextureType_DISPLACEMENT;
|
||||
m_vPBR_Flag.y = PBR_SRO;
|
||||
@@ -978,16 +1055,16 @@ HRESULT CMaterial::Bind_SRV(CShader* pShader, MODEL eType)
|
||||
case aiTextureType_UNKNOWN:
|
||||
pConstantName = "g_UnknownTexture";
|
||||
break;
|
||||
case aiTextureType_SHEEN:
|
||||
case aiTextureType_SHEEN: // Rock SRO
|
||||
pConstantName = "g_SheenTexture";
|
||||
break;
|
||||
case aiTextureType_CLEARCOAT:
|
||||
case aiTextureType_CLEARCOAT: // Rock_4 Diffuse
|
||||
pConstantName = "g_ClearcoadTexture";
|
||||
break;
|
||||
case aiTextureType_TRANSMISSION:
|
||||
pConstantName = "g_TransmissionTexture";
|
||||
break;
|
||||
case aiTextureType_MAYA_BASE:
|
||||
case aiTextureType_MAYA_BASE: // Mask
|
||||
pConstantName = "g_Maya_BaseTexture";
|
||||
break;
|
||||
case aiTextureType_MAYA_SPECULAR:
|
||||
|
||||
@@ -174,6 +174,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
}
|
||||
|
||||
|
||||
ComputeAnimation(m_iCurrentAnimIndex, 0);
|
||||
|
||||
if (m_bIsFinishedAnim)
|
||||
{
|
||||
if (m_bIsLoop)
|
||||
@@ -186,7 +189,6 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
}
|
||||
}
|
||||
|
||||
ComputeAnimation(m_iCurrentAnimIndex, 0);
|
||||
|
||||
if (m_bRatio) {
|
||||
Update_RootBone(m_fAmount * m_fRatio);
|
||||
@@ -1840,7 +1842,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
|
||||
|
||||
#ifndef _DEBUG
|
||||
|
||||
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix)
|
||||
HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix, _uint iLevel)
|
||||
{
|
||||
m_eType = eType;
|
||||
|
||||
@@ -1858,7 +1860,7 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Materials(pModelFilePath))) {
|
||||
if (FAILED(Ready_Materials(pModelFilePath, iLevel))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (MODEL::PBR_ANIM == m_eType || MODEL::PBR_NONANIM == m_eType) {
|
||||
|
||||
@@ -16,8 +16,6 @@ HRESULT CRenderTarget::Initialize(_uint iSizeX, _uint iSizeY, DXGI_FORMAT ePixel
|
||||
{
|
||||
D3D11_TEXTURE2D_DESC TextureDesc{};
|
||||
|
||||
m_vTargetSize.x = (_float)iSizeX;
|
||||
m_vTargetSize.y = (_float)iSizeY;
|
||||
TextureDesc.Width = iSizeX;
|
||||
TextureDesc.Height = iSizeY;
|
||||
TextureDesc.MipLevels = 1;
|
||||
|
||||
@@ -496,15 +496,6 @@ HRESULT CRenderTarget_Manager::Finish_RenderTarget(CVIBuffer_Rect* pVIBuffer, CS
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
_float2 CRenderTarget_Manager::Get_RenderTargetSize(const _wstring& wstrTargetKey)
|
||||
{
|
||||
CRenderTarget* pRenderTarget = Find_RenderTarget(wstrTargetKey);
|
||||
if (nullptr == pRenderTarget) {
|
||||
return _float2();
|
||||
}
|
||||
|
||||
return pRenderTarget->Get_TargetSize();
|
||||
}
|
||||
|
||||
HRESULT CRenderTarget_Manager::End_MRT()
|
||||
{
|
||||
|
||||
@@ -180,6 +180,7 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
||||
XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vLerpLow);
|
||||
XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vLerpHigh);
|
||||
|
||||
|
||||
if (m_iNumCount >= m_iNumVertices)
|
||||
{
|
||||
memmove(m_pVertices, m_pVertices + 2, sizeof(VTXPOSTEX) * (m_iNumCount - 2));
|
||||
@@ -189,7 +190,7 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
||||
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_iNumCount; i += 2)
|
||||
for (_uint i = 0; i + 1 < m_iNumCount; i += 2)
|
||||
{
|
||||
|
||||
_float u = ((_float)i / (m_iNumCount - 2));
|
||||
@@ -201,7 +202,6 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
||||
|
||||
m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float f
|
||||
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMat);
|
||||
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMat);
|
||||
|
||||
/* 시작시 고정점 업데이트 */
|
||||
/* 시작 시 고정점 업데이트 */
|
||||
XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
|
||||
XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
|
||||
|
||||
@@ -323,12 +323,12 @@ void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float f
|
||||
_float fHighDiff = (fLength - fHighDist) / fHighDist;
|
||||
|
||||
// 각 점을 절반씩 밀거나 당겨서 거리 맞춤
|
||||
// 손잡이(Pinned)는 움직이지 않도록 질량 비율 조절 가능 (여기선 0.5씩)
|
||||
|
||||
_vector vLowOffset = vDeltaLow * (fMass * fLowDiff);
|
||||
_vector vHighOffset = vDeltaHigh * (fMass * fHighDiff);
|
||||
|
||||
// k!=0 (즉, 움직이는 마디)일 때만 vFirst를 움직임
|
||||
// k!=0일 때만 vFirst를 움직임
|
||||
|
||||
if (k != 0)
|
||||
{
|
||||
vFirst[0] -= vLowOffset;
|
||||
@@ -340,12 +340,11 @@ void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float f
|
||||
vNext[1] += vHighOffset;
|
||||
|
||||
|
||||
// --- 2. 고정점 몫 몰아주기 (k=0 일 때만) ---
|
||||
// k=0일 때 vFirst (손잡이)가 움직이지 않은 몫을 vNext에게 전부 몰아줌
|
||||
|
||||
// k=0일 때 vFirst (손잡이)가 움직이지 않은 몫을 vNext (첫 마디)에게 전부 몰아줌
|
||||
if (k == 0)
|
||||
{
|
||||
// vFirst가 움직여야 할 양(-Offset)만큼 vNext에 추가 보정 (+Offset)
|
||||
// vFirst가 움직여야 할 만큼 vNext에 추가 보정
|
||||
vNext[0] += vLowOffset;
|
||||
vNext[1] += vHighOffset;
|
||||
}
|
||||
@@ -357,10 +356,7 @@ void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float f
|
||||
vFirst[1] -= vHighOffset;
|
||||
}
|
||||
|
||||
// --- 3. 결과 저장 ---
|
||||
|
||||
// vFirst 저장 (k=0 일 때는 vFirst가 vLow/vHigh의 값을 가지지만,
|
||||
// 움직이지 않았으므로 저장해도 무방. 하지만 명확성을 위해 조건부 저장 가능)
|
||||
|
||||
if (k != 0)
|
||||
{
|
||||
@@ -406,6 +402,176 @@ void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float f
|
||||
}
|
||||
}
|
||||
|
||||
void CTrail::Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float fDamping, _float fLength, _float fMass)
|
||||
{
|
||||
_matrix WorldMat = {};
|
||||
|
||||
WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
|
||||
WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
|
||||
WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
|
||||
WorldMat.r[3] = WorldMatrix.r[3];
|
||||
|
||||
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMat);
|
||||
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMat);
|
||||
|
||||
|
||||
if (m_iNumCount == 0)
|
||||
{
|
||||
for (_uint i = 0; i < m_iNumVertices; i += 2)
|
||||
{
|
||||
XMStoreFloat3(&m_pVertices[i].vPosition, vLow);
|
||||
XMStoreFloat3(&m_pVertices[i + 1].vPosition, vHigh);
|
||||
|
||||
m_pOldPosition[i] = m_pVertices[i].vPosition;
|
||||
m_pOldPosition[i + 1] = m_pVertices[i + 1].vPosition;
|
||||
}
|
||||
|
||||
// 처음엔 마디 1개(정점 2개)만 보여주며 시작
|
||||
m_iNumCount = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_iNumCount > 2)
|
||||
{
|
||||
memmove(m_pVertices + 2, m_pVertices, sizeof(VTXPOSTEX) * (m_iNumCount - 2));
|
||||
memmove(m_pOldPosition + 2, m_pOldPosition, sizeof(_float3) * (m_iNumCount - 2));
|
||||
}
|
||||
|
||||
if (m_iNumCount >= m_iNumVertices)
|
||||
m_iNumCount -= 2;
|
||||
|
||||
/* 시작 시 고정점 업데이트 */
|
||||
XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
|
||||
XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
|
||||
|
||||
|
||||
m_pOldPosition[0] = m_pVertices[0].vPosition;
|
||||
m_pOldPosition[1] = m_pVertices[1].vPosition;
|
||||
|
||||
m_iNumCount += 2;
|
||||
}
|
||||
|
||||
|
||||
for (_uint i = 2; i < m_iNumCount; i++) /* 고정점은 연산에서 제외 0 , 1*/
|
||||
{
|
||||
|
||||
_vector vCurrentPos = XMLoadFloat3(&m_pVertices[i].vPosition);
|
||||
vCurrentPos = XMVectorSetW(vCurrentPos, 1.f);
|
||||
|
||||
|
||||
_vector vOldPos = XMLoadFloat3(&m_pOldPosition[i]);
|
||||
vOldPos = XMVectorSetW(vOldPos, 1.f);
|
||||
|
||||
//if (XMVectorGetX(XMVector3Length(vOldPos)) <= 0)
|
||||
// continue;
|
||||
|
||||
_vector vVelocity = (vCurrentPos - vOldPos) * fDamping;
|
||||
|
||||
_vector vGravity = XMVectorSet(0.0f, m_fGravity, 0.0f, 0.0f);
|
||||
|
||||
// Verlet 공식: Next = Curr + Vel + Acc * dt * dt
|
||||
_vector vNextPos = vCurrentPos + vVelocity + vGravity * (fTimeDelta * fTimeDelta);
|
||||
|
||||
// 과거 위치 갱신
|
||||
XMStoreFloat3(&m_pOldPosition[i], XMLoadFloat3(&m_pVertices[i].vPosition));
|
||||
|
||||
// 현재 위치 갱신
|
||||
XMStoreFloat3(&m_pVertices[i].vPosition, vNextPos);
|
||||
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
for (_uint k = 0; k < m_iNumCount - 2; k += 2) {
|
||||
|
||||
/* Low , High */
|
||||
_vector vFirst[2] = { XMLoadFloat3(&m_pVertices[k].vPosition) , XMLoadFloat3(&m_pVertices[k + 1].vPosition) };
|
||||
_vector vNext[2] = { XMLoadFloat3(&m_pVertices[k + 2].vPosition) , XMLoadFloat3(&m_pVertices[k + 3].vPosition) };
|
||||
|
||||
|
||||
_vector vDeltaLow = vNext[0] - vFirst[0];
|
||||
_vector vDeltaHigh = vNext[1] - vFirst[1];
|
||||
|
||||
|
||||
_float fLowDist = XMVectorGetX(XMVector3Length(vDeltaLow));
|
||||
_float fHighDist = XMVectorGetX(XMVector3Length(vDeltaHigh));
|
||||
|
||||
// 거리가 0이면 오류 방지
|
||||
if (fLowDist < FLT_EPSILON5) continue;
|
||||
if (fHighDist < FLT_EPSILON5) continue;
|
||||
|
||||
// 늘어나거나 줄어든 비율 계산 (Difference)
|
||||
_float fLowDiff = (fLength - fLowDist) / fLowDist;
|
||||
_float fHighDiff = (fLength - fHighDist) / fHighDist;
|
||||
|
||||
// 각 점을 절반씩 밀거나 당겨서 거리 맞춤
|
||||
|
||||
_vector vLowOffset = vDeltaLow * (fMass * fLowDiff);
|
||||
_vector vHighOffset = vDeltaHigh * (fMass * fHighDiff);
|
||||
|
||||
// k!=0일 때만 vFirst를 움직임
|
||||
|
||||
if (k != 0)
|
||||
{
|
||||
vFirst[0] -= vLowOffset;
|
||||
vFirst[1] -= vHighOffset;
|
||||
}
|
||||
|
||||
// vNext는 모든 경우에 움직임
|
||||
vNext[0] += vLowOffset;
|
||||
vNext[1] += vHighOffset;
|
||||
|
||||
|
||||
// k=0일 때 vFirst (손잡이)가 움직이지 않은 몫을 vNext에게 전부 몰아줌
|
||||
|
||||
if (k == 0)
|
||||
{
|
||||
// vFirst가 움직여야 할 만큼 vNext에 추가 보정
|
||||
vNext[0] += vLowOffset;
|
||||
vNext[1] += vHighOffset;
|
||||
}
|
||||
|
||||
if (k != 0)
|
||||
{
|
||||
XMStoreFloat3(&m_pVertices[k].vPosition, vFirst[0]);
|
||||
XMStoreFloat3(&m_pVertices[k + 1].vPosition, vFirst[1]);
|
||||
}
|
||||
|
||||
// vNext 저장
|
||||
XMStoreFloat3(&m_pVertices[k + 2].vPosition, vNext[0]);
|
||||
XMStoreFloat3(&m_pVertices[k + 3].vPosition, vNext[1]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (_uint i = 0; i < m_iNumCount; i += 2)
|
||||
{
|
||||
|
||||
_float u = ((_float)i / (m_iNumCount - 2));
|
||||
|
||||
if (m_iNumCount - 2 <= 0)
|
||||
u = 0;
|
||||
|
||||
m_pVertices[i].vTexcoord = _float2(u, 0); // Low
|
||||
|
||||
m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
D3D11_MAPPED_SUBRESOURCE VBResource{};
|
||||
|
||||
if (SUCCEEDED(m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE_DISCARD, 0, &VBResource)))
|
||||
{
|
||||
|
||||
memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
|
||||
|
||||
VTXPOSTEX* pDebug = static_cast<VTXPOSTEX*>(VBResource.pData);
|
||||
|
||||
m_pContext->Unmap(m_pVB, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void CTrail::Reset_Trail()
|
||||
{
|
||||
ZeroMemory(m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
|
||||
@@ -422,17 +588,24 @@ HRESULT CTrail::ReStructVB(_uint iNumVertices)
|
||||
{
|
||||
m_iNumVertices = iNumVertices;
|
||||
|
||||
|
||||
Safe_Delete_Array(m_pVertices);
|
||||
Safe_Delete_Array(m_pOldPosition);
|
||||
|
||||
if (FAILED(Create_VB()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Create_IB()))
|
||||
return E_FAIL;
|
||||
|
||||
Safe_Delete_Array(m_pVertices);
|
||||
Safe_Delete_Array(m_pOldPosition);
|
||||
|
||||
m_pOldPosition = new _float3[m_iNumVertices];
|
||||
m_pVertices = new VTXPOSTEX[m_iNumVertices]{};
|
||||
m_pVertices = new VTXPOSTEX[m_iNumVertices];
|
||||
|
||||
ZeroMemory(m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
|
||||
ZeroMemory(m_pOldPosition, sizeof(_float3) * m_iNumVertices);
|
||||
|
||||
|
||||
Reset_Trail();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -453,6 +626,7 @@ HRESULT CTrail::Save_Trail(HANDLE hFile)
|
||||
HRESULT CTrail::Load_Trail(TRAIL_DESC TrailDesc)
|
||||
{
|
||||
m_TrailDesc = TrailDesc;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -412,6 +412,27 @@ void CTransform::LookAt_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed)
|
||||
{
|
||||
_vector vPos = Get_State(STATE::POSITION);
|
||||
|
||||
_vector vDir = vAt - vPos;
|
||||
|
||||
_vector vTargetLook = XMVector3Normalize(vDir);
|
||||
_vector vCurrentLook = Get_State(STATE::LOOK);
|
||||
|
||||
_vector vNewLook = XMVector3Normalize(
|
||||
XMVectorLerp(vCurrentLook, vTargetLook, fTimeDelta * fSpeed)
|
||||
);
|
||||
|
||||
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vNewLook));
|
||||
_vector vUp = XMVector3Normalize(XMVector3Cross(vNewLook, vRight));
|
||||
|
||||
Set_State(STATE::LOOK, vNewLook);
|
||||
Set_State(STATE::RIGHT, vRight);
|
||||
Set_State(STATE::UP, vUp);
|
||||
}
|
||||
|
||||
void CTransform::LookAt_Horizontal_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed)
|
||||
{
|
||||
_vector vPos = Get_State(STATE::POSITION);
|
||||
|
||||
_float3 vMyPos, vTarget;
|
||||
XMStoreFloat3(&vMyPos, vPos);
|
||||
XMStoreFloat3(&vTarget, vAt);
|
||||
@@ -467,6 +488,13 @@ _float CTransform::TargetDis(_fvector vTarget)
|
||||
return dist;
|
||||
}
|
||||
|
||||
void CTransform::Add_SpeedPerSec(_float fSpeedPerSec)
|
||||
{
|
||||
m_fSpeedPerSec += fSpeedPerSec;
|
||||
if (m_fSpeedPerSec < 0.f)
|
||||
m_fSpeedPerSec = 0.f;
|
||||
}
|
||||
|
||||
CTransform* CTransform::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CTransform* pInstance = new CTransform(pDevice, pContext);
|
||||
|
||||
@@ -138,6 +138,11 @@ void CUIObject::Move(_float fX, _float fY)
|
||||
m_fY = fY;
|
||||
}
|
||||
|
||||
_float2 CUIObject::Get_Position()
|
||||
{
|
||||
return _float2(m_fX, m_fY);
|
||||
}
|
||||
|
||||
void CUIObject::SizeUpdate(_float fSizeX, _float fSizeY)
|
||||
{
|
||||
m_fSizeX = fSizeX;
|
||||
@@ -513,6 +518,11 @@ const CUIObject::QUESTINFO CUIObject::Get_QuestInfo(_int Index)
|
||||
return QUESTINFO();
|
||||
}
|
||||
|
||||
const CUIObject::SPELLLEARNINFO CUIObject::Get_Learninfo(_int Index)
|
||||
{
|
||||
return SPELLLEARNINFO();
|
||||
}
|
||||
|
||||
void CUIObject::Set_FontX(_float fFontX)
|
||||
{
|
||||
m_fFontX = fFontX;
|
||||
|
||||
@@ -78,6 +78,9 @@ class ENGINE_DLL CCharacter_Controller final :
|
||||
_bool IsActive() const { return m_bActive; }
|
||||
void SetActive(_bool bCondition) { m_bActive = bCondition; }
|
||||
_bool UpdateGroundByCast(_float fTimeDelta);
|
||||
void Set_GravityAmount(_float Amount) { m_fGravity = Amount; }
|
||||
void Reset_GravityAmount() { m_fGravity = 0.450f; }
|
||||
_float Get_GravityAmount() { return m_fGravity; }
|
||||
|
||||
private:
|
||||
ACTOR m_eBodyType = { ACTOR::END };
|
||||
|
||||
@@ -130,7 +130,7 @@ enum class PXOBJECT : _uint {
|
||||
GOBLIN_THEIF,
|
||||
TROLL,
|
||||
PENSIVE_GUARDIAN,
|
||||
RANRAK,
|
||||
RANROK,
|
||||
|
||||
#pragma endregion
|
||||
#pragma region HOSTILE_HITBOX
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#undef ASSERT_INHYUK
|
||||
#define ASSERT_INHYUK(expression) assert(expression)
|
||||
//#undef OPTIONAL_TRUE_KEYINPUTGUICHECK
|
||||
#define OPTIONAL_TRUE_KEYINPUTGUICHECK ||true
|
||||
//#define OPTIONAL_TRUE_KEYINPUTGUICHECK || true
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
POINT Get_MouseViewPortPos();
|
||||
_bool Toggle_MouseCenter();
|
||||
_float3 Get_MouseMove();
|
||||
_long Get_DIMouseMove(MOUSEMOVESTATE eMouseState);
|
||||
void Picking();
|
||||
HRESULT Ray_WorldToLocal(_fmatrix* InvWorldMatrix);
|
||||
_bool MousePicking_InLocalSpace(const _float3& vPointA, const _float3& vPointB, const _float3& vPointC, _float3& pOut);
|
||||
@@ -180,7 +181,6 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
HRESULT Refit_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput, SHADER_PASS_DEFERRED ePass);
|
||||
HRESULT Finish_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetOriginal, const _wstring& wstrRenderTargetBloomed, SHADER_PASS_DEFERRED ePass);
|
||||
HRESULT Bind_CS_RenderTarget(_uint iIndex, const _wstring& strTargetTag);
|
||||
_float2 Get_RenderTargetSize(const _wstring& wstrTargetKey);
|
||||
#ifdef _DEBUG
|
||||
void RenderTarget_Debuger();
|
||||
HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer);
|
||||
|
||||
@@ -68,7 +68,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float fMoveLerpOption = {};
|
||||
|
||||
_bool isDetphCompareStop = {};
|
||||
_bool isPadding0 = {};
|
||||
_bool isNoPos = {};
|
||||
|
||||
_float3 vVelocityMin = {};
|
||||
_float3 vVelocityMax = {};
|
||||
@@ -176,7 +176,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_int isMoveUp = {};
|
||||
_int isExcludePos = {};
|
||||
_int isStop_Move_For_Depth_Compare = {};
|
||||
_int isPadding2 = {};
|
||||
_int isNoPos = {};
|
||||
|
||||
_float fTimeDelta = {};
|
||||
_float fSizeLerpOption = {};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma once
|
||||
#pragma once
|
||||
|
||||
#include "Base.h"
|
||||
|
||||
@@ -13,19 +13,19 @@ class CKey_Manager final : public CBase
|
||||
public:
|
||||
|
||||
/* Keyboard */
|
||||
// 꾹 누를 때
|
||||
// 꾹 누를 때
|
||||
_bool Key_Pressing(int _iKey) const;
|
||||
// 눌렀다가 뗐을 때
|
||||
// 눌렀다가 뗐을 때
|
||||
_bool Key_Up(int _iKey) const;
|
||||
// 누른 타이밍 딱 한 번 만
|
||||
// 누른 타이밍 딱 한 번 만
|
||||
_bool Key_Down(int _iKey) const;
|
||||
|
||||
/* Mouse */
|
||||
// 꾹 누를 때
|
||||
// 꾹 누를 때
|
||||
_bool Mouse_Pressing(int _iKey) const;
|
||||
// 눌렀다가 뗐을 때
|
||||
// 눌렀다가 뗐을 때
|
||||
_bool Mouse_Up(int _iKey) const;
|
||||
// 누른 타이밍 딱 한 번 만
|
||||
// 누른 타이밍 딱 한 번 만
|
||||
_bool Mouse_Down(int _iKey) const;
|
||||
|
||||
_bool Mouse_StartMove() const;
|
||||
@@ -33,6 +33,11 @@ class CKey_Manager final : public CBase
|
||||
_bool Mouse_StopMove() const;
|
||||
_float3 Get_MouseMove() const;
|
||||
|
||||
_long Get_DIMouseMove(MOUSEMOVESTATE eMouseState)
|
||||
{
|
||||
return *((reinterpret_cast<_int*>(&m_tNewMouseState)) + static_cast<_uint>(eMouseState));
|
||||
}
|
||||
|
||||
void Update();
|
||||
private:
|
||||
LPDIRECTINPUT8 m_pInputSDK = { nullptr };
|
||||
@@ -48,7 +53,6 @@ class CKey_Manager final : public CBase
|
||||
|
||||
DIMOUSESTATE2 m_tOldMouseState = {};
|
||||
DIMOUSESTATE2 m_tNewMouseState = {};
|
||||
|
||||
private:
|
||||
HRESULT Initialize(HINSTANCE hInst, HWND hWnd);
|
||||
|
||||
@@ -58,4 +62,4 @@ class CKey_Manager final : public CBase
|
||||
virtual void Free() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
NS_END
|
||||
|
||||
@@ -22,7 +22,6 @@ class CRenderTarget final : public CBase
|
||||
void Copy_ResourceFrom(ID3D11Texture2D* pTexture2D);
|
||||
void Copy_ResourceFrom(const CRenderTarget& Target);
|
||||
void Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc);
|
||||
_float2 Get_TargetSize() { return m_vTargetSize; };
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
@@ -45,7 +44,6 @@ class CRenderTarget final : public CBase
|
||||
private:
|
||||
_float4x4 m_WorldMatrix = {};
|
||||
_point m_ptWindowSize = {};
|
||||
_float2 m_vTargetSize = {};
|
||||
_bool m_isDraw = { false };
|
||||
#endif
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ class CRenderTarget_Manager final : public CBase
|
||||
// 랜더 타겟의 크기를 dest로 다시 맞춤
|
||||
HRESULT Refit_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput, SHADER_PASS_DEFERRED ePass);
|
||||
HRESULT Finish_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetOriginal, const _wstring& wstrRenderTargetBloomed, SHADER_PASS_DEFERRED ePass);
|
||||
_float2 Get_RenderTargetSize(const _wstring& wstrRenderTargetOriginal);
|
||||
|
||||
#ifdef _DEBUG
|
||||
public:
|
||||
|
||||
@@ -10,8 +10,8 @@ enum ESTATE
|
||||
JOG,JOG_START, JOG_FWD, JOG_RIGHT, JOG_LEFT, JOG_BWD, JOG_STOP, JOG_AIM_LEFT, JOG_AIM_RIGHT, JOG_AIM_BWD, JOG_AIM_STOP_L, JOG_AIM_STOP_R, JOG_AIM_STOP_BWD,JOG_LEFT_TURN,JOG_RIGHT_TURN,JOG_112_L,JOG_112_R,JOG_90_L,JOG_90_R,
|
||||
SPRINT,
|
||||
SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R,
|
||||
JUMP,JUMP_JOG,JUMP_SPRINT,
|
||||
LAND,
|
||||
JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP,
|
||||
LAND,LAND_TO_JOG,LAND_TO_SPRINT,
|
||||
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,
|
||||
COMBAT, SKILL, SKILL2,
|
||||
SPELL, SPELL_180_R, SPELL_90_L,
|
||||
@@ -34,7 +34,7 @@ enum ESTATE
|
||||
GETUP, GETUP_BWD, GETUP_FWD, GETUP_L, GETUP_L_FD, GETUP_L_FU, GETUP_R, GETUP_R_FD, GETUP_R_FU, GETUP_SLOUCH,
|
||||
DEAD, DEAD_FWD, DEAD_FWD2, DEAD_BWD, DEAD_BWD2, DEAD_L, DEAD_L2, DEAD_R, DEAD_R2,
|
||||
KNOCKBACK, KNOCKBACK2,
|
||||
TUMBLE, TUMBLE2,
|
||||
TUMBLE, TUMBLE2,TUMBLE_FWD,
|
||||
PETRIFICUSED_START,
|
||||
STUN,
|
||||
FLINCH_BWD,FLINCH_FWD, FLINCH_LEFT, FLINCH_RIGHT,
|
||||
@@ -45,6 +45,7 @@ enum ESTATE
|
||||
PULSE,
|
||||
GROUND_SWIPE_L,GROUND_SWIPE_R,
|
||||
TUCKED,FLY_TO_HOVER,
|
||||
FIREBURST_REEL,
|
||||
////////////////////////// 빗자루
|
||||
BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B,BROOM_HOVER_DOWN_B,BROOM_HOVER_UP_B,BROOM_HOVER_LEFT_B,BROOM_HOVER_RIGHT_B,BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B,BROOM_FLY_B,BROOM_ADD,
|
||||
/// ////////////////////////////
|
||||
|
||||
@@ -30,6 +30,7 @@ class ENGINE_DLL CTrail final :
|
||||
|
||||
public:
|
||||
void Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta , _float fDamping, _float fLength, _float fMass, _fmatrix EndWorldMatrix);
|
||||
void Rope_Trail_Update(_fmatrix WorldMatrix, _float fTimeDelta, _float fDamping, _float fLength, _float fMass);
|
||||
void Rope_Fix(_bool isFix) { m_isFix = isFix; }
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -79,9 +79,13 @@ class ENGINE_DLL CTransform final :
|
||||
// Up, Down 벡터를 바라보게 하면 터짐, w에 1 있어야함
|
||||
void LookAt(_fvector vAt);
|
||||
void LookAt_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed);
|
||||
void LookAt_Horizontal_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed);
|
||||
void LookAt_Horizontal(_fvector vAt);
|
||||
_float TargetDis(_fvector vTarget);
|
||||
|
||||
|
||||
void Add_SpeedPerSec(_float fSpeedPerSec);
|
||||
|
||||
private:
|
||||
_float m_fSpeedPerSec = {};
|
||||
_float m_fRotationPerSec = {};
|
||||
|
||||
@@ -74,6 +74,15 @@ typedef struct tagCurrentQeustSerectInfo
|
||||
_int iQuestIndex{};
|
||||
}CURRENTQUESTSECETINFO;
|
||||
|
||||
typedef struct tagSpellLearnInfo
|
||||
{
|
||||
_wstring pSpellName{};
|
||||
_wstring pImageName{};
|
||||
_float fSpellSize{};
|
||||
_float2 fStartPosition{};
|
||||
vector<_vector> Lines;
|
||||
}SPELLLEARNINFO;
|
||||
|
||||
protected:
|
||||
CUIObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CUIObject(const CUIObject& rhs);
|
||||
@@ -90,6 +99,7 @@ typedef struct tagCurrentQeustSerectInfo
|
||||
virtual void MoveX(_float fX);
|
||||
virtual void MoveY(_float fY);
|
||||
virtual void Move(_float fX, _float fY);
|
||||
virtual _float2 Get_Position();
|
||||
virtual void SizeUpdate(_float fSizeX, _float fSizeY);
|
||||
virtual void SizeUpX(_float fSizeX);
|
||||
virtual void SizeUpY(_float fSizeY);
|
||||
@@ -175,6 +185,7 @@ typedef struct tagCurrentQeustSerectInfo
|
||||
|
||||
virtual const SPELLINFO Get_Info(_int Index);
|
||||
virtual const QUESTINFO Get_QuestInfo(_int Index);
|
||||
virtual const SPELLLEARNINFO Get_Learninfo(_int Index);
|
||||
|
||||
virtual void Set_FontX(_float fFontX);
|
||||
virtual void Set_FontY(_float fFontY);
|
||||
|
||||
Reference in New Issue
Block a user