diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 4212f3194..117084542 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -31,6 +31,13 @@ struct ParticleValue float3 vSinAmount; float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; }; @@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isMoveForward; bool isSinWave; - bool IsTurn; - bool isPadding1; - bool isPadding2; - bool isPadding3; + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -79,7 +86,7 @@ void CS_MAIN( { if (isLoop == false) { - return; + return ; } //초기화 @@ -89,15 +96,45 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; + particleValue.vAniIndex.x = 0.f; + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f); - particle.vTranslation += vVelocity * fTimeDelta; + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } + + if (isPivotMove) + { + float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + + float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f); + + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } if (isDrop == true) @@ -111,7 +148,7 @@ void CS_MAIN( particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } - if (IsTurn == true) + if (isTurn == true) { /* ROTATE */ float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); @@ -132,6 +169,64 @@ void CS_MAIN( particle.vLook = CurRotatemat[2].xyzw; } + + if (isAxisTurn) + { + float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta); + float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta); + float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat)); + + float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) }; + + + CurRotatemat = mul(CurRotatemat ,CombinedRotMat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + particle.vLook = CurRotatemat[2].xyzw; + + + } + + if (isSizeMove == true) + { + float3 CurLength = + { + length(particle.vRight), + length(particle.vUp), + length(particle.vLook), + }; + + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fSizeDrag; + + if (particleValue.fSizeDrag < FLT_EPSILON5) + fDrag = 1; + + //fDrag *= fRatio; + + CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag; + + if (CurLength.x < FLT_EPSILON5) + CurLength.x = FLT_EPSILON5; + + if (CurLength.y < FLT_EPSILON5) + CurLength.y = FLT_EPSILON5; + + if (CurLength.z < FLT_EPSILON5) + CurLength.z = FLT_EPSILON5; + + particle.vRight = normalize(particle.vRight) * CurLength.x; + particle.vUp = normalize(particle.vUp) * CurLength.y; + particle.vLook = normalize(particle.vLook) * CurLength.z; + + } //애니메이션 속도 , 인덱스 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin index 6fcefc8cb..8905548cc 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:33324ff2060094ec06bbc3f5e4f961fc8590a2c9b96f3cb8117099b7bead139f -size 642 +oid sha256:0bddaec7c43953cf48b607de04044f826d0b938d3a8febd4c3412e60cdc219d3 +size 754 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin index 6cc4cd5ae..68c274b11 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cfb9dbdea82faf9d7292fc8e27cc27ddf3885e6980b51f903047b5a80a143903 -size 587 +oid sha256:6527034abc9bec6aeb549613fe9005b652e5dc454b968fa814663439c2dc5cea +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin new file mode 100644 index 000000000..df3d71cf2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00d283741ea12a585fbea22dce225faccd6387d835dcead66b2f5e3396ac5ef0 +size 807 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin new file mode 100644 index 000000000..fe8911802 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Circle1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6be7b1f059c23cc86d6492b9adc0e23a486c914523114bef806c6740e0439ab8 +size 756 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin new file mode 100644 index 000000000..926ec86a8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Explosion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a805244677b5601cd024802b35b456a379c931285b6b4056231ebc1fcb511b40 +size 750 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin new file mode 100644 index 000000000..508558701 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a13f34f5fa1739da81aaa652d0aa0528c552b45739fd7a1688a3a677c26af3f +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin new file mode 100644 index 000000000..eb63deff2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8341c87c732cb69671bc7bcbc4e8d0d4173c8ab2115967144626e8b92f1650e1 +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin new file mode 100644 index 000000000..b5bfbbb96 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79b814bffb0445f8cbddddcd299673df2c15bf469175a1e47f953a711dbf5142 +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin new file mode 100644 index 000000000..e7117e0b0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_PT_3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45b640a0bbb2ea7b5b63fc88d9995c916897f102446c28b06f534348bd1ca80f +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin new file mode 100644 index 000000000..1dc1e4f83 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Projectile.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6a2393e330944b0ee49c639fe99ea6164989ceccc597e48e84551b1d64375d8 +size 788 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin new file mode 100644 index 000000000..be3c2b23e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65218dbabefd07543025bba00c4bee0617bee83b98de57c9844547781372bf19 +size 705 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin index 68742a413..759f7f1d3 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapImpact.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:655010e74ac2158c2e6e170b3227b999e7bb79c6d4ddb47711977ea2d3b45f6c -size 695 +oid sha256:a6b892cfdd0a8aef117fb7a4afc7089653666870c2e1d23c520824963387f5bd +size 807 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin index 1232f54a1..6e3ead7ee 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapLight.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7c1159a04cf6e0047408eac52f4c6cd97b870b366ebe1d8467d53be145bf4abc -size 640 +oid sha256:3213bb3a0a08e1d868afc52ec304493e5111271f7661c8db56ce9eb641cde6c4 +size 752 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin index 64eb0211d..458c4302c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapParticle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3a17db24b692c3fb97b865374497a88e3d40f752d6ca48f9e63698fa24a3ef36 -size 588 +oid sha256:90dc0962c1416a37debe58bc5b44d8697872f7e9a01fe4585565354517595f3f +size 700 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin index e335f47c4..87689f225 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:bf41ba2f46bf12e91ae80a9c4a113a3fcc257f0ec7f1008b429208ef2bdae03a -size 678 +oid sha256:f5839f16366a626c1e4b91b7e49c71e28e0aad4cfdf649a2e54329aa0413f087 +size 790 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin index 401729889..55326b2b2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapProjectile2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c71e23d34b8e56af41a35bac92e7ac43f3863b948ac9b2e976400834c26d86b2 -size 635 +oid sha256:b7f3086b12947b00771ddb624c4e89b20cec830c1ddb9eafa1e74de28a5058d0 +size 747 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin index 5f1be16de..df6a48467 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:675facff7ddb1f7a87ffb6922d81096875882a994f9d3bbc23b40f3dc0072184 -size 631 +oid sha256:e447fb46c0fe49c8acc0061ee4b8cf68bdb59c63ee314c9b02a37d5309ac0406 +size 743 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin index fee26ef6d..2fe8b6abc 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectile2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a9a07e170e2ba63cd9d51f2815302bc8ff4ee342dfa6c3ca735c98801e7b7a6d -size 641 +oid sha256:a6c04308bbd7dfa71570413576d4f66de96fb6269307201396c9794923c68fb2 +size 753 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin index 45cb6facd..16f0fd880 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileCircle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f9e01835b6ca1bf0901bd5a435186a2bf211597a50a8e77ef66df9f502bee2c6 -size 586 +oid sha256:cfea59a237f53e73b02cb6623ab2cd0120f1f586aee6921f4bc570086fc065ef +size 698 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin index 0504e4a3d..c271186f7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LightProjectileMiddle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fec289dab288362787c36d9a187219f61babb97a6dcabd00aad046f5a3965e03 -size 643 +oid sha256:bf9deea4ae9b01a688785bedf0d08a1179a32af2f0ceaa7020cf7b71749b85e5 +size 755 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin deleted file mode 100644 index 1d47abd1c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MagicProjectile.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbe853fd71b771fdc12c4c15ac66ee5d39d7a1baad42bfaa83339eac98514025 -size 670 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin new file mode 100644 index 000000000..34de99318 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Bombard.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea5f0901fe1f61804ff823cc87eca481d0c8572ef56dc3d0e33fa53316b3245d +size 236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin index ae894bd68..cdf2e890b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Smoke1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3db2fd3373fcd0498c2511579f370a9c7e0f379bd31fd0cc5d2a86e970442387 -size 640 +oid sha256:15e844a209069d289f4e267e6045fa6887257681163d5b146c97be76fa062db8 +size 752 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin index 247628033..38bf119a0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Test.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:da59ec056c37de150309c542ddd431a058c8b20eaad6302c0e7a2a0c852f453e -size 635 +oid sha256:efe9a30cc81959dd7133ce0bb6276ac5b92eb16e2f1e154832623b9bd5965b90 +size 747 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin index d5749ac8c..668d54bb0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BasicParticle2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c6a85af24f40fd29ac155d818851d15f21659aa5cd339c34b3b2daaf2833f446 -size 614 +oid sha256:92d5aa0adaad0ee75c2344d15eed70744786932153fb53f219efd2835764d29e +size 746 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin index 8c8f9cfc9..7d64ccea8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/BlustParticle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2e5b06298607ab3b2e70a7e5cb1d60fc1c3e42985f4c3329a9b0adfd99694b70 -size 559 +oid sha256:9d4184e9553e467b77c5466e0cedd9f00168ffed4aea52c07053aa9a7ed03096 +size 699 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin new file mode 100644 index 000000000..7c5ef33f2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Circle0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5706ffe31f04c0bee3e089e4f239a76fb67bd1237fb22ba8cd01a6fc7e9d17e +size 799 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin new file mode 100644 index 000000000..3774f7ca0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Explosion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2893656232894ac1cc91992b9c97bbba75fcb21e69bc5de935141bc147df9b4e +size 742 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin new file mode 100644 index 000000000..a9904eb23 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e01d1835e23745c543e00f24fd199d7d89732682bcdddbb23c1ed221bd5bb9eb +size 699 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin new file mode 100644 index 000000000..c01996bd6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8336e77446690682b872e84a9b60cdcea71bbd75b808e8d31c1b02483b561d01 +size 699 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin new file mode 100644 index 000000000..34596452d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e81d31a047678292fe9d68aabd4cb75590a1816003a8f4cc29d85b6c3ec31a3 +size 699 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin new file mode 100644 index 000000000..5a0b6a7f3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_PT_3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76950f5acde485735c077385f894e217dcfc30dc97d7a21711f2ee149f49b2d3 +size 699 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin new file mode 100644 index 000000000..cca1aabe7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Projectile.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d41b91c21d40d0c747bf7d7ced3bb1db8a4c6b6fc31893ee7111122170bc40ff +size 780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin new file mode 100644 index 000000000..1c843fca0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a00327d0f76135b565c06bbf73f38d8afc7b7469b9cf1e66dd3e3f05411f9a6e +size 697 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin index c38e43cca..56796e513 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapImpact.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:578d053ea11ef3573689b4b3f5ae2ab9e7a0b2773cd20b98364c8cf815cfef7a -size 667 +oid sha256:e7736584a24f1972257417aebda878d3464f37f0da0f27dad48cabd21ff6eca8 +size 799 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin index 1da980370..dc1165384 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapLight.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:45a4ae620b249fa4a7d0a11b57c991c9292b6516dedb004233917fcb236491a4 -size 612 +oid sha256:40fd0d79f844262822104ed5e604e072258f29ce6f2be142198273d40d23aecf +size 744 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin index bd0cd594d..4f9d56f76 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapParticle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b8a69fbf03cf611f14d120b4233281c5441c141cce967a34bb0a0ffb5d75421e -size 560 +oid sha256:d115f65e6f5e4603e16248081717cf5b3aceb1112c6368dead4eeafc8b9a16d3 +size 692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin index e9c00fe41..737dcd279 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c937129c7c7b817fa5da26f31114fa6196d2a9a636249c080f88a227fc19b4f9 -size 650 +oid sha256:297b79febe8f4107fc34192a3b7ace5f0646bc5049d5c763983bca1828359ce4 +size 782 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin index e5a43541e..bbdae3a81 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/JapProjectile2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:29e377b84488c530efa60ca6849215cd252a41617e214144acf39ec440166799 -size 607 +oid sha256:50ff8d62caafa01c666960e0b72737da4bfa8905cce9af90c93229a39adf1854 +size 739 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin index d8e15f979..d6d424595 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:985580cbc2a60ad0adf44066bf6289113cfee5a060b116d8212ee7229bdf5fdf -size 603 +oid sha256:8b015bbe1091e4d524d7c7c637f5a42b931cc00e218d2307b637c6bd2103baf9 +size 735 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin index ead06d755..9accc766d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectile2.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:90807d935e97d1397e0e06268ae8033f31e56b8555cfa5ebb754d75ba53605ec -size 613 +oid sha256:f1adb0b74c940aa6db942d9a71370cba3a9e095d34ea7b998c89a57e85af686e +size 745 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin index 45b3ae031..834552570 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileCircle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0d84e7ef14cc880db3ecc1c9f7401ead81900aab6d2abe6347017e06c53aa13a -size 558 +oid sha256:d8646e5b9f972c65252ec77a97a97306cf484918ee3a41f451ef2e33c9a37fef +size 690 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin index 48ba557a3..0847cebf5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/LightProjectileMiddle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:283dc1ff9d9586506d5da462122cdc817d08df43e388a08f87081c06e0bc2441 -size 615 +oid sha256:e4b6c8694927adf82c81db8733687eea942c26557bad8b4c23cea43aa067c84d +size 747 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin deleted file mode 100644 index 30134e743..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/MagicProjectile.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:49b7312bb19a14fce3ec8db147e5375020a319946e2f258070dc542f1c68bda7 -size 642 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin index 240b21e2f..f13f07f59 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Smoke1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ea5374fad8d511a6af141b7349968fc2d3c1830c799cd8fdda51a9ccf53ee127 -size 612 +oid sha256:5f303dd4a3616b41c4a2dc5838d28579af68dab52871503cb3f90bf03e81877d +size 744 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin index 154bcc41b..a2d043337 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Test.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9b1f81d39c4b0cb910417a9cf43895bc1e2aa28300469c89ead3d368700ce97a -size 607 +oid sha256:ac035576a895f825fa0b0f35847cc45849d20accf2cdf7b40354da6761793b40 +size 739 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 6a7c952fc..b1efa60ae 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -229,5 +229,40 @@ float4x4 RotateZ(float fAngle) return RotateZMat; } +float4x4 RotateAxis(float4 _vAxis , float fAngle) +{ + float flenhth = length(_vAxis); + if (flenhth < FLT_EPSILON5) + { + return float4x4( + 1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, + 0.0, 0.0, 0.0, 1.0 + ); + } + + float3 vAxis = normalize(_vAxis); + + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float fX = vAxis.x; + float fY = vAxis.y; + float fZ = vAxis.z; + + //Rodrigues 공식 기반 + float4x4 RotateMat = + float4x4( + fCos + fX * fX * (1.0 - fCos), fX * fY * (1.0 - fCos) - fZ * fSin, fX * fZ * (1.0 - fCos) + fY * fSin, 0.0, + fY * fX * (1.0 - fCos) + fZ * fSin, fCos + fY * fY * (1.0 - fCos), fY * fZ * (1.0 - fCos) - fX * fSin, 0.0, + fZ * fX * (1.0 - fCos) - fY * fSin, fZ * fY * (1.0 - fCos) + fX * fSin, fCos + fZ * fZ * (1.0 - fCos), 0.0, + 0.0, 0.0, 0.0, 1.0 + ); + + return RotateMat; + +} + #endif // ENGINE_SHADER_FUNCTIONS_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 4212f3194..117084542 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -31,6 +31,13 @@ struct ParticleValue float3 vSinAmount; float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; }; @@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isMoveForward; bool isSinWave; - bool IsTurn; - bool isPadding1; - bool isPadding2; - bool isPadding3; + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -79,7 +86,7 @@ void CS_MAIN( { if (isLoop == false) { - return; + return ; } //초기화 @@ -89,15 +96,45 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; + particleValue.vAniIndex.x = 0.f; + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f); - particle.vTranslation += vVelocity * fTimeDelta; + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } + + if (isPivotMove) + { + float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + + float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f); + + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } if (isDrop == true) @@ -111,7 +148,7 @@ void CS_MAIN( particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } - if (IsTurn == true) + if (isTurn == true) { /* ROTATE */ float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); @@ -132,6 +169,64 @@ void CS_MAIN( particle.vLook = CurRotatemat[2].xyzw; } + + if (isAxisTurn) + { + float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta); + float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta); + float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat)); + + float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) }; + + + CurRotatemat = mul(CurRotatemat ,CombinedRotMat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + particle.vLook = CurRotatemat[2].xyzw; + + + } + + if (isSizeMove == true) + { + float3 CurLength = + { + length(particle.vRight), + length(particle.vUp), + length(particle.vLook), + }; + + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fSizeDrag; + + if (particleValue.fSizeDrag < FLT_EPSILON5) + fDrag = 1; + + //fDrag *= fRatio; + + CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag; + + if (CurLength.x < FLT_EPSILON5) + CurLength.x = FLT_EPSILON5; + + if (CurLength.y < FLT_EPSILON5) + CurLength.y = FLT_EPSILON5; + + if (CurLength.z < FLT_EPSILON5) + CurLength.z = FLT_EPSILON5; + + particle.vRight = normalize(particle.vRight) * CurLength.x; + particle.vUp = normalize(particle.vUp) * CurLength.y; + particle.vLook = normalize(particle.vLook) * CurLength.z; + + } //애니메이션 속도 , 인덱스 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index 8b583a521..8a0db6625 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -17,10 +17,19 @@ struct ParticleValue float2 vAniTime; float2 vAniIndex; - float fGravity; + float fGravity; float3 vSinAmount; float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; + + }; @@ -72,7 +81,16 @@ float g_fBlurIntensity; //블러 세기 float g_fNoiseDistortionIntensity; // 디스토션 왜곡 세기 float4 g_vEmissive; -float g_fEmissiveCutAlpha; +float g_fEmissiveStrength; + +float g_fSoftenExp; +float g_fSoftStrength; +float g_fCoreBoost; +float g_fRadius; + + +float g_fSoftMaskEdge; +float g_fSoftMask; bool g_isDiffuse; bool g_isMasking; @@ -394,12 +412,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) { vMtrlMask.r = 1.f; } - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); + float fSoftMask; - + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask); + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); if (vMtrlDiffuse.a <= 0.f) discard; @@ -443,10 +463,23 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w); - // 색깔 추가할 처리 (이미시브) + //// 색깔 추가할 처리 (이미시브) float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f); + + + float2 CenteredUV = In.vTexcoord - 0.5f; + float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지 + + float fMaskAlpha = vMtrlMask.a; + + float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength + + float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조 + + float fEmissive = fSoftEdge + fCore; + if (g_isEmissive == true) { vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); @@ -456,23 +489,15 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) vEmissiveMtrl = g_vEmissive; } - float fEmissiveCutAlpha = g_fEmissiveCutAlpha; - - if (g_fEmissiveCutAlpha >= vMtrlDiffuse.a) - { - - Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f); - - return Out; - } + float fEmissiveStrength = g_fEmissiveStrength; if (g_isEmissiveDissolve == true) { - vEmissiveMtrl *= (1.f - In.vLifeTime.x / In.vLifeTime.y); + fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y); } - - Out.vColorTarget = pow(vEmissiveMtrl, 2.2f); - + + Out.vColorTarget = vEmissiveMtrl * fEmissive * fEmissiveStrength; // 이미시브 스트랭스 + return Out; } @@ -642,9 +667,12 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In) vMtrlMask.r = 1.f; } + - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); + float softMask = saturate((vMtrlMask.r - 0.1) * 1.0); + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * softMask); @@ -682,27 +710,41 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In) - float4 vEmissiveMtrl = vector(0.f, 0.f, 0.f, 0.f); + + + float2 CenteredUV = In.vTexcoord - 0.5f; + float fDistance = saturate(length(CenteredUV) / g_fRadius); // 마스크의 크기를 어느정도할지 + + float fMaskAlpha = vMtrlMask.a; + + float fSoftEdge = pow(saturate(1.0f - fDistance), g_fSoftenExp) * g_fSoftStrength; //SoftenExp 엣지감쇠지수 , Strength + + float fCore = pow(saturate(1.0 - fDistance * 2.f), max(0.001, g_fCoreBoost)) * g_fCoreBoost; // CoreBust 중심강조 + + float fEmissive = fSoftEdge + fCore; + if (g_isEmissive == true) { vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); } - - float fEmissiveCutAlpha = g_fEmissiveCutAlpha; - - float fSmoothAlpha = smoothstep(fEmissiveCutAlpha - 0.3f, fEmissiveCutAlpha + 0.3f, vMtrlDiffuse.a); - - - if (g_isEmissiveDissolve == true) + else { - fSmoothAlpha *= (1.f - In.vLifeTime.x / In.vLifeTime.y); + vEmissiveMtrl = g_vEmissive; } - float3 vEmissiveColor = g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a); + float fEmissiveStrength = g_fEmissiveStrength; - Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/ + if (g_isEmissiveDissolve == true) + { + fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y); + } + + vEmissiveMtrl = vEmissiveMtrl * fEmissive * fEmissiveStrength; + + + Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity + vEmissiveMtrl.rgb, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/ return Out; } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt b/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt index c528ae81d..4acd05fe8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt +++ b/Jusin154_Team3D/Editor/Bin/Resources/VFX/MasterMaterials/VFX_MM_Flash_Soften.props.txt @@ -90,6 +90,6 @@ MobileBaseTexture = None MobileNormalTexture = None bUseMobileSpecular = false MobileSpecularPower = 16 -MobileSpecularMask = MSM_Constant (0) +MobileSpecularMask = MSM_Constant (0)6 MobileMaskTexture = None TextureStreamingData[0] = {} diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 8169c54e9..1cd833c01 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -433,11 +433,17 @@ void CEditEffect::Describe_Entity() { ImGui::PushItemWidth(80); - GUI::DragFloat("EmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, 0.005f, 0.f, 1.f); + GUI::DragFloat("EmissiveStrength", &m_EffectInfo.fEmissiveStrength, 0.005f, 0.f, 1.f); + GUI::DragFloat("Radius", &m_EffectInfo.fRadius, 0.005f); + GUI::DragFloat("CoreBoost", &m_EffectInfo.fCoreBoost, 0.005f); + GUI::DragFloat("SoftStrength", &m_EffectInfo.fSoftStrength, 0.005f); + GUI::DragFloat("SoftenExp", &m_EffectInfo.fSoftenExp, 0.005f); ImGui::PopItemWidth(); GUI::ColorEdit4("Emissive", (_float*)&m_EffectInfo.vEmissive); + + GUI::Checkbox("EmissiveTex", &m_EffectInfo.isEmissive); GUI::Checkbox("EmissiveDissolve", &m_EffectInfo.isEmissiveDissolve); @@ -577,6 +583,10 @@ void CEditEffect::Describe_Entity() ImGui::PushItemWidth(80); GUI::DragFloat2("MaskingUVGainAmount", (_float*)&m_EffectInfo.vMaskingUVGainAmount, 0.01f); + GUI::Spacing(); + GUI::DragFloat("SoftMask", &m_EffectInfo.fSoftMask, 0.01f, 0.f); + GUI::DragFloat("fSoftMaskEdge", &m_EffectInfo.fSoftMaskEdge, 0.01f, 0.f); + ImGui::PopItemWidth(); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index 5a35bd159..060dcbd5f 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -454,8 +454,6 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) return E_FAIL; } - - } if (m_EffectInfo.isNoise) @@ -705,7 +703,7 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveCutAlpha", &m_EffectInfo.fEmissiveCutAlpha, sizeof(_float)))) { + if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_EffectInfo.fEmissiveStrength, sizeof(_float)))) { return E_FAIL; } @@ -767,8 +765,30 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_EffectInfo.fSoftenExp, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_EffectInfo.fSoftStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_EffectInfo.fCoreBoost, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_EffectInfo.fRadius, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_EffectInfo.fSoftMaskEdge, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_EffectInfo.fSoftMask, sizeof(_float)))) { + return E_FAIL; + } - if (m_pDiffuse_TextureCom != nullptr) { diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 43b1853df..1b53733f3 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -604,9 +604,8 @@ HRESULT CLoader::Loading_For_Effect() _string strFilePath = pFilePath; _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, wstrFileName)))) { + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 2f68f9053..d2f348617 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -57,7 +57,7 @@ class CEffectObject abstract : public CPartObject _float fDiffuseAlpha = { 1.f }; _float fBlurIntensity = {}; _float fNoiseDistortionIntensity = {}; - _float fEmissiveCutAlpha = { 0.f }; + _float fEmissiveStrength = { 0.f }; LIGHT_DESC LightDesc = {}; RENDER eRenderOrder = { RENDER::EFFECT }; @@ -73,6 +73,15 @@ class CEffectObject abstract : public CPartObject _bool isNoiseAlpha = { false }; _bool isNomalDissolve = {}; + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + _float fSoftMaskEdge; + _float fSoftMask; + + }EFFECT_INFO; typedef struct tagPreEffectInfo @@ -115,7 +124,7 @@ class CEffectObject abstract : public CPartObject _float fDiffuseAlpha = { 1.f }; _float fBlurIntensity = {}; _float fNoiseDistortionIntensity = {}; - _float fEmissiveCutAlpha = {}; + _float fEmissiveStrength = {}; LIGHT_DESC LightDesc = {}; RENDER eRenderOrder = { RENDER::EFFECT }; @@ -127,6 +136,11 @@ class CEffectObject abstract : public CPartObject _bool isNoiseAlpha = { false }; _bool isNomalDissolve = {}; + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + }PRE_EFFECT_INFO; protected: diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli index 6a7c952fc..b1efa60ae 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -229,5 +229,40 @@ float4x4 RotateZ(float fAngle) return RotateZMat; } +float4x4 RotateAxis(float4 _vAxis , float fAngle) +{ + float flenhth = length(_vAxis); + if (flenhth < FLT_EPSILON5) + { + return float4x4( + 1.0, 0.0, 0.0, 0.0, + 0.0, 1.0, 0.0, 0.0, + 0.0, 0.0, 1.0, 0.0, + 0.0, 0.0, 0.0, 1.0 + ); + } + + float3 vAxis = normalize(_vAxis); + + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float fX = vAxis.x; + float fY = vAxis.y; + float fZ = vAxis.z; + + //Rodrigues 공식 기반 + float4x4 RotateMat = + float4x4( + fCos + fX * fX * (1.0 - fCos), fX * fY * (1.0 - fCos) - fZ * fSin, fX * fZ * (1.0 - fCos) + fY * fSin, 0.0, + fY * fX * (1.0 - fCos) + fZ * fSin, fCos + fY * fY * (1.0 - fCos), fY * fZ * (1.0 - fCos) - fX * fSin, 0.0, + fZ * fX * (1.0 - fCos) - fY * fSin, fZ * fY * (1.0 - fCos) + fX * fSin, fCos + fZ * fZ * (1.0 - fCos), 0.0, + 0.0, 0.0, 0.0, 1.0 + ); + + return RotateMat; + +} + #endif // ENGINE_SHADER_FUNCTIONS_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 4212f3194..117084542 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -31,6 +31,13 @@ struct ParticleValue float3 vSinAmount; float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; }; @@ -49,10 +56,10 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐 bool isMoveForward; bool isSinWave; - bool IsTurn; - bool isPadding1; - bool isPadding2; - bool isPadding3; + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -79,7 +86,7 @@ void CS_MAIN( { if (isLoop == false) { - return; + return ; } //초기화 @@ -89,15 +96,45 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; + particleValue.vAniIndex.x = 0.f; + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + float4 vVelocity = vector(normalize(particle.vLook.xyz) * particleValue.fSpeed, 1.f); - particle.vTranslation += vVelocity * fTimeDelta; + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } + + if (isPivotMove) + { + float3 vDir = normalize(particleValue.vPivot - particleValue.vOriginTranslation.xyz); + + float fDrag = particleValue.fDrag; + + if (particleValue.fDrag < FLT_EPSILON5) + fDrag = 1; + + float4 vVelocity = vector(vDir * particleValue.fSpeed, 1.f); + + particle.vTranslation += vVelocity * fTimeDelta * fDrag; + } if (isDrop == true) @@ -111,7 +148,7 @@ void CS_MAIN( particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } - if (IsTurn == true) + if (isTurn == true) { /* ROTATE */ float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); @@ -132,6 +169,64 @@ void CS_MAIN( particle.vLook = CurRotatemat[2].xyzw; } + + if (isAxisTurn) + { + float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta); + float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta); + float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat)); + + float4x4 CurRotatemat = { particle.vRight, particle.vUp, particle.vLook, vector(0.f, 0.f, 0.f, 1.f) }; + + + CurRotatemat = mul(CurRotatemat ,CombinedRotMat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + particle.vLook = CurRotatemat[2].xyzw; + + + } + + if (isSizeMove == true) + { + float3 CurLength = + { + length(particle.vRight), + length(particle.vUp), + length(particle.vLook), + }; + + float fTime = (particle.vLifeTime.x / particle.vLifeTime.y); + + float fRatio = 1 - (1 - fTime * fTime); + + float fDrag = particleValue.fSizeDrag; + + if (particleValue.fSizeDrag < FLT_EPSILON5) + fDrag = 1; + + //fDrag *= fRatio; + + CurLength += particleValue.vDeltaSize * fTimeDelta * fDrag; + + if (CurLength.x < FLT_EPSILON5) + CurLength.x = FLT_EPSILON5; + + if (CurLength.y < FLT_EPSILON5) + CurLength.y = FLT_EPSILON5; + + if (CurLength.z < FLT_EPSILON5) + CurLength.z = FLT_EPSILON5; + + particle.vRight = normalize(particle.vRight) * CurLength.x; + particle.vUp = normalize(particle.vUp) * CurLength.y; + particle.vLook = normalize(particle.vLook) * CurLength.z; + + } //애니메이션 속도 , 인덱스 diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index a2e9948d9..3d44b170e 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -278,8 +278,11 @@ void CInstance_Model::Drop(_float fTimeDelta) pDesc->isLoop = m_InstanceDesc.isLoop; pDesc->isDrop = m_InstanceDesc.isDrop; pDesc->isTurn = m_InstanceDesc.isTurn; + pDesc->isAxisTurn = m_InstanceDesc.isAxisTurn; pDesc->isMoveForward = m_InstanceDesc.isMoveForward; pDesc->isSinWave = m_InstanceDesc.isSinWave; + pDesc->isPivotMove = m_InstanceDesc.isPivotMove; + pDesc->isSizeLerp = m_InstanceDesc.isSizeLerp; m_pContext->Unmap(m_pConstantBuffer, 0); } @@ -409,6 +412,31 @@ void CInstance_Model::Instane_Buffer_ReStruct() pParticleValues[i].vDeltaAngle = vDeltaAngle; + _float3 vDeltaAxisAngle = _float3( + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.x, m_InstanceDesc.vDeltaAxisAngleMax.x), + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.y, m_InstanceDesc.vDeltaAxisAngleMax.y), + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAxisAngleMin.z, m_InstanceDesc.vDeltaAxisAngleMax.z) + ); + + pParticleValues[i].vDeltaAxisAngle = vDeltaAxisAngle; + + _float3 vPivot = _float3( + m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.x, m_InstanceDesc.vPivotMax.x), + m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.y, m_InstanceDesc.vPivotMax.y), + m_pGameInstance->Random_Float(m_InstanceDesc.vPivotMin.z, m_InstanceDesc.vPivotMax.z) + ); + + pParticleValues[i].vPivot = vPivot; + + _float3 vSizeLerp = _float3( + m_InstanceDesc.vDeltaSize.x, + m_InstanceDesc.vDeltaSize.y, + m_InstanceDesc.vDeltaSize.z + ); + + pParticleValues[i].vDeltaSize = vSizeLerp; + + //라이프 타임 설정 pVertices[i].vLifeTime = _float2(0.0f, m_pGameInstance->Random_Float(m_InstanceDesc.vLifeTime.x, m_InstanceDesc.vLifeTime.y)); @@ -421,6 +449,9 @@ void CInstance_Model::Instane_Buffer_ReStruct() pParticleValues[i].fRotaionSpeed = m_pGameInstance->Random_Float(m_InstanceDesc.vRotationSpeed.x, m_InstanceDesc.vRotationSpeed.y); pParticleValues[i].vAniIndex = _float2(0.f, m_InstanceDesc.vAniIndex.y); pParticleValues[i].fGravity = m_pGameInstance->Random_Float(m_InstanceDesc.vGravity.x, m_InstanceDesc.vGravity.y); + pParticleValues[i].fDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vDrag.x, m_InstanceDesc.vDrag.y); + pParticleValues[i].fSizeDrag = m_pGameInstance->Random_Float(m_InstanceDesc.vSizeDrag.x, m_InstanceDesc.vSizeDrag.y); + memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4)); memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4)); @@ -533,6 +564,24 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn)) + { + Instane_Buffer_ReStruct(); + } + + if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove)) + { + Instane_Buffer_ReStruct(); + } + + if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp)) + { + Instane_Buffer_ReStruct(); + } + + + + if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin))) { Instane_Buffer_ReStruct(); @@ -633,7 +682,44 @@ void CInstance_Model::Describe_Entity() { Instane_Buffer_ReStruct(); } - + + + if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax))) + { + Instane_Buffer_ReStruct(); + } + + + if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag))) + { + Instane_Buffer_ReStruct(); + } + ImGui::PopItemWidth(); ImGui::TreePop(); diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h index d49ced981..8a9f222d9 100644 --- a/Jusin154_Team3D/Engine/Public/Instance_Model.h +++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h @@ -41,6 +41,18 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float3 vDeltaAngleMin = {}; _float3 vDeltaAngleMax = {}; + _bool isAxisTurn; + _float3 vDeltaAxisAngleMin = {}; + _float3 vDeltaAxisAngleMax = {}; + + _bool isPivotMove = {}; + _float2 vDrag = {}; + _float3 vPivotMin = {}; + _float3 vPivotMax = {}; + + _bool isSizeLerp = {}; + _float3 vDeltaSize = {}; + _float2 vSizeDrag = {}; }INSTANCE_DESC; @@ -79,6 +91,15 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float3 vDeltaAngleMin = {}; _float3 vDeltaAngleMax = {}; + _bool isAxisTurn; + _float3 vDeltaAxisAngleMin = {}; + _float3 vDeltaAxisAngleMax = {}; + + _bool isPivotMove = {}; + _float2 vDrag = {}; + _float3 vPivotMin = {}; + _float3 vPivotMax = {}; + }PRE_INSTANCE_DESC; typedef struct tagCSParticleDesc @@ -91,9 +112,9 @@ class ENGINE_DLL CInstance_Model final : public CComponent _int isSinWave = {}; _int isTurn = {}; - _int isPadding1 = {}; - _int isPadding2 = {}; - _int isPadding3 = {}; + _int isAxisTurn = {}; + _int isPivotMove = {}; + _int isSizeLerp = {}; _float fTimeDelta = {}; _float fPadding2 = {}; @@ -124,6 +145,14 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float3 vSinAmount = {}; _float3 vDeltaAngle = {}; + _float3 vDeltaAxisAngle = {}; + + _float fDrag; + _float3 vPivot = {}; + + _float fSizeDrag = {}; + _float3 vDeltaSize = {}; + }CS_PARTICLE_VALUE_DESC;