diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box b/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box deleted file mode 100644 index 076b14c9d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box.bin b/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box.bin index 05a008add..357dffe23 100644 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box.bin and b/Jusin154_Team3D/Client/Bin/Resources/Models/Box/Box.bin differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Fox.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Fox.fbx deleted file mode 100644 index 59df87b62..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Fox.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:91033ee9cf3c1af4c44a2ef730e0800e137294f7f3810876d560a040f59eb7b1 -size 26270032 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger emit.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger emit.png deleted file mode 100644 index 8d4c3443a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger emit.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger spec.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger spec.png deleted file mode 100644 index 747ee92bf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger.png deleted file mode 100644 index bc9dfe599..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/Scavenger.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/black.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/black.png deleted file mode 100644 index 73baca30a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/black.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/bow.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/bow.png deleted file mode 100644 index 1db418ad3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/bow.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/cathedral flame noise.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/cathedral flame noise.png deleted file mode 100644 index 8f48c0880..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/cathedral flame noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/caustic.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/caustic.png deleted file mode 100644 index 4ca0c2db4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/caustic.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/clouds_normal.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/clouds_normal.png deleted file mode 100644 index 7675122dc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/clouds_normal.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/detail texture noise.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/detail texture noise.png deleted file mode 100644 index a280ef05b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/detail texture noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/distorted particle ramp.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/distorted particle ramp.png deleted file mode 100644 index 5a772fb1c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/distorted particle ramp.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/door matcap 1.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/door matcap 1.png deleted file mode 100644 index a135f2b6d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/door matcap 1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime.png deleted file mode 100644 index e289917ed..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime1.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime1.png deleted file mode 100644 index 2c3cf31a2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/fox palette - runtime1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/hexagon plinth matcap.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/hexagon plinth matcap.png deleted file mode 100644 index abdac135e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/hexagon plinth matcap.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/ice detail tex.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/ice detail tex.png deleted file mode 100644 index 51ace55d5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/ice detail tex.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_aura.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_aura.png deleted file mode 100644 index 6ee54aef4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_aura.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring.png deleted file mode 100644 index 4f2917ae1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring_spikes.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring_spikes.png deleted file mode 100644 index c32916dc1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_ring_spikes.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_traces.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_traces.png deleted file mode 100644 index bda47d594..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/icedagger_traces.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/key.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/key.png deleted file mode 100644 index 4651b5b4a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/key.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lantern arc.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lantern arc.png deleted file mode 100644 index c0d0b08bd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lantern arc.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger albedo.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger albedo.png deleted file mode 100644 index 882c153a1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger albedo.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger emit.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger emit.png deleted file mode 100644 index f022016f5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger emit.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger spec.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger spec.png deleted file mode 100644 index 0d1f8c2be..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/lanterndagger spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion spec.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion spec.png deleted file mode 100644 index b34659d1c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion.png deleted file mode 100644 index 6548b1eff..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/potion.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/prayersmoke textures.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/prayersmoke textures.png deleted file mode 100644 index eec286e4c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/prayersmoke textures.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux spec.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux spec.png deleted file mode 100644 index e4d811ace..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux.png deleted file mode 100644 index 88a7f4f78..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shield redux.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shockwave effect.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shockwave effect.png deleted file mode 100644 index 77b213f9d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/shockwave effect.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/spearbeam.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/spearbeam.png deleted file mode 100644 index b79f98bcf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/spearbeam.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/stick.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/stick.png deleted file mode 100644 index 0bbe63ec2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/stick.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword spec.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword spec.png deleted file mode 100644 index 9e48bb2ac..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword spec.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword.png deleted file mode 100644 index e7bb3aba7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/sword.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/wand tentacle noise.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/wand tentacle noise.png deleted file mode 100644 index 0a88bbbc5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Fox/wand tentacle noise.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody deleted file mode 100644 index d0c63a25f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody.fbx deleted file mode 100644 index 97a31fa83..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinBody.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a49d1ffea2e4743cdb6f6520d4cf6103ee1aeccd4e1da6fbd39eb75aacdeeb18 -size 2030252 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead deleted file mode 100644 index 70cdd40d1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead.fbx deleted file mode 100644 index 68c14b84f..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/GoblinHead.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b28b1bd940c28a2f562c18e52de5ef01914d588ab221194374105513fa90f62c -size 1054604 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png deleted file mode 100644 index ee01a4efc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_M_Sniper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png deleted file mode 100644 index 72d3d63fc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOB_Mage_Head_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png deleted file mode 100644 index fc0fbca3d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png deleted file mode 100644 index f8a7c9c89..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png deleted file mode 100644 index e16ba8af8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_MROA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png deleted file mode 100644 index 6ac83780f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector01_Upper_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png deleted file mode 100644 index 1d7adae32..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png deleted file mode 100644 index ccb0bca48..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png deleted file mode 100644 index 8bbbb218a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1001_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png deleted file mode 100644 index 85f9805c2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png deleted file mode 100644 index 98d5357db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png deleted file mode 100644 index 4ebccf04d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1002_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png deleted file mode 100644 index de7e79e09..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png deleted file mode 100644 index 508965f7a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_Spline_clouds_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png deleted file mode 100644 index cdfe02952..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png deleted file mode 100644 index ff8a490c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_TombProtector_DistortionPattern_B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/TombProtector.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/TombProtector.fbx deleted file mode 100644 index 28a4cecb1..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/TombProtector.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e8ab9ac98cc040e967bfae8c42e2d57be4957844399b245973f08c7eda6c82d -size 48326476 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body deleted file mode 100644 index 594d7b2a7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx deleted file mode 100644 index a9b67e9ba..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/Body.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7586f3029f295dbcb4d0306a07464420af0efc524cf09568464b07d67340a95c -size 3076716 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png deleted file mode 100644 index bd1d863a5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png deleted file mode 100644 index 88d3686f0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Body/T_Vendor_DADA_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair deleted file mode 100644 index 7305034ef..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx deleted file mode 100644 index b30f6ac18..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Hair/Hair.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a6bed60c6be5555ed08388845e833b539eb5ca8095be2e7096aad754450f0320 -size 3383676 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head deleted file mode 100644 index 92616bccf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx deleted file mode 100644 index d0d7958de..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/Head.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8c2af954e432ef10626e687fc032c826b4042f6ba058e485347273087509b76 -size 2730924 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png deleted file mode 100644 index c4b770cdd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Human/Head/T_NPC_Young_M_Head_Ivory_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve deleted file mode 100644 index 4cd475871..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve.fbx deleted file mode 100644 index d00c20189..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/Steve.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cef2bb7918a4bcc6f5b1ac4208b564dfb86bd79d1c1ef01f0cf7369afa8e0141 -size 5354012 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds deleted file mode 100644 index 1f5b45cc6..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.dds +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7e97481d552a1a6642d2fad4b3090b71252af7be78a56adfa4b580ee014adbd -size 5636 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png deleted file mode 100644 index 0b6efc2f0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_S.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds deleted file mode 100644 index bb2a2fa7c..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.dds +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e667a308da0715aa46784b53957b8b62a148ddf8b5852ed5c4d9103014699ab9 -size 5636 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png deleted file mode 100644 index 76a9ed9fb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Steve/T_Amethyst_Scout_Skin.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/Sword.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/Sword.fbx deleted file mode 100644 index 01f7eb9bb..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/Sword.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51f2fbdcd11d1d456b0d790b055890bff8c304f11cf18b7550ca77d25011b229 -size 30732 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/sword.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/sword.png deleted file mode 100644 index e7bb3aba7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Sword/sword.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png deleted file mode 100644 index 7bb19943d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png deleted file mode 100644 index 2ed79b910..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png deleted file mode 100644 index 61cd321c0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png deleted file mode 100644 index 80bd10c56..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/T_WPN_TombProtector_Axe_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/TombProtector_Axe.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/TombProtector_Axe.fbx deleted file mode 100644 index 23cb9ce13..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Axe/TombProtector_Axe.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad2af72637b47daf2d6a4b3a132414054d7f7d4e059bea47257b1ccc2e880a2f -size 91468 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png deleted file mode 100644 index 2c9dc117f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png deleted file mode 100644 index 6c4acfba4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png deleted file mode 100644 index 774ea3db2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png deleted file mode 100644 index 181d60492..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/T_WPN_TombProtector_Mace_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/TombProtector_Mace.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/TombProtector_Mace.fbx deleted file mode 100644 index 75e5c1155..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/Mace/TombProtector_Mace.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b726eb9e224d98be73a9089bdc3375c962c79d909af1154bb2d0614499a3034 -size 95900 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png deleted file mode 100644 index fc0fbca3d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png deleted file mode 100644 index f8a7c9c89..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png deleted file mode 100644 index e16ba8af8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_MROA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png deleted file mode 100644 index 6ac83780f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector01_Upper_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png deleted file mode 100644 index 1d7adae32..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png deleted file mode 100644 index ccb0bca48..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png deleted file mode 100644 index 8bbbb218a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1001_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png deleted file mode 100644 index 85f9805c2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png deleted file mode 100644 index 98d5357db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png deleted file mode 100644 index 4ebccf04d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1002_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png deleted file mode 100644 index 2fe1ffc6f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_1_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png deleted file mode 100644 index de7e79e09..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_GOL_TombProtector_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png deleted file mode 100644 index 508965f7a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_Spline_clouds_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png deleted file mode 100644 index cdfe02952..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png deleted file mode 100644 index ff8a490c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/T_TombProtector_DistortionPattern_B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector.fbx deleted file mode 100644 index 28a4cecb1..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8e8ab9ac98cc040e967bfae8c42e2d57be4957844399b245973f08c7eda6c82d -size 48326476 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png deleted file mode 100644 index b63e5e4a5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Body_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png deleted file mode 100644 index 9d495b121..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png deleted file mode 100644 index 3533f9808..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Leather_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png deleted file mode 100644 index bbbb5572a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png deleted file mode 100644 index b23efd89f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png deleted file mode 100644 index 3c8bca8ba..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_ArmoredTroll_Metal_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png deleted file mode 100644 index df0e9262f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Eye_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png deleted file mode 100644 index 0276f34ab..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png deleted file mode 100644 index f4280c6f9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Head_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png deleted file mode 100644 index 04895a31f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png deleted file mode 100644 index e3d44cbb1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Mountain01_Skirt_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png deleted file mode 100644 index 5db401caf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png deleted file mode 100644 index 7c0338fd8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/T_Troll_Teeth_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll deleted file mode 100644 index 181da1740..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx b/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx deleted file mode 100644 index 94e082474..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Models/Troll/Troll.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b44b64d49d58489c7ac80620cbd2bf5c5827343301d5303bdaa6314b4040634 -size 136314364 diff --git a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Box b/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Box deleted file mode 100644 index 076b14c9d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Box and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinBody b/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinBody deleted file mode 100644 index d0c63a25f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinBody and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinHead b/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinHead deleted file mode 100644 index 53267f9a0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/GoblinHead and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Steve b/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Steve deleted file mode 100644 index 4cd475871..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/Steve and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Cell.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Cell.hlsl deleted file mode 100644 index d1fb0e0d0..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Cell.hlsl +++ /dev/null @@ -1,67 +0,0 @@ -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -vector g_vColor = 1.f; -float g_fFar; - -struct VS_IN -{ - float3 vPosition : POSITION; -}; - -struct VS_OUT -{ - float4 vPosition : SV_POSITION; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_POSITION; -}; - -struct PS_OUT -{ - float4 vColor : SV_TARGET0; -}; -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - Out.vColor = g_vColor; - - return Out; -} - -technique11 DefaultTechnique -{ - pass Default - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - - - - - -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl deleted file mode 100644 index 5c8f5c81a..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl +++ /dev/null @@ -1,78 +0,0 @@ -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -Texture2D g_ColorTexture; -Texture2D g_DiffuseTexture; - - -struct VS_IN -{ - float3 vPosition : POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct PS_OUT_BACKBUFFER -{ - float4 vBackBuffer : SV_TARGET0; -}; - -PS_OUT_BACKBUFFER PS_OUT_LASTCOLOR(PS_IN In) -{ - PS_OUT_BACKBUFFER Out; - - Out.vBackBuffer = float4(0.f, 0.f, 0.f, 0.f); - - vector vColorTexture = g_ColorTexture.Sample(ClampSampler, In.vTexcoord); - - if (0.f == vColorTexture.a) - { - discard; - } - - Out.vBackBuffer = vColorTexture; - - - return Out; -} - -technique11 DefaultTechnique -{ - pass Default - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_OUT_LASTCOLOR(); - } - -} 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 0dea26c43..91a72f9db 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -1,5 +1,4 @@ - -float PI = 3.141592; +#include "Engine_Shader_Functions.hlsli" struct Particle { @@ -30,7 +29,16 @@ struct ParticleValue float2 vAniIndex; float fGravity; - float3 vSinAmount; + float3 vSinAmount; + float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; + float2 vDelay; }; @@ -42,12 +50,22 @@ RWStructuredBuffer g_ParticleValueOutput : register(u1); cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함 { - row_major matrix CamViewInvMatrix; + row_major matrix WorldMatrix; bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라 bool isDrop; bool isMoveForward; bool isSinWave; + + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; + + bool isNoWorld; + bool isPadding0; + bool isPadding1; + bool isPadding2; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -67,18 +85,42 @@ void CS_MAIN( ParticleValue particleValue = g_ParticleValueBufferInput[iIndex]; - // 라이프타임 움직임 + particleValue.vDelay.x += fTimeDelta; + + if (particleValue.vDelay.x < particleValue.vDelay.y) + { + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return; + } + + if (particle.vLifeTime.x <= FLT_EPSILON5) + { + if (isNoWorld) + { + float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation }; + + + CurMat = mul(CurMat, WorldMatrix); + + particle.vRight = CurMat[0].xyzw; + particle.vUp = CurMat[1].xyzw; + particle.vLook = CurMat[2].xyzw; + particle.vTranslation = CurMat[3].xyzw; + } + } + // 라이프타임 움직임 particle.vLifeTime.x += fTimeDelta; if (particle.vLifeTime.x >= particle.vLifeTime.y) { if (isLoop == false) { - - - return; + return ; } - //초기화 particle.vRight = particleValue.vOriginRight; particle.vUp = particleValue.vOriginUp; @@ -86,15 +128,47 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; - + particleValue.vAniIndex.x = 0.f; + particleValue.vDelay.x = 0.f; + + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { - float4 vVelocity = vector(normalize(particleValue.vOriginLook.xyz) * particleValue.fSpeed, 1.f); + 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) @@ -107,6 +181,87 @@ void CS_MAIN( { particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } + + if (isTurn == true) + { + /* ROTATE */ + float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); + float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta); + float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat)); + + float4x4 CurRotatemat = {particle.vRight, particle.vUp, particle.vLook, vector(0.f , 0.f, 0.f, 1.f)}; + + + + CurRotatemat = mul(CombinedRotMat, CurRotatemat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + 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/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl index 529cf9c68..067d90c1d 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl @@ -6,26 +6,41 @@ Texture2D g_DepthTexture; int g_iImageCountX; int g_iImageCountY; +uint g_iIndexU; +uint g_iIndexV; +uint g_iQuestType; +uint g_iSpellType; + +float g_fPI; float g_fFar; float g_fTime; float g_fTimeMult; float g_fFrame; +float g_fDeltaU; +float g_fDeltaV; float g_fAlpha; float g_fOwnerAlpha; float g_fCanvasAlpha; -float g_fDeltaU; -float g_fDeltaV; -uint g_iIndexU; -uint g_iIndexV; -float4 g_fNine_Slice; +float g_fAngle; +float g_fCoolTime; +float g_fHp; + float2 g_fOrigin_Size; float2 g_fCurrent_Size; -uint g_iQuestType; -float g_fPI; +float2 g_fHpBG; + +float4 g_fNine_Slice; +float4 g_fImageUV; +float4 g_fImageUV1; + +float2 g_fPosition[4]; +float4 g_fImagesUV[4]; Texture2D g_Texture; Texture2D g_Texture1; Texture2D g_Texture2; +Texture2D g_Texture3; +Texture2D g_Texture4; Texture2D g_DiffuseTexture; Texture2D g_MaskingTexture; @@ -71,12 +86,13 @@ struct PS_OUT PS_OUT PS_MAIN(PS_IN In) { PS_OUT Out; - + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); if (Color.a <= 0.1f) discard; + Color.a *= Alpha; Out.vColor = Color; return Out; } @@ -84,9 +100,13 @@ PS_OUT PS_MAIN(PS_IN In) PS_OUT PS_AlphaBlend(PS_IN In) { PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); + Color.rgb *= 1.5f; + + Color.a *= Alpha; Out.vColor = Color; return Out; @@ -95,45 +115,47 @@ PS_OUT PS_AlphaBlend(PS_IN In) PS_OUT PS_Clamp(PS_IN In) { PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); + Color.a *= Alpha; Out.vColor = Color; - return Out; } -PS_OUT PS_Cursor(PS_IN In) +PS_OUT PS_Cursor(PS_IN In) { PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 Color = float4(0.f, 0.f, 0.f, 0.f); - float4 White = float4(1.f, 1.f, 1.f, 1.f); + float4 Color = float4(0.f, 0.f, 0.f, 0.f); + float4 White = float4(1.f, 1.f, 1.f, 1.f); - float2 UV = In.vTexcoord; - float2 Center = float2(0.5f, 0.5f); + float2 UV = In.vTexcoord; + float2 Center = float2(0.5f, 0.5f); - float CW = -g_fTime; - float CCW = g_fTime; + float CW = -g_fTime; + float CCW = g_fTime; - float2 RedCircle = UV; - float2 RedUV = UV - Center; + float2 RedCircle = UV; + float2 RedUV = UV - Center; - RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW); - RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW); - RedCircle = RedCircle + Center; + RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW); + RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW); + RedCircle = RedCircle + Center; - float2 BlueCircle = UV; + float2 BlueCircle = UV; float2 BlueUV = UV - Center; - BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW); - BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW); - BlueCircle = BlueCircle + Center; + BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW); + BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW); + BlueCircle = BlueCircle + Center; - float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle); - float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle); + float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle); + float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle); if (Texture1.r >= 0.7f) Color = Texture1; @@ -144,7 +166,9 @@ PS_OUT PS_Cursor(PS_IN In) if (all(Color.rgb <= 0.5f)) discard; - Color = White; + Color = White; + + Color.a *= Alpha; Out.vColor = Color; @@ -154,6 +178,7 @@ PS_OUT PS_Cursor(PS_IN In) PS_OUT PS_Key_Hold_Rotation(PS_IN In) { PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float2 uv = In.vTexcoord; @@ -170,30 +195,53 @@ PS_OUT PS_Key_Hold_Rotation(PS_IN In) tex.rgb = (angle <= rotation) ? 1.0 : tex.rgb; + tex.a *= Alpha; + Out.vColor = tex; return Out; } +PS_OUT PS_Mission(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(0.f, 0.f, 0.f, 0.f); + + float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); + float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); + + tex1.a *= 0.5f; + + if (tex1.a >= 0.f) + Color = tex1; + + Color = lerp(Color, tex2, tex2.a); + + Color.a *= Alpha; + Out.vColor = Color; + return Out; +} + PS_OUT PS_Sptire_Sheet(PS_IN In) { PS_OUT Out; - - float4 Color = float4(0.f, 0.f, 0.f, 0.f); float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float4 Color = float4(0.f, 0.f, 0.f, 0.f); float2 UV = In.vTexcoord; int iTotalFrame = g_iImageCountX * g_iImageCountY; - int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame; + uint iCurrentFrame = uint(floor(g_fTime / g_fFrame)) % iTotalFrame; - int iFrameX = iCurrentFrame % g_iImageCountX; - int iFrameY = iCurrentFrame / g_iImageCountX; + int iFrameX = iCurrentFrame % g_iImageCountX; + int iFrameY = iCurrentFrame / g_iImageCountX; - float fFreamWidth = 1.0 / g_iImageCountX; - float fFreamHeight = 1.0 / g_iImageCountY; + float fFreamWidth = 1.0 / g_iImageCountX; + float fFreamHeight = 1.0 / g_iImageCountY; - UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; + UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; float4 Texture = g_Texture.Sample(DefaultSampler, UV); @@ -203,7 +251,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In) if (Color.r <= 0.4f) discard; - Color.a = Alpha; + Color.a *= Alpha; Out.vColor = Color; @@ -213,6 +261,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In) PS_OUT PS_QuestType(PS_IN In) { PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float3 Color = float3(253.f, 207.f, 11.f) / 255.f; float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); @@ -224,6 +273,7 @@ PS_OUT PS_QuestType(PS_IN In) } } + Texture1.a *= Alpha; Out.vColor = Texture1; return Out; @@ -232,9 +282,11 @@ PS_OUT PS_QuestType(PS_IN In) PS_OUT PS_UVMult(PS_IN In) { PS_OUT Out; - + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord); + + color.a *= Alpha; Out.vColor = color; return Out; @@ -243,46 +295,384 @@ PS_OUT PS_UVMult(PS_IN In) PS_OUT PS_NineSlice(PS_IN In) { PS_OUT Out; - float Left = g_fNine_Slice.x / g_fOrigin_Size.x; - float Right = (g_fOrigin_Size.x - g_fNine_Slice.y) / g_fOrigin_Size.x; - float Top = g_fNine_Slice.z / g_fOrigin_Size.y; - float Bottom = (g_fOrigin_Size.y - g_fNine_Slice.w) / g_fOrigin_Size.y; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 uv = In.vTexcoord; + float2 CurrentPixelPosition = uv * g_fCurrent_Size; + float OriginLeft = g_fNine_Slice.x; + float OriginRight = g_fNine_Slice.y; + float OriginTop = g_fNine_Slice.z; + float OriginBottom = g_fNine_Slice.w; - float2 ratio = g_fCurrent_Size / g_fOrigin_Size; + float CurrentLeft = OriginLeft; + float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); + float CurrentTop = OriginTop; + float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - float2 UV = In.vTexcoord * 0.5f + 0.5f; - float2 ScaledUV = UV; - - if(UV.x < Left) + float2 Finaluv = In.vTexcoord; + + if (CurrentPixelPosition.x < CurrentLeft) { - ScaledUV.x = UV.x; + Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; } - else if(UV.x > Right) + else if (CurrentPixelPosition.x > CurrentRight) { - ScaledUV.x = 1.0f - ((1.0f - UV.x) / ratio.x); + float dist = CurrentPixelPosition.x - CurrentRight; + Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; } else { - ScaledUV.x = Left + (UV.x - Left) / ratio.x; + float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); + Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); } - if(UV.y < Top) + if (CurrentPixelPosition.y < CurrentTop) { - ScaledUV.y = UV.y; + Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; } - else if(UV.y > Bottom) + else if (CurrentPixelPosition.y > CurrentBottom) { - ScaledUV.y = 1.0f - ((1.0f - UV.y) / ratio.y); + float dist = CurrentPixelPosition.y - CurrentBottom; + Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; } else { - ScaledUV.y = Top + (UV.y - Top) / ratio.y; + float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); + Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); } - float4 color = g_Texture.Sample(ClampSampler, ScaledUV); + float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); + float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); + + tex1.a *= 0.5f; + + if (tex1.a >= 0.f) + Color = tex1; + + Color = lerp(Color, tex2, tex2.a); + + Color.a *= Alpha; + Out.vColor = Color; + return Out; +} + +PS_OUT PS_Rotation(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 color = float4(0.f, 0.f, 0.f, 0.f); + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); + float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); + + tex1.rgb *= 0.4f; + color = tex1; + tex2.rgb *= 0.3f; + + if (tex2.a >= 0.9f) + color = tex2; + + color.a *= Alpha; + + Out.vColor = color; + return Out; + +} + +PS_OUT PS_Slot(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float4 color = g_Texture.Sample(ClampSampler, Rotation); + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + +PS_OUT PS_SpellAnim(PS_IN In) +{ + PS_OUT Out; + + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 color = float4(1.f, 1.f, 1.f, 1.f); + + float3 BGColor = float3(1.f, 1.f, 1.f); + + switch (g_iSpellType) + { + case 0: + BGColor = float3(208.f, 179.f, 54.f) / 255.f; + break; + case 1: + BGColor = float3(89.f, 32.f, 215.f) / 255.f; + break; + case 2: + BGColor = float3(190.f, 46., 34.f) / 255.f; + break; + case 3: + BGColor = float3(37.f, 129.f, 162.f) / 255.f; + break; + case 4: + BGColor = float3(134.f, 171.f, 78.f) / 255.f; + break; + case 5: + BGColor = float3(0.f, 80.f, 55.f) / 255.f; + break; + case 6: + BGColor = float3(0.f, 0.f, 0.f); + break; + } + + float2 uv = In.vTexcoord; + float CoolTime = 1.f - g_fDeltaV; + float CoolTime2 = 1.f - g_fDeltaV + 0.05; + + float4 tex1 = g_Texture.Sample(ClampSampler, uv); + tex1.rgb *= BGColor; + float4 tex2 = g_Texture1.Sample(DefaultSampler, uv); + + if (tex2.a >= 0.9f) + tex1 = tex2; + + color = tex1; + + float wave1 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; + float wave2 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; + + float waveThreshold1 = CoolTime + wave1; + float waveThreshold2 = CoolTime2 + wave2; + + if (g_fDeltaV <= 1.f) + { + if (uv.y >= waveThreshold1 && uv.y <= waveThreshold2) + { + color.rgb = float3(1.f, 1.f, 1.f); + } + } + + if (uv.y <= CoolTime) + { + color.a = 0.f; + } + + color.a *= Alpha; Out.vColor = color; + return Out; +} +PS_OUT PS_HpBar(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 uv = In.vTexcoord; + float2 CurrentPixelPosition = uv * g_fCurrent_Size; + float OriginLeft = g_fNine_Slice.x; + float OriginRight = g_fNine_Slice.y; + float OriginTop = g_fNine_Slice.z; + float OriginBottom = g_fNine_Slice.w; + + float CurrentLeft = OriginLeft; + float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); + float CurrentTop = OriginTop; + float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); + + float2 Finaluv = In.vTexcoord; + + if (CurrentPixelPosition.x < CurrentLeft) + { + Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; + } + else if (CurrentPixelPosition.x > CurrentRight) + { + float dist = CurrentPixelPosition.x - CurrentRight; + Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; + } + else + { + float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); + Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); + } + + if (CurrentPixelPosition.y < CurrentTop) + { + Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; + } + else if (CurrentPixelPosition.y > CurrentBottom) + { + float dist = CurrentPixelPosition.y - CurrentBottom; + Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; + } + else + { + float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); + Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); + } + + float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); + Color = tex1; + float2 reversuv = In.vTexcoord; + + reversuv.x = 1.0f - Finaluv; + + float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); + + if (reversuv.x >= g_fHp) + { + tex2.rgb = float3(0.f, 0.f, 0.f); + } + + float3 Green = float3(112.f, 241.f, 31.f) / 255.f; + Green *= 1.2f; + tex2.rgb *= Green; + + if (all(Color.rgb >= float3(70.f / 255.f, 70.f / 255.f, 70.f / 255.f))) + Color = tex2; + + Color.a *= Alpha; + Out.vColor = Color; + return Out; +} + +PS_OUT PS_Magic_Meter(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float3 Blue = float3(41.f, 165.f, 255.f) / 255.f; + + float4 color = float4(1.f, 1.f, 1.f, 1.f); + float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord); + float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord); + + float2 reverseuv = 1.f - In.vTexcoord; + + color = tex1; + tex2.rgb *= Blue * 1.5f; + + if (reverseuv.x >= g_fHp) + { + tex2.rgb = float3(0.f, 0.f, 0.f); + } + + if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f))) + color = tex2; + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + + +PS_OUT PS_Magic_Icon(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + + float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; + float2 center = float2(0.5, 0.5); + float scale = 1.2; + + uv = (uv - center) * scale + center; + float4 tex2 = g_Texture1.Sample(ClampSampler, uv); + + Color = tex1; + + Color = tex1 * (1 - tex2.a) + tex2; + + + Color.a *= Alpha; + Out.vColor = Color; + + return Out; +} + +PS_OUT PS_RemapUV(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + + + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + + float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV); + + Color = tex1; + + Color.a *= Alpha; + Out.vColor = Color; + + return Out; +} + +PS_OUT PS_Revelio(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 UV = In.vTexcoord; + + float2 Position[4]; + float2 startUV[4]; + float2 endUV[4]; + + float2 Atlases[4]; + + for (int i = 0; i < 4; ++i) + { + Position[i] = g_fPosition[i]; + startUV[i] = g_fImagesUV[i].xy; + endUV[i] = g_fImagesUV[i].zw; + + Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]); + } + + float4 tex1 = g_Texture.Sample(DefaultSampler, UV); + float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]); + float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]); + float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]); + float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]); + + + + //float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + Color.a *= Alpha; + Out.vColor = Color; + return Out; } @@ -292,7 +682,7 @@ technique11 PosTexTechnique11 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_MAIN(); GeometryShader = NULL; PixelShader = compile ps_5_0 PS_MAIN(); @@ -348,6 +738,16 @@ technique11 PosTexTechnique11 PixelShader = compile ps_5_0 PS_Key_Hold_Rotation(); } + pass Mission + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Mission(); + } + pass QuestType { SetRasterizerState(RS_Default); @@ -378,4 +778,82 @@ technique11 PosTexTechnique11 PixelShader = compile ps_5_0 PS_NineSlice(); } + pass Rotation + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Rotation(); + } + + pass Slot + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Slot(); + } + + pass SpellAnim + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_SpellAnim(); + } + pass HpBar + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_HpBar(); + } + pass Magic_Meter + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Magic_Meter(); + } + + pass Magic_Icon + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Magic_Icon(); + } + + pass RemapUV + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_RemapUV(); + } + + pass Revelio + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Revelio(); + } + } diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl deleted file mode 100644 index bbb47719c..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ /dev/null @@ -1,414 +0,0 @@ - -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -bool g_bRimLight; -bool g_bUseNormalMap; - -float g_fFar; -float g_LifeRatio; -float g_fRimStrength; -float g_fRimPower; -float3 g_vRimColor; -float4 g_TestColor; -vector g_vCamPosition; - -Texture2D g_DiffuseTexture; -Texture2D g_NormalTexture; -Texture2D g_DAOTexture; -Texture2D g_THVTexture; - -float3 g_RootColor; -float3 g_TipColor; -float3 g_DyeColor; - -float g_DyeOpacity; -float g_HairRoughness; - - -matrix g_BoneMatrices[512]; - - -struct VS_IN -{ - float3 vPosition : POSITION; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - - uint4 vBlendIndex : BLENDINDEX; - float4 vBlendWeight : BLENDWEIGHT; -}; - -struct VS_OUT -{ - float4 vPosition : SV_Position; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - - matrix BoneMatrix = - mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + - mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + - mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + - mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); - - vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); - vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix); - vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix); - vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix); - - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vPosition, matWVP); - Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz; - Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz; - Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz; - Out.vTexcoord = In.vTexcoord; - Out.vWorldPos = mul(vPosition, g_WorldMatrix); - Out.vProjPos = Out.vPosition; - return Out; -} - -struct VS_OUT_CAPTUREDMODEL -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT_BLUR -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT_CAPTUREDMODEL VS_CAPTUREDMODEL(VS_IN In) -{ - VS_OUT_CAPTUREDMODEL Out; - - float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - - matrix BoneMatrix = - mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x ) + - mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y ) + - mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z ) + - mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); - - vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vPosition, matWVP); - Out.vTexcoord = In.vTexcoord; - return Out; -} - -VS_OUT_BLUR VS_MAIN_BLUR(VS_IN In) -{ - VS_OUT_BLUR Out; - - float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - - matrix BoneMatrix = - mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + - mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + - mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + - mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); - - vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vPosition, matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} - -struct VS_OUT_SHADOW -{ - float4 vPosition : SV_POSITION; - float4 vProjPos : TEXCOORD0; -}; - -VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In) -{ - VS_OUT_SHADOW Out; - - float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - - matrix BoneMatrix = g_BoneMatrices[In.vBlendIndex.x] * In.vBlendWeight.x + - g_BoneMatrices[In.vBlendIndex.y] * In.vBlendWeight.y + - g_BoneMatrices[In.vBlendIndex.z] * In.vBlendWeight.z + - g_BoneMatrices[In.vBlendIndex.w] * fWeightW; - - /* ?ㅽ궎??*/ - vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vPosition, matWVP); - Out.vProjPos = Out.vPosition; - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_Position; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -struct PS_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vNormal : SV_TARGET1; - float4 vDepth : SV_TARGET2; -}; - -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.4f) - { - discard; - } - - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - if (true == g_bRimLight) - { - float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength); - vMtrlDiffuse.xyz = (vMtrlDiffuse.xyz * (1 - fRimLight)) + g_vRimColor * fRimLight; - } - - - Out.vDiffuse = vMtrlDiffuse; - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - - - return Out; -} - -struct PS_IN_SHADOW -{ - float4 vPosition : SV_POSITION; - float4 vProjPos : TEXCOORD0; -}; - -struct PS_OUT_SHADOW -{ - float4 vShadowLightDepth : SV_TARGET0; -}; - -PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In) -{ - PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0; - - Out.vShadowLightDepth.x = In.vProjPos.z; - - return Out; -} - -struct PS_IN_CAPTUREDMODEL -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; -struct PS_OUT_CAPTUREDMODEL -{ - float4 vColor : SV_TARGET0; -}; - -PS_OUT_CAPTUREDMODEL PS_CAPTUREDMODEL(PS_IN_CAPTUREDMODEL In) -{ - PS_OUT_CAPTUREDMODEL Out = (PS_OUT_CAPTUREDMODEL) 0; - - Out.vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - Out.vColor.a = saturate(1 - g_LifeRatio) * 0.5f; - return Out; -} - -struct PS_IN_BLUR -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; -struct PS_OUT_BLUR -{ - float4 vDiffuse : SV_TARGET0; -}; - -PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In) -{ - PS_OUT_BLUR Out = (PS_OUT_BLUR) 0; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - - Out.vDiffuse = saturate(vMtrlDiffuse); - - return Out; -} - -PS_OUT PS_HAIR(PS_IN In) -{ - PS_OUT Out; - - float4 DAO = g_DAOTexture.Sample(DefaultSampler, In.vTexcoord); - float alpha = DAO.a; - if (alpha < 0.1f) - discard; - - float4 THV = g_THVTexture.Sample(DefaultSampler, In.vTexcoord); - float rootMask = THV.r; - float tipMask = THV.g; - float variation = THV.b; - - float3 baseColor = lerp(g_RootColor, g_TipColor, tipMask); - - baseColor *= lerp(0.8, 1.2, variation); - - baseColor = lerp(baseColor, g_DyeColor, g_DyeOpacity); - - float4 vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - float3 normal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - if (g_bRimLight) - { - float fRim = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, normal, g_fRimPower, g_fRimStrength); - baseColor = lerp(baseColor, g_vRimColor.rgb, fRim); - } - - Out.vDiffuse = float4(baseColor, alpha); - Out.vNormal = float4(normal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - - return Out; -} - -PS_OUT PS_EYELASH(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.4f) - { - discard; - } - - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - if (true == g_bRimLight) - { - float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength); - vMtrlDiffuse.xyz = (vMtrlDiffuse.xyz * (1 - fRimLight)) + g_vRimColor * fRimLight; - } - - - Out.vDiffuse = float4(vMtrlDiffuse.rgb, vMtrlDiffuse.g); - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - - - return Out; -} - - -technique11 DefaultTechnique -{ - pass Default - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass ShadowPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN_SHADOW(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_SHADOW(); - } - - pass CAPTUREDMODELPASS - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_CAPTUREDMODEL(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_CAPTUREDMODEL(); - } - pass BlurPass // 9 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN_BLUR(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_BLUR(); - } - - pass HairPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_HAIR(); - } - - pass EyeLashPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EYELASH(); - } -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl deleted file mode 100644 index 4a503675a..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ /dev/null @@ -1,482 +0,0 @@ - -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -bool g_bUVTargetDiffuse; -bool g_bAdditiveDisolve; -float g_LifeRatio; -float g_fFar; -float g_fTime; -float g_fDeltaU; -float g_fDeltaV; -uint g_iIndexU; -uint g_iIndexV; - -float g_fDisolveRatio; - -float2 g_vClipBoxSize; -float2 g_vClipBoxLTPos; - -Texture2D g_DiffuseTexture; -Texture2D g_MaskingTexture; -Texture2D g_ClippingTexture; -Texture2D g_DisolveTexture; -Texture2D g_NormalTexture; -Texture2D g_GlowTexture; - -struct VS_IN -{ - float3 vPosition : POSITION; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : SV_POSITION; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -struct VS_OUT_BLUR -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT_SHADOW -{ - float4 vPosition : SV_POSITION; - float4 vProjPos : TEXCOORD0; -}; - - -VS_OUT_BLUR VS_MAIN_BLUR(VS_IN In) -{ - VS_OUT_BLUR Out; - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} - -VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In) -{ - VS_OUT_SHADOW Out; - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vProjPos = Out.vPosition; - - return Out; -} -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz; - Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz; - Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), g_WorldMatrix)).xyz; - Out.vTexcoord = In.vTexcoord; - Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix); - Out.vProjPos = Out.vPosition; - return Out; -} - -struct VS_OUT_EFFECT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; -VS_OUT_EFFECT VS_EFFECT(VS_IN In) -{ - VS_OUT_EFFECT Out; - - matrix matWV, matWVP; - - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} -struct VS_OUT_CAPTUREDMODEL -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT_CAPTUREDMODEL VS_CAPTUREDMODEL(VS_IN In) -{ - VS_OUT_CAPTUREDMODEL Out; - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - return Out; -} -struct PS_IN -{ - float4 vPosition : SV_POSITION; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -struct PS_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vNormal : SV_TARGET1; - float4 vDepth : SV_TARGET2; - -}; -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.1f) - { - discard; - } - - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - Out.vDiffuse = vMtrlDiffuse; - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - - return Out; -} -PS_OUT PS_MAIN_SELECT(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.4f) - { - discard; - } - - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - Out.vDiffuse = vMtrlDiffuse * float4(0.f, 1.f, 1.f, 0.3f); - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - return Out; -} - -PS_OUT PS_GLASS(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - vector vMtrlGlow = g_GlowTexture.Sample(DefaultSampler, In.vTexcoord); - - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); - float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - - Out.vDiffuse = lerp(vMtrlDiffuse, vMtrlGlow, vMtrlDiffuse.a); - Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - - return Out; -} - -struct PS_IN_SHADOW -{ - float4 vPosition : SV_POSITION; - float4 vProjPos : TEXCOORD0; -}; - -struct PS_OUT_SHADOW -{ - float4 vShadowLightDepth : SV_TARGET0; -}; - -struct PS_IN_BLUR -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; -struct PS_OUT_BLUR -{ - float4 vDiffuse : SV_TARGET0; -}; - - -PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In) -{ - PS_OUT_BLUR Out = (PS_OUT_BLUR) 0; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - - Out.vDiffuse = saturate(vMtrlDiffuse); - - return Out; -} - -PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In) -{ - PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0; - - Out.vShadowLightDepth.x = In.vProjPos.z; - - return Out; -} - -struct PS_IN_EFFECT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; -}; -struct PS_OUT_EFFECT -{ - float4 vColor : SV_TARGET0; -}; - - -PS_OUT_EFFECT PS_EFFECT_UVMOVE(PS_IN_EFFECT In) -{ - PS_OUT_EFFECT Out; - - float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV); - - vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vMovedUV); - - if (vDiffuse.a < 0.01f) - { - discard; - } - - Out.vColor = vDiffuse; - - return Out; -} - -PS_OUT_EFFECT PS_EFFECT(PS_IN_EFFECT In) -{ - PS_OUT_EFFECT Out; - - float2 uv = In.vTexcoord; - float2 vClipBoxUV = g_vClipBoxLTPos + g_vClipBoxSize * In.vTexcoord; - uv.x += g_fDeltaU * g_fTime; - uv.y += g_fDeltaV * g_fTime; - - vector vDiffuse; - vector vMasking; - vector vClipCell = g_ClippingTexture.Sample(DefaultSampler, vClipBoxUV); - vector vDisolveCell = g_DisolveTexture.Sample(DefaultSampler, In.vTexcoord); - if (true == g_bUVTargetDiffuse) - { - vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv); - vMasking = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); - } - else - { - vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - vMasking = g_MaskingTexture.Sample(DefaultSampler, uv); - } - if (true == g_bAdditiveDisolve) - { - vDiffuse.a = saturate(vDiffuse.a * vMasking.r * vClipCell.r + vDisolveCell.r * g_fDisolveRatio); - } - else - { - vDiffuse.a = saturate(vDiffuse.a * vMasking.r * vClipCell.r - vDisolveCell.r * g_fDisolveRatio); - } - - if (vDiffuse.a < 0.01f) - { - discard; - } - - Out.vColor = vDiffuse; - - return Out; -} - -struct PS_IN_CAPTUREDMODEL -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; -struct PS_OUT_CAPTUREDMODEL -{ - float4 vColor : SV_TARGET0; -}; - -PS_OUT_CAPTUREDMODEL PS_CAPTUREDMODEL(PS_IN_CAPTUREDMODEL In) -{ - PS_OUT_CAPTUREDMODEL Out = (PS_OUT_CAPTUREDMODEL) 0; - - Out.vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - Out.vColor.a = saturate(1 - g_LifeRatio) * 0.5f; - return Out; -} -technique11 MeshTechnique11 -{ - pass MeshPass // 0 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass ShadowPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN_SHADOW(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_SHADOW(); - } - - pass SkyBoxPass // 2 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass ALPHABlendPass // 3 - { - SetRasterizerState(RS_Nocull_Wireframe); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - - - pass EffectPass_AlphaBlend // 4 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_EFFECT(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EFFECT(); - } - pass EffectPass_Blend // 5 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_EFFECT(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EFFECT(); - } - pass EffectPass_AlphaBlend_Cull // 6 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_EFFECT(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EFFECT(); - } - pass EffectPass_Blend_Cull // 7 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_EFFECT(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EFFECT(); - } - pass CAPTUREDMODELPASS // 8 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_CAPTUREDMODEL(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_CAPTUREDMODEL(); - } - pass BlurPass // 9 - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN_BLUR(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_BLUR(); - } - pass UVMovePass - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_EFFECT(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_EFFECT_UVMOVE(); - } - - pass MapToolPass // 11 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN_SELECT(); - } - - pass GlassPass // 12 - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_GLASS(); - } -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl deleted file mode 100644 index 64d670aae..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ /dev/null @@ -1,609 +0,0 @@ -#include "Engine_Shader_Defines.hlsli" - -float PI = 3.141592; - -struct ParticleValue -{ - float fSpeed; - float fRotaionSpeed; - - float4 vOriginRight; - float4 vOriginUp; - float4 vOriginLook; - float4 vOriginTranslation; - - float2 vMaskingUVMoveTime; - float2 vDiffuseUVMoveTime; - float2 vNoiseUVMoveTime; - float2 vAniTime; - - float2 vAniIndex; -}; - - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -Texture2D g_DiffuseTexture : register(t0); - -Texture2D g_NormalTexture : register(t1); -Texture2D g_MaskingTexture : register(t2); -Texture2D g_DissolveTexture : register(t3); -Texture2D g_NoiseTexture : register(t4); - -StructuredBuffer g_ParticleValue : register(t5); - - -Texture2D g_EmissiveTexture : register(t6); -Texture2D g_DepthStencilTexture : register(t7); - - - -float4 g_vCamPosition; - -vector g_vColor; - -float2 g_vDiffuseUVGainAmount; -float2 g_vMaskingUVGainAmount; - -float2 g_vDiffuseNoiseUVGainAmount; -float2 g_vMaskNoiseUVGainAmount; - -// -int g_iMaskMoveLerpOption; -int g_iDiffuseMoveLerpOption; -int g_iMaskNoiseMoveLerpOption; -int g_iDiffuseNoiseMoveLerpOption; -// - -float2 g_vUVCutting; -float2 g_vUVMaskCutting; - - -int g_iBlurWeight; // 블러 강도 -float g_fBlurIntensity; //블러 세기 -float g_fNoiseDistortionIntensity; // 노이즈 왜곡 세기 - -float4 g_vEmissive; -float g_fColorOption; -float g_fEmissiveCutAlpha; - -bool g_isDiffuse; -bool g_isMasking; -bool g_isDissolve; -bool g_isNoise; -bool g_isEmissive; - -bool g_isDiffuseUVMove; -bool g_isMaskUVMove; - -float g_fFar; - -float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) -{ - if (iSelectOption < 0) - return float2(0 , 0); - - float fRatio = _fRatio; - switch (iSelectOption) - { - case 0: - fRatio = fRatio; // Linear - break; - case 1: - fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 - break; - case 2: - fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 - break; - case 3: - fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 - break; - case 4: - fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 - break; - case 5: - fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 - break; - case 6: - fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로 - break; - case 7: - fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수 - break; - case 8: - fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적 - break; - } - - return fAmount * fRatio; - -} - -struct VS_IN -{ - float3 vPosition : POSITION; - float3 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - - float4 vRight : TEXCOORD1; - float4 vUp : TEXCOORD2; - float4 vLook : TEXCOORD3; - float4 vTranslation : TEXCOORD4; - float2 vLifeTime : TEXCOORD5; -}; - -struct VS_OUT -{ - float4 vPosition : SV_POSITION; - float4 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - float4 vWorldPos : TEXCOORD2; - float4 vProjPos : TEXCOORD3; - uint iGPUIndex : TEXCOORD4; -}; - -VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID) -{ - VS_OUT Out = (VS_OUT) 0; - - row_major matrix matW, matWV, matWVP; - - row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); - - matW = mul(g_WorldMatrix, TransformMatrix); - matWV = mul(matW, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - - - vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); - - Out.vPosition = vPosition; - Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), matW)); - Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), matW)).xyz; - Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), matW)).xyz; - Out.vTexcoord = In.vTexcoord; - Out.vLifeTime = In.vLifeTime; - Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW); - Out.iGPUIndex = iGPUIndex; - Out.vProjPos = vPosition; - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_POSITION; - float4 vNormal : NORMAL; - float3 vTangent : TANGENT; - float3 vBinormal : BINORMAL; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - float4 vWorldPos : TEXCOORD2; - float4 vProjPos : TEXCOORD3; - uint iGPUIndex : TEXCOORD4; -}; - -struct PS_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vRevealage : SV_TARGET1; - float4 vColorTarget : SV_TARGET2; -}; - - -PS_OUT BlendedWeight(vector fDiffuse, float fLinearZ) -{ - PS_OUT Out; - - - - float3 vColor = fDiffuse.rgb; - float fAlpha = fDiffuse.a; - - - float fWeight = -max( - min(1.0, max(max(vColor.r, vColor.g), vColor.b) * fAlpha), fAlpha) - * - clamp( 0.01 / (1e-4 + pow(fLinearZ / 200, 4.0)), 0.01f, 1000 ); - - - - //float fWeight = clamp(0.03f / (1e-5 + pow(fLinearZ, 2.0f)), 0.01, 3e3); - //fWeight = max(fWeight, 1.0); - - //이게 오리지널 웨이트 함수 - - //float fWeight = pow(fLinearZ, -2.5); - //float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f); - - Out.vDiffuse = vector(vColor.rgb * fAlpha, fAlpha) * fWeight; - - Out.vRevealage.a = fAlpha; - - return Out; -} - -PS_OUT PS_MAIN(PS_IN In) -{ - - PS_OUT Out; - vector vMtrlDiffuse; - - vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - - vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); - - float3x3 NormalMap_WorldMatrix = float3x3(In.vTangent, In.vBinormal, In.vNormal.xyz); - - float3 vNormal = mul(vMtrlNormal.xyz * 2.f - 1.f, NormalMap_WorldMatrix); - - - //Out.vNormal = float4(vNormal.xyz * 0.5f + 0.5f, 0.f); - //Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 0.0f); - - if (vMtrlDiffuse.a < 0.3f) - discard; - - Out.vDiffuse.a = saturate(In.vLifeTime.y - In.vLifeTime.x); - Out.vDiffuse = vMtrlDiffuse; - - return Out; -} - -PS_OUT PS_NON_NORMALMAP(PS_IN In) -{ - - PS_OUT Out; - - vector vMtrlDiffuse; - vector vMtrlMask; - vector vMtrlNoise; - vector vMtrlDissolve; - - float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; - float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; - float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; - float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; - - if (g_isDiffuse == true) - { - float2 UV; // 이미지의 UV값 - - UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x)); - - if (g_isDiffuseUVMove) - { - UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption); - } - - /* 노이즈 */ - if (g_isNoise == true) - { - - float2 vNoiseUV = In.vTexcoord + SelectLerpUV(g_vDiffuseNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iDiffuseNoiseMoveLerpOption); - - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); - - //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. - vMtrlNoise.rg -= 0.5f; - - //아마 분할되었다면 noise도 분할해야할듯 - vMtrlNoise.rg /= g_vUVCutting; - - //노이즈 텍스쳐로 uv를 왜곡함 - - UV = UV + (vMtrlNoise).rg * g_fNoiseDistortionIntensity; - } - - - /* 최종 색깔 */ - vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV); - - if (g_vColor.a > 0) - vMtrlDiffuse += g_vColor; - - if (vMtrlDiffuse.a < 0.3f) - discard; - - } - else - { - vMtrlDiffuse = g_vColor; - } - - if (g_isMasking == true) - { - float2 vMaskTexcoord = In.vTexcoord; - - vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex.x)); - - if (g_isNoise == true) - { - float2 UV; // 이미지의 UV값 - - float2 vNoiseUV = In.vTexcoord + SelectLerpUV(g_vMaskNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iMaskNoiseMoveLerpOption); - - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); - - //노이즈 텍스쳐로 uv를 왜곡함 - vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity; - } - - if (g_isMaskUVMove) - { - if (vMaskingTime.y > 0) - vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); - } - - vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord); - } - else - { - vMtrlMask.r = 1.f; - } - - - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); - - if (vMtrlDiffuse.a <= 0.f) - discard; - - if (g_isDissolve == true) - { - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - - - - // 색깔 추가할 처리 (이미시브) - - float4 vEmissiveMtrl; - - if (g_isEmissive == true) - { - vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); - } - - - int2 iTexel = int2(In.vPosition.xy); - - float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r; - - float fbias = 0.00005f; - - if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias) - discard; - - - - Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w); - - - //if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha) - // Out.vColorTarget = vector(g_vEmissive.rgb + vEmissiveMtrl.rgb, g_fColorOption / 10.f); - //else - // Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f); - - return Out; -} - -struct VS_BLUR_OUT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - uint iGPUIndex : TEXCOORD2; -}; - -VS_BLUR_OUT VS_BLUR(VS_IN In, uint iGPUIndex : SV_InstanceID) -{ - VS_BLUR_OUT Out = (VS_BLUR_OUT) 0; - - row_major matrix matW, matWV, matWVP; - - row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); - - matW = mul(g_WorldMatrix, TransformMatrix); - matWV = mul(matW, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); - - Out.vPosition = vPosition; - Out.vTexcoord = In.vTexcoord; - Out.vLifeTime = In.vLifeTime; - Out.iGPUIndex = iGPUIndex; - - - return Out; -} - -struct PS_BLUR_IN -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - uint iGPUIndex : TEXCOORD2; - -}; - -struct PS_BLUR_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vBlurWeight : SV_TARGET1; -}; - - -PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In) -{ - - PS_BLUR_OUT Out; - - - vector vMtrlDiffuse; - vector vMtrlMask; - vector vMtrlNoise; - vector vMtrlDissolve; - - float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; - float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; - float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; - float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; - - if (g_isDiffuse == true) - { - float2 UV; // 이미지의 UV값 - - UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x)); - - if (g_isDiffuseUVMove) - { - UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption); - } - - /* 노이즈 */ - if (g_isNoise == true) - { - - float2 vNoiseUV = In.vTexcoord + SelectLerpUV(g_vDiffuseNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iDiffuseNoiseMoveLerpOption); - - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); - - //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. - vMtrlNoise.rg -= 0.5f; - - //아마 분할되었다면 noise도 분할해야할듯 - vMtrlNoise.rg /= g_vUVCutting; - - //노이즈 텍스쳐로 uv를 왜곡함 - - UV = UV + (vMtrlNoise).rg * g_fNoiseDistortionIntensity; - } - - - /* 최종 색깔 */ - vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV); - - if (g_vColor.a > 0) - vMtrlDiffuse += g_vColor; - - if (vMtrlDiffuse.a < 0.3f) - discard; - - } - else - { - vMtrlDiffuse = g_vColor; - } - - if (g_isMasking == true) - { - float2 vMaskTexcoord = In.vTexcoord; - - vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex.x)); - - if (g_isNoise == true) - { - float2 UV; // 이미지의 UV값 - - float2 vNoiseUV = In.vTexcoord + SelectLerpUV(g_vMaskNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iMaskNoiseMoveLerpOption); - - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); - - //노이즈 텍스쳐로 uv를 왜곡함 - vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity; - } - - if (g_isMaskUVMove) - { - if (vMaskingTime.y > 0) - vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); - } - - vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord); - } - else - { - vMtrlMask.r = 1.f; - } - - - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); - - if (g_isDissolve == true) - { - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); - - if (g_isDissolve == true) - { - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - - Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity; - Out.vBlurWeight.r = g_iBlurWeight / 32.f; - - return Out; -} - - -technique11 DefaultTechnique -{ - pass Model - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass NON_NOMALMAP - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); - } - - pass Blur - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_BLUR(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_BLUR(); - } - - - -} - - - - diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl deleted file mode 100644 index 8e8ba0f5d..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl +++ /dev/null @@ -1,96 +0,0 @@ - -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -float g_fFar; - -Texture2D g_DiffuseTexture; - -struct VS_IN -{ - float3 vPosition : POSITION; - float3 vNormal : NORMAL; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : SV_POSITION; - float4 vNormal : NORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)); - Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix); - Out.vProjPos = Out.vPosition; - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_POSITION; - float4 vNormal : NORMAL; - float2 vTexcoord : TEXCOORD0; - float4 vWorldPos : TEXCOORD1; - float4 vProjPos : TEXCOORD2; -}; - -struct PS_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vNormal : SV_TARGET1; - float4 vDepth : SV_TARGET2; -}; - -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord * 30.f); - if (vMtrlDiffuse.a < 0.4f) - { - discard; - } - Out.vDiffuse = vMtrlDiffuse; - - Out.vNormal = float4(In.vNormal.xyz * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.0f); - return Out; -} - -technique11 NorTexTechnique11 -{ - pass NorTexPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - pass TerrainPass - { - SetRasterizerState(RS_Nocull_Wireframe); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPointParticle.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPointParticle.hlsl deleted file mode 100644 index 562a9e2ab..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPointParticle.hlsl +++ /dev/null @@ -1,149 +0,0 @@ -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; - -float g_fDeltaU; -float g_fDeltaV; -uint g_iIndexU; -uint g_iIndexV; - -Texture2D g_DiffuseTexture; -Texture2D g_MaskingTexture; -Texture2D g_NoiseTexture; -Texture2D g_DisolveTexture; -vector g_vCamPosition; - - -struct VS_IN -{ - float3 vPosition : POSITION; - - row_major float4x4 TransformMatrix : WORLD; - - float2 vLifeTime : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : POSITION; - float fSize : PSIZE; - float2 vLifeTime : TEXCOORD0; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - vector vPosition = mul(vector(In.vPosition, 1.f), In.TransformMatrix); - - Out.vPosition = mul(vPosition, g_WorldMatrix); - Out.fSize = length(In.TransformMatrix._11_12_13); - Out.vLifeTime = In.vLifeTime; - - return Out; -} - -struct GS_IN -{ - float4 vPosition : POSITION; - float fSize : PSIZE; - float2 vLifeTime : TEXCOORD0; -}; - -struct GS_OUT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; -}; - -//GS_MAIN(triangle GS_INIn[3]) -//GS_MAIN(line GS_IN In[2]) - -[maxvertexcount(6)] -void GS_MAIN(point GS_IN In[1], inout TriangleStream OutStream) -{ - GS_OUT Out[4]; - - float3 vLook = (g_vCamPosition - In[0].vPosition).xyz; - float3 vRight = normalize(cross(float3(0.f, 1.f, 0.f), vLook)) * In[0].fSize * 0.5f; - float3 vUp = normalize(cross(vLook, vRight)) * In[0].fSize * 0.5f; - - - matrix matVP = mul(g_ViewMatrix, g_ProjMatrix); - - Out[0].vPosition = mul(float4(In[0].vPosition.xyz + vRight + vUp, 1.f), matVP); - Out[0].vTexcoord = float2(0.f, 0.f); - Out[0].vLifeTime = In[0].vLifeTime; - - Out[1].vPosition = mul(float4(In[0].vPosition.xyz - vRight + vUp, 1.f), matVP); - Out[1].vTexcoord = float2(1.f, 0.f); - Out[1].vLifeTime = In[0].vLifeTime; - - Out[2].vPosition = mul(float4(In[0].vPosition.xyz - vRight - vUp, 1.f), matVP); - Out[2].vTexcoord = float2(1.f, 1.f); - Out[2].vLifeTime = In[0].vLifeTime; - - Out[3].vPosition = mul(float4(In[0].vPosition.xyz + vRight - vUp, 1.f), matVP); - Out[3].vTexcoord = float2(0.f, 1.f); - Out[3].vLifeTime = In[0].vLifeTime; - - - OutStream.Append(Out[0]); - OutStream.Append(Out[1]); - OutStream.Append(Out[2]); - OutStream.RestartStrip(); - - OutStream.Append(Out[0]); - OutStream.Append(Out[2]); - OutStream.Append(Out[3]); - OutStream.RestartStrip(); -} - -/* 출력된 정점 위치벡터의 w값으로 모든 성분을 나눈다 -> 투영스페이스로 변환 */ -/* 정점의 위치에 대해서 뷰포트 변환을 수행한다 */ -/* 정점의 모든 정보를 보간하여 픽셀을 만든다. -> 래스터라이즈 */ - -struct PS_IN -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; -}; - -struct PS_OUT -{ - float4 vColor : SV_TARGET0; -}; - - - -/* 픽셀 쉐이더 : 픽셀의 최종적인 색을 결정하낟. */ -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV); - - vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vMovedUV); - vector vMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); - vector vDisolve = g_DisolveTexture.Sample(DefaultSampler, In.vTexcoord); - - vDiffuse.a = saturate(vDiffuse.a * vMask.r - vDisolve.r * (2.f * In.vLifeTime.x / In.vLifeTime.y)); - Out.vColor = vDiffuse; - return Out; -} - -technique11 DefaultTechnique -{ - pass Explosion - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = compile gs_5_0 GS_MAIN(); - PixelShader = compile ps_5_0 PS_MAIN(); - } - -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl deleted file mode 100644 index 6b9fcb9b8..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl +++ /dev/null @@ -1,142 +0,0 @@ - -#include "Engine_Shader_Defines.hlsli" - -matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; -Texture2D g_DepthTexture; - -float g_fFar; -float g_fDeltaU; -float g_fDeltaV; -uint g_iIndexU; -uint g_iIndexV; - -Texture2D g_Texture; -Texture2D g_DiffuseTexture; -Texture2D g_MaskingTexture; - - -struct VS_IN -{ - float3 vPosition : POSITION; - float2 vTexcoord : TEXCOORD0; -}; - -struct VS_OUT -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -VS_OUT VS_MAIN(VS_IN In) -{ - VS_OUT Out; - - - matrix matWV, matWVP; - matWV = mul(g_WorldMatrix, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); - Out.vTexcoord = In.vTexcoord; - - return Out; -} - -struct PS_IN -{ - float4 vPosition : SV_Position; - float2 vTexcoord : TEXCOORD0; -}; - -struct PS_OUT -{ - float4 vColor : SV_Target0; -}; - -PS_OUT PS_MAIN(PS_IN In) -{ - PS_OUT Out; - - Out.vColor = g_Texture.Sample(DefaultSampler, In.vTexcoord); - - return Out; -} -PS_OUT PS_UVMove(PS_IN In) -{ - PS_OUT Out; - - float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV); - - Out.vColor = g_Texture.Sample(DefaultSampler, vMovedUV); - clip(Out.vColor.a - 0.01f); - - return Out; -} -PS_OUT PS_Trail(PS_IN In) -{ - PS_OUT Out; - - vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - vector vMasking = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); - - vDiffuse.a = vDiffuse.a * vMasking.r; - Out.vColor = vDiffuse; - Out.vColor.a *= In.vTexcoord.x; - clip(Out.vColor.a - 0.01f); - return Out; -} - - -technique11 PosTexTechnique11 -{ - pass PosTexPass - { - SetRasterizerState(RS_Default); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass ScissorPass - { - SetRasterizerState(RS_Scissor); - SetDepthStencilState(DSS_Default, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass UIPass - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_MAIN(); - } - - pass UVMovePass - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_UVMove(); - } - - pass TrailPass - { - SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_None, 0); - SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); - VertexShader = compile vs_5_0 VS_MAIN(); - GeometryShader = NULL; - PixelShader = compile ps_5_0 PS_Trail(); - } - -} diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds deleted file mode 100644 index 73d3210f0..000000000 --- a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d0380d3ac4669c0befa321d4bbe29e4018569821729dfc422689054bc8aec3a2 -size 262272 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.png deleted file mode 100644 index 2da94a709..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_CursorRings.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_Cursor_Inner_Circles.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_Cursor_Inner_Circles.png deleted file mode 100644 index 3c82057c7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_Cursor_Inner_Circles.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_MenuCursor.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_MenuCursor.png deleted file mode 100644 index 86443929a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_MenuCursor.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_Map.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_Map.png deleted file mode 100644 index 5f45ada72..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_Map.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_inner.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_inner.png deleted file mode 100644 index c9e1b2bb4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_inner.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_innerDots.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_innerDots.png deleted file mode 100644 index e6f2cc3d1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Cursor/UI_T_menuCursor_innerDots.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/DororongDoro.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/DororongDoro.png deleted file mode 100644 index 0d4a2a2cf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/DororongDoro.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Bubble_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Bubble_D.png deleted file mode 100644 index af325d985..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Bubble_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Ice_Deco2_Skeleton_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Ice_Deco2_Skeleton_D.png deleted file mode 100644 index 4f32aebc9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Ice_Deco2_Skeleton_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Icy_Snow_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Icy_Snow_D.png deleted file mode 100644 index 116fe9da3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Env_Icy_Snow_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Cloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Cloud_D.png deleted file mode 100644 index dbeb25312..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Cloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Dustmote_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Dustmote_D.png deleted file mode 100644 index fa024381d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Dustmote_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fly_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fly_D.png deleted file mode 100644 index ca515f9a1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fly_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_FracturedRockPiece_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_FracturedRockPiece_D.png deleted file mode 100644 index 0ba42b396..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_FracturedRockPiece_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fur2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fur2_D.png deleted file mode 100644 index 77ab323ac..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Fur2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_SprayCloudSoft_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_SprayCloudSoft_D.png deleted file mode 100644 index 5aca47966..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_SprayCloudSoft_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_D.png deleted file mode 100644 index 69c69e5eb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_Large_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_Large_D.png deleted file mode 100644 index d502a26ea..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Spray_Cloud_Large_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw01_D.png deleted file mode 100644 index 965e927ef..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw02_D.png deleted file mode 100644 index 5416926de..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Straw02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Stupify_Core_Center_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Stupify_Core_Center_D.png deleted file mode 100644 index e8f3efce7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Stupify_Core_Center_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_WaterCurtain_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_WaterCurtain_D.png deleted file mode 100644 index d3acb566a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_WaterCurtain_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Waterfall_N.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Waterfall_N.png deleted file mode 100644 index 916504eb0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_Waterfall_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_grass_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_grass_D.png deleted file mode 100644 index 4f75f40bf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_grass_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_lensFlare_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_lensFlare_D.png deleted file mode 100644 index 0b45c1ba1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_lensFlare_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_mud_clumps_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_mud_clumps_D.png deleted file mode 100644 index ef70ed5e5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_mud_clumps_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_pollen_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_pollen_D.png deleted file mode 100644 index 527a75204..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_pollen_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_ripples_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_ripples_D.png deleted file mode 100644 index 1c59a01a3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_ripples_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_rock_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_rock_D.png deleted file mode 100644 index 36ddae030..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_rock_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_water_drops_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_water_drops_D.png deleted file mode 100644 index eb8c454b8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_water_drops_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_waterfall_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_waterfall_D.png deleted file mode 100644 index 84f728baf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_FX_waterfall_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_GrungyNoise_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_GrungyNoise_01_D.png deleted file mode 100644 index 5776ceb67..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_GrungyNoise_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_MusicNote_Particle_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_MusicNote_Particle_D.png deleted file mode 100644 index b72128c35..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_MusicNote_Particle_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_PanningTexture_01_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_PanningTexture_01_DA.png deleted file mode 100644 index f89c253f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_PanningTexture_01_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_A.png deleted file mode 100644 index f6242f06e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_D.png deleted file mode 100644 index 7306395bc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_05_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_05_D.png deleted file mode 100644 index c8e3f884f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_05_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_06_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_06_D.png deleted file mode 100644 index b8e2ab0f9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_06_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_A.png deleted file mode 100644 index 607b1ff35..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_D.png deleted file mode 100644 index 0150c88c7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_09_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_11_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_11_D.png deleted file mode 100644 index f522dc464..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_11_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_12_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_12_D.png deleted file mode 100644 index 413b08be1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_12_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_13_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_13_D.png deleted file mode 100644 index addcc8e43..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_13_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_14_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_14_D.png deleted file mode 100644 index a57466980..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Repairo_Wisp_14_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Smoke_Tiled_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Smoke_Tiled_D.png deleted file mode 100644 index 72e2fce7a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Smoke_Tiled_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_SphinxPuzzle_Flipendo_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_SphinxPuzzle_Flipendo_E.png deleted file mode 100644 index 66fa775e0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_SphinxPuzzle_Flipendo_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_VFX_Smoke_01_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_VFX_Smoke_01_DA.png deleted file mode 100644 index 4910d8103..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_VFX_Smoke_01_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_WaterfallFoam_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_WaterfallFoam_01_D.png deleted file mode 100644 index 237de1212..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_WaterfallFoam_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Web_Net_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Web_Net_DA.png deleted file mode 100644 index c85eb33d2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_Web_Net_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_cloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_cloud_D.png deleted file mode 100644 index 1eae807b4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_cloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_debris_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_debris_D.png deleted file mode 100644 index dcb1c0932..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/T_dust_debris_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BOTU_Nebula_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BOTU_Nebula_D.png deleted file mode 100644 index 0782e5383..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BOTU_Nebula_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Bat_Small_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Bat_Small_D.png deleted file mode 100644 index 66a046027..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Bat_Small_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blast_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blast_D.png deleted file mode 100644 index 44f5bbcc8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blast_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01B_D.png deleted file mode 100644 index 90a67c461..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01_D.png deleted file mode 100644 index 97367bfd8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_02_D.png deleted file mode 100644 index caba05615..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_03_D.png deleted file mode 100644 index 4616ee6d6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Blood_Goop_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoatWake_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoatWake_D.png deleted file mode 100644 index fce4f1b46..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoatWake_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilBubble_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilBubble_D.png deleted file mode 100644 index 039a88959..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilBubble_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_D.png deleted file mode 100644 index 28e3c5d63..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Edge_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Edge_D.png deleted file mode 100644 index 76aa99be1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Edge_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Small_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Small_D.png deleted file mode 100644 index 1887d6bec..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BoilingRipples_Small_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BubPop_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BubPop_D.png deleted file mode 100644 index 008abf1ee..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_BubPop_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_D.png deleted file mode 100644 index e5ceabca4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_E.png deleted file mode 100644 index d485c452c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Burnt_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Greenlayer_Rocks_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Greenlayer_Rocks_D.png deleted file mode 100644 index 9f2a6e6ae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Greenlayer_Rocks_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Grey1024_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Grey1024_D.png deleted file mode 100644 index 708b5bb0e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlideAlpha_Grey1024_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_D.png deleted file mode 100644 index c20a812d1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_MRO.png deleted file mode 100644 index 77caa192c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_N.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_N.png deleted file mode 100644 index ba7659c75..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_A_HalfRes_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_B_Alpha_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_B_Alpha_D.png deleted file mode 100644 index b114cf645..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ButtSlide_B_Alpha_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CandleFlame_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CandleFlame_E.png deleted file mode 100644 index 0b8eff06a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CandleFlame_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CellCloudNoise_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CellCloudNoise_D.png deleted file mode 100644 index 01449c8f4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CellCloudNoise_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_01_D.png deleted file mode 100644 index db8f1d110..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_02_D.png deleted file mode 100644 index e303cf844..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Char_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ChromaticDot_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ChromaticDot_D.png deleted file mode 100644 index 8164471fa..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ChromaticDot_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_D.png deleted file mode 100644 index 8a38aed90..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_Thick_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_Thick_D.png deleted file mode 100644 index a8a97e41e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cloud_Thick_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_A_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_A_D.png deleted file mode 100644 index d8fd07ac7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_B_D.png deleted file mode 100644 index edbe30508..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Collectible_Ore_B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CottonFilling2x2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CottonFilling2x2_D.png deleted file mode 100644 index 50ebeb571..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CottonFilling2x2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks01_D.png deleted file mode 100644 index 89c6d6770..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_BPF_D.png deleted file mode 100644 index 45369fce0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_D.png deleted file mode 100644 index a5c652371..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cracks04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CracksE_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CracksE_D.png deleted file mode 100644 index afd7ee376..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_CracksE_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Diff_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Diff_D.png deleted file mode 100644 index 45c74cac2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Diff_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Emiss_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Emiss_D.png deleted file mode 100644 index b4a33538e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Crucio_Decal_Emiss_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_BPF_D.png deleted file mode 100644 index 8cf9ad6e0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inner_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inner_D.png deleted file mode 100644 index 9281dcb5f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inner_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inverted_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inverted_BPF_D.png deleted file mode 100644 index 3f4d3b584..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Inverted_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Outer_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Outer_D.png deleted file mode 100644 index 56e26d62d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Cursed_X_Outer_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Debris_Stones2x2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Debris_Stones2x2_D.png deleted file mode 100644 index d02795432..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Debris_Stones2x2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DementorTatter_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DementorTatter_D.png deleted file mode 100644 index f68e211e9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DementorTatter_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ash_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ash_D.png deleted file mode 100644 index c4065d8d2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ash_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_RibbonFlakes_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_RibbonFlakes_D.png deleted file mode 100644 index cb971e822..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_RibbonFlakes_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_Fade_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_Fade_D.png deleted file mode 100644 index 14c15763b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_Fade_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_pack_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_pack_D.png deleted file mode 100644 index 72cbe28fb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dementor_Ribbon_pack_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DirtThrownB_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DirtThrownB_D.png deleted file mode 100644 index 88ae7ad17..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DirtThrownB_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Disillusionment_FootStepA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Disillusionment_FootStepA_D.png deleted file mode 100644 index 8e5627fd2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Disillusionment_FootStepA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Drops_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Drops_D.png deleted file mode 100644 index 3c511c977..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Drops_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dust4x2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dust4x2_D.png deleted file mode 100644 index 78ad2dedc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dust4x2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DustMote_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DustMote_D.png deleted file mode 100644 index 4250612a2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_DustMote_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dustmotes_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dustmotes_D.png deleted file mode 100644 index f469b61f5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Dustmotes_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_D.png deleted file mode 100644 index a881aacf8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MRO.png deleted file mode 100644 index b5aa84395..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MSK.png deleted file mode 100644 index 56c73dfd4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Edurus_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Eropio_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Eropio_D.png deleted file mode 100644 index 0d555de1a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Eropio_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FX_Flash_Star_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FX_Flash_Star_D.png deleted file mode 100644 index 70db9f52c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FX_Flash_Star_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FirePlasma_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FirePlasma_D.png deleted file mode 100644 index 9f6eeb035..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FirePlasma_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireScroll_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireScroll_D.png deleted file mode 100644 index 170576102..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireScroll_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireTile_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireTile_03_D.png deleted file mode 100644 index a4bb9907a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireTile_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireWisps_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireWisps_01_D.png deleted file mode 100644 index 0c43d2fb9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireWisps_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireballGeo_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireballGeo_E.png deleted file mode 100644 index d59118e21..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FireballGeo_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Firework_Burst_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Firework_Burst_D.png deleted file mode 100644 index 672855a1e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Firework_Burst_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_D.png deleted file mode 100644 index 55f5e818d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_E.png deleted file mode 100644 index 8f488ef8e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Lg_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Lg_D.png deleted file mode 100644 index f19cbe499..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Lg_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Sm_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Sm_E.png deleted file mode 100644 index 8c9b0b7ba..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameBasic_Sm_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskA_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskA_MSK.png deleted file mode 100644 index 2c6bc7094..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskA_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskM_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskM_MSK.png deleted file mode 100644 index 51089cf9f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameMaskM_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_01_D.png deleted file mode 100644 index 6279966ae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_02_D.png deleted file mode 100644 index 2aabb2091..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlamePro_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTileGrey_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTileGrey_D.png deleted file mode 100644 index 50c96fd3e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTileGrey_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTile_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTile_D.png deleted file mode 100644 index 508d3361c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlameTile_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flames8x4_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flames8x4_03_D.png deleted file mode 100644 index 495481543..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flames8x4_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare01_D.png deleted file mode 100644 index 5206a8cf0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare02_D.png deleted file mode 100644 index ee6e59723..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare03_D.png deleted file mode 100644 index 4e5e2ffe5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare04_D.png deleted file mode 100644 index 6b57763a4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical02_D.png deleted file mode 100644 index 78b19ec10..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_D.png deleted file mode 100644 index c4b4ea5ff..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_Wide_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_Wide_D.png deleted file mode 100644 index fcbffbf4f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareVertical_Wide_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareWisp_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareWisp_D.png deleted file mode 100644 index 04ee88fa2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlareWisp_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Anamorphic_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Anamorphic_D.png deleted file mode 100644 index 57986f948..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Anamorphic_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Blue02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Blue02_D.png deleted file mode 100644 index d6b6a5e76..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Blue02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresPacked_Rings02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresPacked_Rings02_D.png deleted file mode 100644 index cf96d6b83..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresPacked_Rings02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresRoundPacked_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresRoundPacked_D.png deleted file mode 100644 index a957c5a8f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlaresRoundPacked_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark2_D.png deleted file mode 100644 index 4405ed14f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark_Emiss2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark_Emiss2_D.png deleted file mode 100644 index f37610fbb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flippendo_ScorchMark_Emiss2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyFB_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyFB_D.png deleted file mode 100644 index cdfceee11..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_FlyFB_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_D.png deleted file mode 100644 index 8e2261aef..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_NoColor_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_NoColor_D.png deleted file mode 100644 index 204bd1625..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Skynight_NoColor_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_2_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_2_MSK.png deleted file mode 100644 index 618213dc9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_2_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_MSK.png deleted file mode 100644 index b6890b748..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GH_Skydome_Stars_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowBugBody_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowBugBody_D.png deleted file mode 100644 index 14b09c69d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowBugBody_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowRoundFlare_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowRoundFlare_D.png deleted file mode 100644 index 65e2d3806..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GlowRoundFlare_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GradientThinTop_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GradientThinTop_01_D.png deleted file mode 100644 index 69bdabc8f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_GradientThinTop_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ground_ClumpySnow_2k_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ground_ClumpySnow_2k_D.png deleted file mode 100644 index 7ee7bd1bf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ground_ClumpySnow_2k_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_D.png deleted file mode 100644 index 5032ccfa2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_mask_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_mask_D.png deleted file mode 100644 index 7f006644d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceB_mask_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceDecal_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceDecal_D.png deleted file mode 100644 index 432578286..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_IceDecal_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ice_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ice_D.png deleted file mode 100644 index ff0288aa7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ice_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Infiltrator_Coin_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Infiltrator_Coin_E.png deleted file mode 100644 index f6a1b13f9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Infiltrator_Coin_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkBlastA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkBlastA_D.png deleted file mode 100644 index 0250558e0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkBlastA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkLines_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkLines_D.png deleted file mode 100644 index 1b35d2eae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkLines_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkSmoky_Tiled_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkSmoky_Tiled_D.png deleted file mode 100644 index 1b2bc954d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_InkSmoky_Tiled_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_01_D.png deleted file mode 100644 index f4385f97d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_02_D.png deleted file mode 100644 index 1a2790b9e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_03_D.png deleted file mode 100644 index 17445e91a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ink_Wisp_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Inky_Smoke_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Inky_Smoke_D.png deleted file mode 100644 index 163c9baae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Inky_Smoke_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Center_Halo_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Center_Halo_D.png deleted file mode 100644 index 50374fee8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Center_Halo_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Outer_Flakes_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Outer_Flakes_D.png deleted file mode 100644 index 63a6e05a5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlair_Outer_Flakes_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex02_D.png deleted file mode 100644 index 019821f26..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex_D.png deleted file mode 100644 index c95396776..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Bokeh_Hex_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Shafts_Vertical_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Shafts_Vertical_D.png deleted file mode 100644 index 6a887f0ae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LensFlare_Shafts_Vertical_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_D.png deleted file mode 100644 index 4f90a129e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_E.png deleted file mode 100644 index 18372e962..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LightningCenter_Pack_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_2_D.png deleted file mode 100644 index b66460d8d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_3_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_3_D.png deleted file mode 100644 index 963b398b9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_3_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_D.png deleted file mode 100644 index b43aef0b1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Pack_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Tiled_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Tiled_D.png deleted file mode 100644 index 7de1ab3bf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Lightning_Tiled_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_02_D.png deleted file mode 100644 index 7f2c0d4b3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_03_D.png deleted file mode 100644 index f0bad0c3f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_LoomThread_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Magic_Web_White_wisp_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Magic_Web_White_wisp_D.png deleted file mode 100644 index 949e4fee4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Magic_Web_White_wisp_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Mud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Mud_D.png deleted file mode 100644 index 92eb8123c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Mud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NebulaCloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NebulaCloud_D.png deleted file mode 100644 index 3f2a7197e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NebulaCloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Nebula_6_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Nebula_6_D.png deleted file mode 100644 index dbdc6d0a4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Nebula_6_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NoiseBlast01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NoiseBlast01_D.png deleted file mode 100644 index 977d08964..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_NoiseBlast01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Noise_Anisotropic2_height_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Noise_Anisotropic2_height_D.png deleted file mode 100644 index 4d96d12b4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Noise_Anisotropic2_height_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Packed_BPF_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Packed_BPF_01_D.png deleted file mode 100644 index 4d23ceba9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Packed_BPF_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ParselTongue_SnakeLock_emiss_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ParselTongue_SnakeLock_emiss_D.png deleted file mode 100644 index 74b699783..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ParselTongue_SnakeLock_emiss_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_Cracks_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_Cracks_BPF_D.png deleted file mode 100644 index c08abda0c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_Cracks_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_AO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_AO.png deleted file mode 100644 index 74dabdcd0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_AO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_BPF_D.png deleted file mode 100644 index b9c67a697..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_M.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_M.png deleted file mode 100644 index a627c7e0e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_M.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_R.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_R.png deleted file mode 100644 index f0ff2bd38..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Petrificus_SkinFX_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_PranksterShoes_FootStep_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_PranksterShoes_FootStep_D.png deleted file mode 100644 index ab0f8a7db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_PranksterShoes_FootStep_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainCoverage_Drops_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainCoverage_Drops_D.png deleted file mode 100644 index 9dbbe3304..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainCoverage_Drops_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainDroplets_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainDroplets_D.png deleted file mode 100644 index be114d688..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RainDroplets_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays2_D.png deleted file mode 100644 index cc6eafcf9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays3_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays3_D.png deleted file mode 100644 index 6f9dff381..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays3_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RaysA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RaysA_D.png deleted file mode 100644 index ade82265f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RaysA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays_D.png deleted file mode 100644 index 846e0f58d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Rays_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_04_D.png deleted file mode 100644 index 7306395bc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_07_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_07_D.png deleted file mode 100644 index d92bd8ade..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_07_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09SmoothEdge_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09SmoothEdge_D.png deleted file mode 100644 index 3a7b3ad81..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09SmoothEdge_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09_D.png deleted file mode 100644 index 0150c88c7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_09_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_10_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_10_D.png deleted file mode 100644 index 4de6c43e8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Repairo_Wisp_10_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring01_D.png deleted file mode 100644 index 78eb5b92c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring02_D.png deleted file mode 100644 index ab723d4af..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Ring02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_02_D.png deleted file mode 100644 index 5a35ab371..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_D.png deleted file mode 100644 index 4ae15eb06..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_Pulse_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_Pulse_D.png deleted file mode 100644 index 1a326adb3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RingFlare_Pulse_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RockDebrisSheet_01_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RockDebrisSheet_01_DA.png deleted file mode 100644 index 7fe8159f6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RockDebrisSheet_01_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_DA.png deleted file mode 100644 index 5934a8e0f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_MRO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_MRO.png deleted file mode 100644 index c1b69a6cb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_RocksSheet_01_MRO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorErosion_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorErosion_D.png deleted file mode 100644 index d792d31e0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorErosion_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorRoht_Erosion_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorRoht_Erosion_D.png deleted file mode 100644 index 5d41d25f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorRoht_Erosion_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorWoodRoht_Erosion_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorWoodRoht_Erosion_D.png deleted file mode 100644 index df23f0b51..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SancDoorWoodRoht_Erosion_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01_D.png deleted file mode 100644 index ff8b00b21..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01b_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01b_D.png deleted file mode 100644 index f0ecea14c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_01b_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02_D.png deleted file mode 100644 index 1784e55be..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02b_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02b_D.png deleted file mode 100644 index 8a1adf1a4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02b_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02d_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02d_D.png deleted file mode 100644 index 5b2b59c19..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_02d_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_03d_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_03d_D.png deleted file mode 100644 index 37a0c76f7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_03d_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Emiss_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Emiss_D.png deleted file mode 100644 index 4ddddcc13..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Emiss_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Shape_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Shape_D.png deleted file mode 100644 index 9b65396ee..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScorchMark_FootPrint_Shape_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7E_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7E_D.png deleted file mode 100644 index 7e45fae15..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7E_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_Char_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_Char_D.png deleted file mode 100644 index bd4938081..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_Char_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_D.png deleted file mode 100644 index 18c2d5793..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Scortch_Mark_7_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Danger_Ink_04_I.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Danger_Ink_04_I.png deleted file mode 100644 index c57f4d127..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Danger_Ink_04_I.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Death_Ink_02_I.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Death_Ink_02_I.png deleted file mode 100644 index cded565dd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Screen_Death_Ink_02_I.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_A_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_A_D.png deleted file mode 100644 index 94e1833cf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_B_D.png deleted file mode 100644 index e38597004..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ScrollingTatters_B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_BPF_D.png deleted file mode 100644 index f4776b59b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_D.png deleted file mode 100644 index 4e2ee3247..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SkinBurn_Emiss_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Slash_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Slash_D.png deleted file mode 100644 index 9dd0f9232..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Slash_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokeBall_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokeBall_D.png deleted file mode 100644 index b4710bfab..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokeBall_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_D.png deleted file mode 100644 index f11a2dce7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Dust_Base_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Dust_Base_01_D.png deleted file mode 100644 index a502b0218..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Dust_Base_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Tiled_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Tiled_01_D.png deleted file mode 100644 index 4b65e1936..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Smoke_Tiled_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokyCaustic_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokyCaustic_D.png deleted file mode 100644 index 919f21346..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SmokyCaustic_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_D.png deleted file mode 100644 index 234c0c1fb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_Heavy_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_Heavy_D.png deleted file mode 100644 index 344682d89..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SnowFlakeTile_Heavy_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Snow_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Snow_D.png deleted file mode 100644 index cb79cb043..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Snow_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_03_D.png deleted file mode 100644 index 7e59e9e8f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_04_D.png deleted file mode 100644 index f75e64685..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_05_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_05_D.png deleted file mode 100644 index 434aa1246..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SoftWisp_05_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Soft_Energy_Trail_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Soft_Energy_Trail_D.png deleted file mode 100644 index bc0898d92..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Soft_Energy_Trail_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Solid_Drop_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Solid_Drop_D.png deleted file mode 100644 index 35bd21abf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Solid_Drop_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpaceNebula_A_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpaceNebula_A_D.png deleted file mode 100644 index 7ad80cc1b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpaceNebula_A_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparkLong_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparkLong_D.png deleted file mode 100644 index 66457a7c7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparkLong_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spark_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spark_01_D.png deleted file mode 100644 index 4dca4a1c9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spark_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksLong_FB_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksLong_FB_E.png deleted file mode 100644 index 5a36d9a7d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksLong_FB_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksShort_05_FB_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksShort_05_FB_E.png deleted file mode 100644 index e76df6b86..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksShort_05_FB_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksSmall_FB_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksSmall_FB_E.png deleted file mode 100644 index 082c3576c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SparksSmall_FB_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speck_HighCoverage_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speck_HighCoverage_D.png deleted file mode 100644 index a68fde350..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speck_HighCoverage_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speckled_tile_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speckled_tile_D.png deleted file mode 100644 index f58608120..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Speckled_tile_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpiderWeb_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpiderWeb_D.png deleted file mode 100644 index cc75e2048..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SpiderWeb_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Por_Web_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Por_Web_D.png deleted file mode 100644 index 32fa0d793..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Por_Web_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Pro_Web_MROH.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Pro_Web_MROH.png deleted file mode 100644 index ed9782f36..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Spider_Pro_Web_MROH.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_01_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_01_DA.png deleted file mode 100644 index 5a3d8b4be..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_01_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_02_DA.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_02_DA.png deleted file mode 100644 index c3ad54fd0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SplashLoop_02_DA.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo2_D.png deleted file mode 100644 index d19d45719..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo_D.png deleted file mode 100644 index b029e5813..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splash_Goo_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splatter_Decals_3_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splatter_Decals_3_D.png deleted file mode 100644 index c79b8555e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Splatter_Decals_3_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Streaks_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Streaks_01_D.png deleted file mode 100644 index cd45ba0ea..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Streaks_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Stupify_WispDesaturated_010_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Stupify_WispDesaturated_010_D.png deleted file mode 100644 index c1a811093..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Stupify_WispDesaturated_010_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SwipeGradientWispy_RGB_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SwipeGradientWispy_RGB_D.png deleted file mode 100644 index a794a75e4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_SwipeGradientWispy_RGB_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ThinArc_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ThinArc_D.png deleted file mode 100644 index a9cf2df2e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_ThinArc_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WarpedRing_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WarpedRing_D.png deleted file mode 100644 index 087d8382e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WarpedRing_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterCloud_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterCloud_D.png deleted file mode 100644 index a5527e4f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterCloud_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecalMask_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecalMask_01_D.png deleted file mode 100644 index 0239a43b9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecalMask_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecal_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecal_01_D.png deleted file mode 100644 index 94a8938c1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterDecal_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterSurfaceFlow_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterSurfaceFlow_01_D.png deleted file mode 100644 index 2ee7d0fda..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WaterSurfaceFlow_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Water_J2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Water_J2_D.png deleted file mode 100644 index c9bb298db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Water_J2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Waterfall2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Waterfall2_D.png deleted file mode 100644 index 8081ea035..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Waterfall2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispLine_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispLine_D.png deleted file mode 100644 index 5f1f3f9c0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispLine_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispyCausticA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispyCausticA_D.png deleted file mode 100644 index 19bdcce1b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WhispyCausticA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Whispy_Boff_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Whispy_Boff_D.png deleted file mode 100644 index 546930380..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Whispy_Boff_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_White_RingAdd_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_White_RingAdd_D.png deleted file mode 100644 index 494035520..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_White_RingAdd_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WindNoise_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WindNoise_D.png deleted file mode 100644 index 5a8c46e4e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_WindNoise_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisp_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisp_01_D.png deleted file mode 100644 index 906488280..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisp_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_2_D.png deleted file mode 100644 index 8724c5cf6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_D.png deleted file mode 100644 index 77c4f1793..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wisps_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wispy_Band_White_HardEdge_Down_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wispy_Band_White_HardEdge_Down_D.png deleted file mode 100644 index b38ea510f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Wispy_Band_White_HardEdge_Down_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_goo_bubbles_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_goo_bubbles_D.png deleted file mode 100644 index 9698ead4e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_goo_bubbles_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_maskCircle_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_maskCircle_D.png deleted file mode 100644 index b03c979e5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_maskCircle_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_mud_drop_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_mud_drop_D.png deleted file mode 100644 index 7798bd26a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_mud_drop_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke2_D.png deleted file mode 100644 index 223d9d930..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeCloud_Dal_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeCloud_Dal_BPF_D.png deleted file mode 100644 index 014be3b50..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeCloud_Dal_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeWater_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeWater_D.png deleted file mode 100644 index 7ebf6ce29..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smokeWater_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke_kai_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke_kai_D.png deleted file mode 100644 index cf14ba55a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_smoke_kai_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_FX_Distort_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_FX_Distort_D.png deleted file mode 100644 index a5615b7c3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_FX_Distort_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_A.png deleted file mode 100644 index f8c49a76a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_MSK.png deleted file mode 100644 index 1173630f1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_NoiseTiled_1_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_Noise_Perlin_01_N.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_Noise_Perlin_01_N.png deleted file mode 100644 index 4fd8f0997..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/T_Noise_Perlin_01_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AdditiveWarp_FM.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AdditiveWarp_FM.png deleted file mode 100644 index 9164b1df0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AdditiveWarp_FM.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AsphaltCracks_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AsphaltCracks_D.png deleted file mode 100644 index b40f026a5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_AsphaltCracks_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_BubbleMask_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_BubbleMask_D.png deleted file mode 100644 index 57d795136..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_BubbleMask_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CausticsTile_Grey_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CausticsTile_Grey_D.png deleted file mode 100644 index 48e3af1b9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CausticsTile_Grey_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_ChromaticCellNoise_Color_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_ChromaticCellNoise_Color_D.png deleted file mode 100644 index 0c1cfa844..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_ChromaticCellNoise_Color_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Mask_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Mask_D.png deleted file mode 100644 index dd24dd201..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Mask_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_AO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_AO.png deleted file mode 100644 index ea78887be..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_AO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_D.png deleted file mode 100644 index c3ddc5fb7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_MSK.png deleted file mode 100644 index 021efbd97..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_Noise_Tile_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_A.png deleted file mode 100644 index 8e934c296..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_Dark_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_Dark_A.png deleted file mode 100644 index 9cb57a597..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftNoise_Dark_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_D.png deleted file mode 100644 index deaf776c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_MSK.png deleted file mode 100644 index deaf776c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_Chroma_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_D.png deleted file mode 100644 index 06febac4c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Cloud_SoftWisps_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CloudyPack_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CloudyPack_D.png deleted file mode 100644 index 1b891a2f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CloudyPack_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CnA_Fire3_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CnA_Fire3_D.png deleted file mode 100644 index 646e3796d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_CnA_Fire3_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Dots_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Dots_E.png deleted file mode 100644 index 937dad696..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Dots_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Firepan_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Firepan_D.png deleted file mode 100644 index 45829b188..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Firepan_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_FlameNoise_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_FlameNoise_E.png deleted file mode 100644 index 0a4fead90..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_FlameNoise_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_E.png deleted file mode 100644 index 89bf6687a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_MSK.png deleted file mode 100644 index 89bf6687a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LensFlare_DirtMask02_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LiquidSplatter_Tiling_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LiquidSplatter_Tiling_D.png deleted file mode 100644 index 636f3e4b8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LiquidSplatter_Tiling_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LowFreq_ChromaNoise_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LowFreq_ChromaNoise_D.png deleted file mode 100644 index a3918b033..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_LowFreq_ChromaNoise_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_BPF_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_BPF_D.png deleted file mode 100644 index 0838bbb16..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_BPF_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_D.png deleted file mode 100644 index 002498e30..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_MarbleSkin_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01B_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01B_D.png deleted file mode 100644 index 37db5a9d3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01B_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G2_D.png deleted file mode 100644 index d25519ff8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G_D.png deleted file mode 100644 index 72d4e4188..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01G_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R2_D.png deleted file mode 100644 index c85c4c1c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R_D.png deleted file mode 100644 index 88b3c2643..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Marble_01R_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise01_D.png deleted file mode 100644 index f764866a2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise02_D.png deleted file mode 100644 index 13f9d29d7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise03_D.png deleted file mode 100644 index 8b104b8ff..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_AO.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_AO.png deleted file mode 100644 index 5f9571708..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_AO.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_D.png deleted file mode 100644 index 379cdeb1a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise05_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise05_D.png deleted file mode 100644 index 5410ae7cf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise05_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise06_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise06_D.png deleted file mode 100644 index b88343f9b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise06_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise07_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise07_D.png deleted file mode 100644 index 9543b7e71..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise07_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise08_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise08_D.png deleted file mode 100644 index 8a31ee349..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise08_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_D.png deleted file mode 100644 index 4733bf90f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_N.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_N.png deleted file mode 100644 index 57b5f280c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise09_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise10_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise10_D.png deleted file mode 100644 index d6f6f95f0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise10_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise11_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise11_D.png deleted file mode 100644 index e3039a5c6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise11_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise12_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise12_D.png deleted file mode 100644 index 48f967cdc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise12_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_Color_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_Color_D.png deleted file mode 100644 index 680240891..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_Color_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_D.png deleted file mode 100644 index 6334b95c6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_Color_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_Color_D.png deleted file mode 100644 index 35e40e184..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_Color_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_D.png deleted file mode 100644 index d92ffc1de..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03_D.png deleted file mode 100644 index 515d02b41..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03b_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03b_D.png deleted file mode 100644 index 8b86854c1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics03b_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics04_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics04_D.png deleted file mode 100644 index 3a15c40de..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics04_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics_Chromatic_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics_Chromatic_D.png deleted file mode 100644 index 0217e212b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseCaustics_Chromatic_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack01_D.png deleted file mode 100644 index 3b35fdf35..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack02_D.png deleted file mode 100644 index 71b01b291..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack03_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack03_D.png deleted file mode 100644 index 5c3dae82e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseGreypack03_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_1_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_1_D.png deleted file mode 100644 index 134d5e3b4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_1_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_2_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_2_D.png deleted file mode 100644 index fffb46d61..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseTiled_2_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVeins01Tiled_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVeins01Tiled_D.png deleted file mode 100644 index cc1cb9713..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVeins01Tiled_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVertical_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVertical_D.png deleted file mode 100644 index 7fdbda83a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_NoiseVertical_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption02_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption02_E.png deleted file mode 100644 index 548e9e1e4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption02_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_CorruptionDesaturated_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_CorruptionDesaturated_E.png deleted file mode 100644 index 453db34ab..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_CorruptionDesaturated_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption_E.png deleted file mode 100644 index 785d8b573..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Corruption_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_LowFreq_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_LowFreq_E.png deleted file mode 100644 index 956412d46..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_LowFreq_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Low_Packed_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Low_Packed_D.png deleted file mode 100644 index 2a4aed0a0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Low_Packed_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Plasma_Seamless_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Plasma_Seamless_D.png deleted file mode 100644 index d95377e7c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Plasma_Seamless_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_D.png deleted file mode 100644 index 8edf39322..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_LinearRGBA_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_LinearRGBA_D.png deleted file mode 100644 index bbd8761e9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_LinearRGBA_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_MSK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_MSK.png deleted file mode 100644 index 1d3cd72a8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Soft_MSK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Vector_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Vector_D.png deleted file mode 100644 index c362fae33..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Vector_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Whips_Packed_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Whips_Packed_D.png deleted file mode 100644 index ac9cf39c4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Noise_Whips_Packed_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_PlasmaSpell_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_PlasmaSpell_D.png deleted file mode 100644 index 341120b9e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_PlasmaSpell_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_RGB_3DNoiseRough_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_RGB_3DNoiseRough_D.png deleted file mode 100644 index b2f2459d2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_RGB_3DNoiseRough_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SnowMacroNoise01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SnowMacroNoise01_D.png deleted file mode 100644 index 81d516f5c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SnowMacroNoise01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SparkleNoise_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SparkleNoise_01_D.png deleted file mode 100644 index 46b4d2c29..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SparkleNoise_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_01_D.png deleted file mode 100644 index 2503666d1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_02_D.png deleted file mode 100644 index 39988ab1c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SplotchNoise_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_01_D.png deleted file mode 100644 index 5c48d0621..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_Chroma_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_Chroma_D.png deleted file mode 100644 index 3bf5712f6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_Chroma_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_D.png deleted file mode 100644 index 82e63d25c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_SwirlNoise_05_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TankMoteNoiseVinceTest_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TankMoteNoiseVinceTest_D.png deleted file mode 100644 index 3d1ce79cc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TankMoteNoiseVinceTest_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_01_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_01_D.png deleted file mode 100644 index 293eddb09..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_01_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_02_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_02_D.png deleted file mode 100644 index ebe96a8f7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_TiledNoise_02_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Voronoi_Cells_19_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Voronoi_Cells_19_D.png deleted file mode 100644 index f0cbcd7a9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_Voronoi_Cells_19_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WhispyCaustic_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WhispyCaustic_D.png deleted file mode 100644 index b78acbbd6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WhispyCaustic_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WispyNoise_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WispyNoise_D.png deleted file mode 100644 index fb8737de5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_WispyNoise_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise138_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise138_D.png deleted file mode 100644 index e10da8bf9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise138_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise140_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise140_D.png deleted file mode 100644 index 5145a0f86..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise140_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise44_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise44_D.png deleted file mode 100644 index a68ff2279..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise44_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise5_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise5_D.png deleted file mode 100644 index 53dce627f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise5_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise6_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise6_D.png deleted file mode 100644 index 3c138e0d8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noise6_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noisetile_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noisetile_D.png deleted file mode 100644 index 75fba0215..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_noisetile_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_pc_calypsolightclouds_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_pc_calypsolightclouds_D.png deleted file mode 100644 index 988be54e3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Noises/VFX_T_pc_calypsolightclouds_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Test/VFX_T_Noise08_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Test/VFX_T_Noise08_D.png deleted file mode 100644 index 7c1ae0e40..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Test/VFX_T_Noise08_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_0.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_0.png deleted file mode 100644 index 305e052f0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_0.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_1.png deleted file mode 100644 index c071cbdf7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_2.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_2.png deleted file mode 100644 index c1a0cb9de..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_2.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_3.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_3.png deleted file mode 100644 index c367675c1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_3.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_4.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_4.png deleted file mode 100644 index 4fbc9d801..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_4.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_5.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_5.png deleted file mode 100644 index 0ee235101..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_5.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_6.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_6.png deleted file mode 100644 index 5789148ca..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_6.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_7.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_7.png deleted file mode 100644 index f472a4159..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_7.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_8.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_8.png deleted file mode 100644 index 60ab386b6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_8.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_9.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_9.png deleted file mode 100644 index aa9fb8e18..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_9.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_A.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_A.png deleted file mode 100644 index 469c9c486..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt.png deleted file mode 100644 index c57e4c1f6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_L.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_L.png deleted file mode 100644 index 4c8c2ef9a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_L.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_R.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_R.png deleted file mode 100644 index c57473f75..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Alt_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_B.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_B.png deleted file mode 100644 index 11cff9696..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_B.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Backspace.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Backspace.png deleted file mode 100644 index 1c7574030..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Backspace.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_C.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_C.png deleted file mode 100644 index e7ddca263..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_C.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control.png deleted file mode 100644 index 6dceace52..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_L.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_L.png deleted file mode 100644 index 6d9f8ee5c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_L.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_R.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_R.png deleted file mode 100644 index d9138ef5f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Control_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_D.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_D.png deleted file mode 100644 index cd4f5acb3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_E.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_E.png deleted file mode 100644 index a8ab21dfc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Enter.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Enter.png deleted file mode 100644 index 6be4e6bae..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Enter.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Esc.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Esc.png deleted file mode 100644 index 656348a89..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Esc.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F.png deleted file mode 100644 index 6dd64fe76..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F1.png deleted file mode 100644 index abc4511f9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F10.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F10.png deleted file mode 100644 index 2809f6939..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F10.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F11.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F11.png deleted file mode 100644 index 22e7139cb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F11.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F12.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F12.png deleted file mode 100644 index 583aea4d6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F12.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F2.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F2.png deleted file mode 100644 index 9d92761f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F2.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F3.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F3.png deleted file mode 100644 index cb0bd6abe..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F3.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F4.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F4.png deleted file mode 100644 index e541065ce..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F4.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F5.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F5.png deleted file mode 100644 index e0fa3e4ba..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F5.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F6.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F6.png deleted file mode 100644 index b76c9c0ac..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F6.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F7.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F7.png deleted file mode 100644 index 79ebc9ec6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F7.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F8.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F8.png deleted file mode 100644 index 346a1b525..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F8.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F9.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F9.png deleted file mode 100644 index d08c1321c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_F9.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_G.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_G.png deleted file mode 100644 index 75207f7d6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_G.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_H.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_H.png deleted file mode 100644 index a49dfe78f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_H.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_I.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_I.png deleted file mode 100644 index b05b733e4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_I.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_J.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_J.png deleted file mode 100644 index f5da4556d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_J.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_K.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_K.png deleted file mode 100644 index 3891e4c47..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_K.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_L.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_L.png deleted file mode 100644 index 2fbb9b04d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_L.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Left.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Left.png deleted file mode 100644 index 1d0beaa75..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Left.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_M.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_M.png deleted file mode 100644 index e889e6250..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_M.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_N.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_N.png deleted file mode 100644 index dfc6db30c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_O.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_O.png deleted file mode 100644 index be98fca22..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_O.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_P.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_P.png deleted file mode 100644 index eea392902..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_P.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Q.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Q.png deleted file mode 100644 index 963813ba0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Q.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_R.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_R.png deleted file mode 100644 index 29b4c96e1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Right.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Right.png deleted file mode 100644 index 296b051f8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Right.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_RightShift.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_RightShift.png deleted file mode 100644 index d419517d3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_RightShift.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_S.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_S.png deleted file mode 100644 index 47a62daa4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_S.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift.png deleted file mode 100644 index 740dfa9fc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_L.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_L.png deleted file mode 100644 index 005260fde..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_L.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_R.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_R.png deleted file mode 100644 index 097cc6e78..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Shift_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Space.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Space.png deleted file mode 100644 index fa60c6d9a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Space.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_T.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_T.png deleted file mode 100644 index 6b34eb61b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_T.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Tab.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Tab.png deleted file mode 100644 index 9e7391a58..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Tab.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_U.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_U.png deleted file mode 100644 index 4bc7ecf7a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_U.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Up.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Up.png deleted file mode 100644 index a80909ada..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Up.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_V.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_V.png deleted file mode 100644 index 1cbda7ed2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_V.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_W.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_W.png deleted file mode 100644 index 450c1da14..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_W.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_X.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_X.png deleted file mode 100644 index f453b99ef..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_X.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Y.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Y.png deleted file mode 100644 index 7f2544579..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Y.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Z.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Z.png deleted file mode 100644 index b0a8e4bb2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Keyboard_Z.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse.png deleted file mode 100644 index f4e9beeac..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_LeftClick.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_LeftClick.png deleted file mode 100644 index 9b898e103..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_LeftClick.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_RightClick.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_RightClick.png deleted file mode 100644 index 0158ec8b8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_RightClick.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel.png deleted file mode 100644 index 945ca32c9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Down.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Down.png deleted file mode 100644 index fd908b3f3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Down.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Up.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Up.png deleted file mode 100644 index 7c637f9a5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Keyboard/Mouse_Wheel_Up.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget.png deleted file mode 100644 index fde088756..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget_Flame.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget_Flame.png deleted file mode 100644 index 794239c02..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/LoadingWidget_Flame.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient.png deleted file mode 100644 index 5fa62efda..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient_Flame.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient_Flame.png deleted file mode 100644 index bf948379f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Loading/UI_T_LoadingGradient_Flame.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png deleted file mode 100644 index b21ab1dd0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/HUD_MiniMap_TrimBorder.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Blank.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Blank.png deleted file mode 100644 index 6690e6c1f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Blank.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down.png deleted file mode 100644 index 14ef3e294..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down2.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down2.png deleted file mode 100644 index 6da3bc2f6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down2.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down3.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down3.png deleted file mode 100644 index e71ba362d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Down3.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up.png deleted file mode 100644 index a21527fe1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up2.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up2.png deleted file mode 100644 index 1dead4dea..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up2.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up3.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up3.png deleted file mode 100644 index 86a2f7802..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrowNew_Up3.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Down.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Down.png deleted file mode 100644 index fea53ef4a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Down.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Up.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Up.png deleted file mode 100644 index 442e59293..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_ElevationArrow_Up.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_ActionGroup_ActiveBlip.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_ActionGroup_ActiveBlip.png deleted file mode 100644 index 7684ff087..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_ActionGroup_ActiveBlip.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_FinisherFill_BG.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_FinisherFill_BG.png deleted file mode 100644 index 46e5c6d9e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_FinisherFill_BG.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_HealthMeterFill.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_HealthMeterFill.png deleted file mode 100644 index aad5f9fbd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_HealthMeterFill.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_Fade.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_Fade.png deleted file mode 100644 index 59408b0fa..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_Fade.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_PlayerBlip.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_PlayerBlip.png deleted file mode 100644 index 23779c8d5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_MiniMap_PlayerBlip.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_OwlMail.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_OwlMail.png deleted file mode 100644 index 189e31a4a..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_HUD_OwlMail.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapCompanion.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapCompanion.png deleted file mode 100644 index 7bfd3c136..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapCompanion.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapSmoke.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapSmoke.png deleted file mode 100644 index 013284a56..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMapSmoke.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Aasim.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Aasim.png deleted file mode 100644 index 371feb2a4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Aasim.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ActiveMission_Area_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ActiveMission_Area_Outline.png deleted file mode 100644 index c251ebad5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ActiveMission_Area_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AmbientConvo.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AmbientConvo.png deleted file mode 100644 index 550a68334..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AmbientConvo.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AncientMagic.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AncientMagic.png deleted file mode 100644 index 5362b6c82..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AncientMagic.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission.png deleted file mode 100644 index dd99aa7be..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission_Outline.png deleted file mode 100644 index c57118de4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Assignment_Mission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AstronomyAltar.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AstronomyAltar.png deleted file mode 100644 index f8ca7d4ee..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AstronomyAltar.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AuthorityFigure.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AuthorityFigure.png deleted file mode 100644 index 31602e443..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_AuthorityFigure.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Balloon.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Balloon.png deleted file mode 100644 index 71f745703..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Balloon.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp.png deleted file mode 100644 index 952760c4f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCampLarge.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCampLarge.png deleted file mode 100644 index f50b9306c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCampLarge.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg.png deleted file mode 100644 index f50b9306c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg_Completed.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg_Completed.png deleted file mode 100644 index 9ab48875f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Lrg_Completed.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med.png deleted file mode 100644 index c7cc404c8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med_Completed.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med_Completed.png deleted file mode 100644 index 715dfc83f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Med_Completed.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml.png deleted file mode 100644 index 952760c4f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml_Completed.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml_Completed.png deleted file mode 100644 index 86e47ecd4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCamp_Sml_Completed.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCastle.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCastle.png deleted file mode 100644 index 3ffeb6776..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BanditCastle.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BeastDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BeastDen.png deleted file mode 100644 index 9e53f9ebd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BeastDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck.png deleted file mode 100644 index 73fdcca1b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck_Outline.png deleted file mode 100644 index 73fdcca1b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroodPeck_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform.png deleted file mode 100644 index b882130d7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform_Replay.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform_Replay.png deleted file mode 100644 index 734654e5f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomPlatform_Replay.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomRace.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomRace.png deleted file mode 100644 index 5a48de7b3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_BroomRace.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Butterflies.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Butterflies.png deleted file mode 100644 index 84e2ec7b0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Butterflies.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CastleDungeon.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CastleDungeon.png deleted file mode 100644 index caf1b3343..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CastleDungeon.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge.png deleted file mode 100644 index 864397c56..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts.png deleted file mode 100644 index 864397c56..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts_Completed.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts_Completed.png deleted file mode 100644 index d3ac3dd8b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallengeDarkArts_Completed.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge_Completed.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge_Completed.png deleted file mode 100644 index d3ac3dd8b..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_CombatChallenge_Completed.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Fig.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Fig.png deleted file mode 100644 index b585e3ade..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Fig.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Goblin.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Goblin.png deleted file mode 100644 index 413e81764..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Goblin.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Seb.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Seb.png deleted file mode 100644 index 2c13282a1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Conversation_Seb.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DemiguiseStatue.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DemiguiseStatue.png deleted file mode 100644 index 1083b9a14..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DemiguiseStatue.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DivinationClass.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DivinationClass.png deleted file mode 100644 index a3d66f709..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DivinationClass.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap.png deleted file mode 100644 index 0701fbbfb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap_Outline.png deleted file mode 100644 index 0701fbbfb..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DogweedDeathcap_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DugbogDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DugbogDen.png deleted file mode 100644 index d94069fd3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_DugbogDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Dungeon.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Dungeon.png deleted file mode 100644 index caf1b3343..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Dungeon.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Enemy.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Enemy.png deleted file mode 100644 index 8f6266469..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Enemy.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FOL.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FOL.png deleted file mode 100644 index d13b4af3c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FOL.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FastTravelHamlet.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FastTravelHamlet.png deleted file mode 100644 index 992739688..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_FastTravelHamlet.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces.png deleted file mode 100644 index 184d2734d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces_Outline.png deleted file mode 100644 index 184d2734d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Fireplaces_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear.png deleted file mode 100644 index 84cce2ed4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear_Outline.png deleted file mode 100644 index 84cce2ed4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Gladrags_Wizardwear_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Goblin.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Goblin.png deleted file mode 100644 index 7e22e1e7d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Goblin.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HS.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HS.png deleted file mode 100644 index f1370ee31..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HS.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hamlet.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hamlet.png deleted file mode 100644 index 97a9ed1ff..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hamlet.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HedgeMaze.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HedgeMaze.png deleted file mode 100644 index 6e2a029e2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HedgeMaze.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsHead.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsHead.png deleted file mode 100644 index 9d3e7a5e9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsHead.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogsmeade.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogsmeade.png deleted file mode 100644 index 394b99b88..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogsmeade.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI.png deleted file mode 100644 index ffdc48cea..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI_Outline.png deleted file mode 100644 index ffdc48cea..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HogsmeadePOI_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogwarts.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogwarts.png deleted file mode 100644 index ae5b26e7f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Hogwarts.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HolidayMission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HolidayMission.png deleted file mode 100644 index 57d1dae78..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_HolidayMission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_InferiDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_InferiDen.png deleted file mode 100644 index d94069fd3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_InferiDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LockBadge.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LockBadge.png deleted file mode 100644 index c14e17b87..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LockBadge.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Locked_BG.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Locked_BG.png deleted file mode 100644 index fce494a25..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Locked_BG.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LostPage.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LostPage.png deleted file mode 100644 index f4f97bd4c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_LostPage.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings.png deleted file mode 100644 index 2ea73bfd2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings_Outline.png deleted file mode 100644 index 2ea73bfd2..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MadameSnellings_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep.png deleted file mode 100644 index 168f91c2c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep_Outline.png deleted file mode 100644 index 168f91c2c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Magic_Neep_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission.png deleted file mode 100644 index 3063d31d9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission_Outline.png deleted file mode 100644 index 358735a1c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_MainMission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Main_Mission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Main_Mission_Outline.png deleted file mode 100644 index f942141db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Main_Mission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemy.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemy.png deleted file mode 100644 index 534cc5922..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemy.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemyLocation.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemyLocation.png deleted file mode 100644 index 75ccdf928..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_NamedEnemyLocation.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Natty.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Natty.png deleted file mode 100644 index bcf43564e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Natty.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands.png deleted file mode 100644 index 3d813c4c5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands_Outline.png deleted file mode 100644 index 3d813c4c5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Ollivanders_Wands_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline1.png deleted file mode 100644 index 23a1b7c43..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline2.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline2.png deleted file mode 100644 index bc12bc9fd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline2.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline3.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline3.png deleted file mode 100644 index 9b763de9e..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline3.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline4.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline4.png deleted file mode 100644 index 97eb231d8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline4.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline5.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline5.png deleted file mode 100644 index 44be387e6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline5.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline6.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline6.png deleted file mode 100644 index a1ca2a983..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline6.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline7.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline7.png deleted file mode 100644 index 953c04e37..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline7.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline8.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline8.png deleted file mode 100644 index 0d764bfd7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline8.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline9.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline9.png deleted file mode 100644 index fc1673c2f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Outline9.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions.png deleted file mode 100644 index ebd106982..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions_Outline.png deleted file mode 100644 index ebd106982..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PippinsPotions_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop.png deleted file mode 100644 index 89241d0bd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop_Outline.png deleted file mode 100644 index 89241d0bd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_PlayersShop_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceGate.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceGate.png deleted file mode 100644 index 9ca690129..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceGate.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceMarker.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceMarker.png deleted file mode 100644 index 2b0ce2296..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RaceMarker.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RelationshipConversation.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RelationshipConversation.png deleted file mode 100644 index ac11ee738..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_RelationshipConversation.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission.png deleted file mode 100644 index 357d8d7f4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission_outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission_outline.png deleted file mode 100644 index 2601b0ff8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Relationship_Mission_outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SNC.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SNC.png deleted file mode 100644 index 180b3e187..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SNC.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SanctuaryMission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SanctuaryMission.png deleted file mode 100644 index ee7039bb4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SanctuaryMission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission.png deleted file mode 100644 index 30a0f96f6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission_Outline.png deleted file mode 100644 index 5485cbc74..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SideMission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Side_Mission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Side_Mission_Outline.png deleted file mode 100644 index 36e152c36..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Side_Mission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpeechBubble.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpeechBubble.png deleted file mode 100644 index b3428b9d6..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpeechBubble.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SphinxPuzzle.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SphinxPuzzle.png deleted file mode 100644 index 49691d89c..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SphinxPuzzle.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpiderDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpiderDen.png deleted file mode 100644 index be5dc0f8f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SpiderDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms.png deleted file mode 100644 index f040683b4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms_Outline.png deleted file mode 100644 index f040683b4..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Spintwitches_Brooms_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SubRegions.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SubRegions.png deleted file mode 100644 index f2f50a181..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_SubRegions.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TV.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TV.png deleted file mode 100644 index 4d8e54f0d..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TV.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls.png deleted file mode 100644 index 4f7dbf593..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls_Outline.png deleted file mode 100644 index 4f7dbf593..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TomesScrolls_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Track.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Track.png deleted file mode 100644 index 24632c8b7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Track.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureChest.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureChest.png deleted file mode 100644 index a1e653498..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureChest.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureVault.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureVault.png deleted file mode 100644 index 6278e5fcd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TreasureVault.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TrollDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TrollDen.png deleted file mode 100644 index d94069fd3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_TrollDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor.png deleted file mode 100644 index 7679333f8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_Outline.png deleted file mode 100644 index 7679333f8..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_PlayersShop_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_PlayersShop_Outline.png deleted file mode 100644 index 89241d0bd..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Vendor_PlayersShop_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint.png deleted file mode 100644 index 564787d53..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint_Outline.png deleted file mode 100644 index 06ee6b154..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_Waypoint_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_WolvesDen.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_WolvesDen.png deleted file mode 100644 index d94069fd3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_WolvesDen.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPB.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPB.png deleted file mode 100644 index 94b9b5eee..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPB.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPK.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPK.png deleted file mode 100644 index 5dd00c8e7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZPK.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZZH_01.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZZH_01.png deleted file mode 100644 index 7956f89ba..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_MiniMap_ZZH_01.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Active_Mission_Outline.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Active_Mission_Outline.png deleted file mode 100644 index 06ee6b154..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Active_Mission_Outline.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Both.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Both.png deleted file mode 100644 index 38e08c3bf..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Both.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Left.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Left.png deleted file mode 100644 index 01eb53ec5..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Left.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Right.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Right.png deleted file mode 100644 index 070ca1037..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Footprint_Right.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Active.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Active.png deleted file mode 100644 index 564787d53..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Active.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Background.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Background.png deleted file mode 100644 index a9444c7db..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Mission_Background.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Tent.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Tent.png deleted file mode 100644 index 80120c445..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_Tent.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_TrackedMission_Background.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_TrackedMission_Background.png deleted file mode 100644 index fc0e91d35..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/MiniMap/UI_T_Minimap_TrackedMission_Background.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_0.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_0.png deleted file mode 100644 index 05f315701..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_0.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_1.png deleted file mode 100644 index ead83b078..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/ActiveMission_Icon_1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Finishi_Rect.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Finishi_Rect.png deleted file mode 100644 index 684b05ee1..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Finishi_Rect.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Border.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Border.png deleted file mode 100644 index ac93bf6ff..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Border.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Key.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Key.png deleted file mode 100644 index 583b556af..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/MissionBanner_Key.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_0.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_0.png deleted file mode 100644 index 17c513120..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_0.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_1.png deleted file mode 100644 index 34190d6b3..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/Mission_Icon_1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_CheckBox.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_CheckBox.png deleted file mode 100644 index b6f1111e9..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_CheckBox.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png deleted file mode 100644 index 3cc37dc13..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_TUT_BasicMobilityl.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_TUT_BasicMobilityl.png deleted file mode 100644 index b384de4cc..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_TUT_BasicMobilityl.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_check_gradientBack.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_check_gradientBack.png deleted file mode 100644 index 32f721e44..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Mission/UI_T_check_gradientBack.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_MagicEffect1.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_MagicEffect1.png deleted file mode 100644 index 000ac780f..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_MagicEffect1.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellDiamond_Red.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellDiamond_Red.png deleted file mode 100644 index 5aa3294e7..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellDiamond_Red.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeBack_Yellow.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeBack_Yellow.png deleted file mode 100644 index 47a1bfa83..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeBack_Yellow.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeDiamond_Forceful.png b/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeDiamond_Forceful.png deleted file mode 100644 index 4a6d2eef0..000000000 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/UI_T_SpellTypeDiamond_Forceful.png and /dev/null differ diff --git a/Jusin154_Team3D/Client/Default/Client.aps b/Jusin154_Team3D/Client/Default/Client.aps new file mode 100644 index 000000000..c2afa22ef Binary files /dev/null and b/Jusin154_Team3D/Client/Default/Client.aps differ diff --git a/Jusin154_Team3D/Client/Default/Client.cpp b/Jusin154_Team3D/Client/Default/Client.cpp index 1b01ea2c4..0dfea5d85 100644 --- a/Jusin154_Team3D/Client/Default/Client.cpp +++ b/Jusin154_Team3D/Client/Default/Client.cpp @@ -11,7 +11,7 @@ HWND g_hWnd; WCHAR szTitle[MAX_LOADSTRING]; WCHAR szWindowClass[MAX_LOADSTRING]; -// 이 코드 모듈에 포함된 함수의 선언을 전달합니다: + ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj index 2a688741c..d58737076 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj @@ -29,7 +29,7 @@ Application true - v145 + v143 Unicode @@ -110,7 +110,7 @@ Level3 true - EDITOR_PROJECT;_DEBUG;_WINDOWS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + _DEBUG;_WINDOWS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) true stdcpp17 ../Public/;../../EngineSDK/Inc/;../../EngineSDK/Inc/DirectXTK/;../../EngineSDK/Inc/fMod/;../../EngineSDK/Inc/IMGUI/;../../EngineSDK/Inc/FX11/;%(AdditionalIncludeDirectories) @@ -123,7 +123,7 @@ Windows true ../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories) - Engine.lib;fmod_vc.lib;%(AdditionalDependencies) + Engine.lib;fmod_vc.lib;DirectXTKd.lib;%(AdditionalDependencies) @@ -136,7 +136,7 @@ true true true - EDITOR_PROJECT;NDEBUG;_WINDOWS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) + NDEBUG;_WINDOWS;%(PreprocessorDefinitions);%(PreprocessorDefinitions) true stdcpp17 ../Public/;../../EngineSDK/Inc/;../../EngineSDK/Inc/DirectXTK/;../../EngineSDK/Inc/fMod/;../../EngineSDK/Inc/IMGUI/;../../EngineSDK/Inc/FX11/;%(AdditionalIncludeDirectories) @@ -157,29 +157,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create Create + + + + + + + + + + + diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters index 264f91f6e..7c95db6e1 100644 --- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters +++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters @@ -37,6 +37,132 @@ 01.Levels\02.GamePlay + + 03.InfoInstance + + + 01.Levels\10.Field + + + 01.Levels\99.Restart + + + 02.GameObjects\Cameras\Debug + + + 02.GameObjects\Environment\Lights\Main + + + 03.InfoInstance\00.PlayerInfo + + + 03.InfoInstance\01.MonsterInfo + + + 03.InfoInstance\02.MapInfo + + + 02.GameObjects\Player + + + 02.GameObjects\Item\Wand + + + 02.GameObjects\Cameras\CameraPosition\Arm + + + 02.GameObjects\Cameras\CameraPosition + + + 02.GameObjects\SkyBox + + + 02.GameObjects\Item\Broom + + + 02.GameObjects\PhysX + + + 02.GameObjects\PhysX + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 04.Mechanic\State + + + 04.Mechanic\State\State_Combat + + + 04.Mechanic\State\Focus\Dodge + + + 04.Mechanic\State\Focus\Jump + + + 04.Mechanic\State\Focus\Land + + + 04.Mechanic\State\Movement\Idle + + + 04.Mechanic\State\Movement\Move + + + 02.GameObjects\Effect\Effect_Container + + + 02.GameObjects\Effect\EffectParts + + + 02.GameObjects\Effect\EffectObject + + + 02.GameObjects\Effect\TrailObject + + + 02.GameObjects\Effect\Effects\Bombard + + + 02.GameObjects\Effect\Effects\NomalJap + + + 02.GameObjects\PhysX\EffectHitBox + + + 02.GameObjects\Cameras\CameraPosition\Socket + + + 02.GameObjects\Cameras\CameraPosition\Player\Target + + + 02.GameObjects\Cameras\CameraPosition\Player\Shoulder + + + 02.GameObjects\Cameras\Camera_Gaze + + + 02.GameObjects\Monster\Goblin + + + 02.GameObjects\Monster + @@ -74,9 +200,6 @@ {27434478-691e-42a8-83c7-ecd1a60f46ce} - - {cdfbb346-6cae-4094-93cd-b82685efa68e} - {7efd65d5-eb4d-4331-a746-f0fa2de6275b} @@ -98,6 +221,186 @@ {a7d0a3fa-b3dc-40c6-b258-ffcde49b05c1} + + {b5bef783-5315-4488-ac64-cb98d16a84a9} + + + {31681680-d5de-43c9-bc2d-2c91ca58a593} + + + {1bfec6dc-f008-4d18-87d6-be38824b1272} + + + {c5b61cb3-bc5f-4429-8715-b309dcf054b2} + + + {2b209526-b728-4fba-a184-b9224d72903a} + + + {e12b3048-dd6d-41bf-b346-e4abdaa4f215} + + + {74f21f9b-30bf-412e-ba4e-526958ab2a52} + + + {8d89a59c-fbd2-4a4a-ab01-a70abb80cc49} + + + {b24c78ef-dccc-41f0-a086-053ae6b7fbf4} + + + {603938cc-e4fe-44d8-890b-784174a86161} + + + {b72a9bb0-1b21-416b-bd0c-ba943cd7cc9d} + + + {2814c935-13d9-4b9a-94ba-c9e470219a18} + + + {19ee2ea4-2d79-46bd-b857-c759e3ec6cf4} + + + {2561df42-3dfa-4045-a30c-85f44cd65e09} + + + {25ad4a41-5b06-4659-bd29-c0c4265a3277} + + + {5a667a7b-6c90-44f6-9c9f-aac3108b6561} + + + {cdfbb346-6cae-4094-93cd-b82685efa68e} + + + {1cfdfc05-0b0d-4c58-8c2d-58090efea4fd} + + + {621b87a7-54b8-4d90-84b2-fa8cd26cc396} + + + {413e6692-6e4a-4b00-8306-edf652bd876a} + + + {c152f9ff-2525-4b4b-938c-5818f8d65a40} + + + {b819d017-f55f-4e1d-9c09-127a00b7ff57} + + + {7f5280a9-3955-40ab-bde5-ef52acc0512f} + + + {4791d5ef-35cd-494d-8c39-bcca14488323} + + + {9d92d05f-697c-4437-a44a-b82e54255bcc} + + + {f19404dc-7bc1-4d89-9c4a-72959db5a701} + + + {f7f22fc0-0e66-4e6e-a60a-0c612d58d802} + + + {f0da95a0-107f-42ff-9e77-3503bb48aa12} + + + {e83f88ec-c414-43b4-b437-52288cee431a} + + + {ddf8c8e6-ca51-42e0-b08f-13ae0fd9d842} + + + {5fd99d60-e641-4229-9a72-8f5d7744c6b0} + + + {ad7a67bd-df18-4c03-85eb-960881922128} + + + {dc05dfc9-22e5-4a2a-b016-c55b215c0c68} + + + {0834c76d-83d8-4ef5-9d19-7277686d28c5} + + + {017fc692-bac0-4635-843c-02fb59009f5b} + + + {349939a0-8b9a-4a1a-8f0a-ca5014cd4e18} + + + {5fa1e5a9-acd8-499d-90ee-9cf17441b3a5} + + + {41d2e34e-5280-4b3c-961e-064484f1449d} + + + {1034dd61-dd17-456a-990b-628c45f74b51} + + + {2999d0c5-81e4-44d6-99b3-4801e6f84dd7} + + + {0a3f9629-27d1-411c-806e-b550af8f1ca1} + + + {23fc95c4-0db3-4569-bd37-4d9bc32938ba} + + + {a88b2e75-92f7-4bed-b12a-76fb8763f533} + + + {482050d0-23dc-4744-b0db-0673a84f40e7} + + + {129abdf3-e499-467e-aca8-917e66827890} + + + {b3077955-b37e-41f8-bb7a-7b1483fcecdc} + + + {6fc43376-8b17-4888-b347-9beef7bee2ba} + + + {3a613328-d01e-43e5-a095-9a6912cb3cf0} + + + {639cba10-a93e-465c-a921-4541fe317446} + + + {54169d8d-f771-4638-a71e-3aca3eeff9bb} + + + {1f9c16e8-b675-419f-b166-b79662407259} + + + {708bbc88-47fb-42c5-b060-14cec7d646f2} + + + {2e4f0394-e25c-4508-937a-7e73d005ae5f} + + + {470c4db5-b306-4fb8-8338-0a99ac77ac89} + + + {3572e19c-c7cc-4c7a-add0-2012b81b3935} + + + {9cc88058-bda3-4ed0-9ec9-1968963fdda4} + + + {aac01a47-304a-4319-8bd8-fdd9020ddf18} + + + {b719d948-fce3-4144-9d2c-edcab4cfceaf} + + + {d371e373-e343-4e0b-9a0c-34eae167c1cd} + + + {1ff3d6f1-f31d-47b7-84b7-d23efe98d7d2} + @@ -121,6 +424,138 @@ 01.Levels\02.GamePlay + + 03.InfoInstance + + + 01.Levels\10.Field + + + 01.Levels\99.Restart + + + 02.GameObjects\Cameras\Debug + + + 02.GameObjects\Environment\Lights\Main + + + 03.InfoInstance\00.PlayerInfo + + + 03.InfoInstance\01.MonsterInfo + + + 03.InfoInstance\02.MapInfo + + + 02.GameObjects\Player + + + 02.GameObjects\Item\Wand + + + 02.GameObjects\Cameras\CameraPosition\Arm + + + 02.GameObjects\Cameras\CameraPosition + + + 02.GameObjects\SkyBox + + + 02.GameObjects\Item\Broom + + + 02.GameObjects\PhysX + + + 02.GameObjects\PhysX + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\Behavior + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 02.GameObjects\PhysX\CallBack\HitReport + + + 04.Mechanic\State + + + 04.Mechanic\State\State_Combat + + + 04.Mechanic\State\Focus\Dodge + + + 04.Mechanic\State\Focus\Jump + + + 04.Mechanic\State\Focus\Land + + + 04.Mechanic\State\Movement\Idle + + + 04.Mechanic\State\Movement\Move + + + 02.GameObjects\Effect\Effect_Container + + + 02.GameObjects\Effect\EffectParts + + + 02.GameObjects\Effect\EffectObject + + + 02.GameObjects\Effect\TrailObject + + + 02.GameObjects\Effect\Effects\Bombard + + + 02.GameObjects\Effect\Effects\NomalJap + + + 02.GameObjects\PhysX\EffectHitBox + + + 02.GameObjects\Cameras\CameraPosition\Socket + + + 02.GameObjects\Cameras\CameraPosition\Player\Target + + + 02.GameObjects\Cameras\CameraPosition\Player\Shoulder + + + 02.GameObjects\Player + + + 02.GameObjects\Cameras\Camera_Gaze + + + 02.GameObjects\Monster\Goblin + + + 02.GameObjects\Monster\Goblin + + + 02.GameObjects\Monster + diff --git a/Jusin154_Team3D/Client/Private/Bombard.cpp b/Jusin154_Team3D/Client/Private/Bombard.cpp new file mode 100644 index 000000000..c30992e55 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Bombard.cpp @@ -0,0 +1,201 @@ +#include "pch.h" +#include "Bombard.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "PhysXEffectHitBox.h" + + +CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CBombard::CBombard(const CBombard& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CBombard::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CBombard::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Bombard/"))) + return E_FAIL; + + + m_wstrEffectName = L"Bombard"; + + CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt"); + m_pLight_Projectile = Get_PartObject("Bombard_Projectile"); + CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0"); + + pShootPt->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + pCircle0->Set_Visible(true); + pShootPt->Set_Visible(true); + m_pLight_Projectile->Set_Visible(true); + + SAFE_ADDREF(m_pLight_Projectile); + m_fDuration = 2.5f; + + return S_OK; +} + +void CBombard::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CBombard::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + m_pLight_Projectile->Get_Component()->Translation(vOwnerLook * 2.f); +} + +void CBombard::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CBombard::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBombard::Ready_Child() +{ + CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{}; + + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + _float3 vDir = {}; + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + XMStoreFloat3(&vDir, vOwnerLook * 2.f); + + + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + Desc.iSubKind = 70; + Desc.vDeltaPos = vDir; + Desc.vLifeTime = { 0.f, 2.f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) { + assert(false); + return E_FAIL; + } + + return S_OK; +} + +CBombard* CBombard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBombard* pInstance = new CBombard(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBombard"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner) +{ + CBombard* pInstance = new CBombard(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBombard"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBombard::OnCollision(CGameObject* pOther , void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos); + } + + + m_pLight_Projectile->Set_Visible(false); + Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false); + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook); + + Get_PartObject("Bombard_Circle0")->Set_Visible(false); + + m_pPhysHitBox->Set_Dead(); +} + +void CBombard::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + + SAFE_RELEASE(m_pLight_Projectile); + +} +#ifdef _DEBUG + +void CBombard::Describe_Entity() +{ + +} +#endif // _DEBUG + +HRESULT CBombard::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/Broom.cpp b/Jusin154_Team3D/Client/Private/Broom.cpp new file mode 100644 index 000000000..0c2abc4e2 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Broom.cpp @@ -0,0 +1,166 @@ +#include "pch.h" +#include "Broom.h" + +#include "GameInstance.h" + +CBroom::CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CBroom::CBroom(const CBroom& Prototype) + : CGameObject(Prototype) +{ +} + +HRESULT CBroom::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CBroom::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + + if (FAILED(Ready_Components())) + return E_FAIL; + + m_pModelCom->Set_AnimationIndex(5); + + return S_OK; +} + +void CBroom::Priority_Update(_float fTimeDelta) +{ +} + +void CBroom::Update(_float fTimeDelta) +{ + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); +} + +void CBroom::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); +} + +HRESULT CBroom::Render() +{ + if (!m_pModelCom) + return S_OK; + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CBroom::Ready_Components() +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + __super::Ready_Components(&Desc); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Broom_Model"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CBroom::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +CBroom* CBroom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBroom* pInstance = new CBroom(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBroom"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CBroom::Clone(void* pArg, CGameObject* pOwner) +{ + CBroom* pInstance = new CBroom(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBroom"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBroom::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); + + +} +#ifdef _DEBUG + +void CBroom::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp new file mode 100644 index 000000000..140eb3454 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_Behavior.cpp @@ -0,0 +1,97 @@ +#include "pch.h" +#include "CallBack_EffectHitBox_Behavior.h" +#include "GameInstance.h" + + +CCallBack_EffectHitBox_Behavior::CCallBack_EffectHitBox_Behavior() +{ +} + +CCallBack_EffectHitBox_Behavior::~CCallBack_EffectHitBox_Behavior() +{ +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) +{ + if (nullptr == actor.userData) { + return PSX::PxControllerBehaviorFlags(0); + } + PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0); + PhsXUserData* pActorData = static_cast(actor.userData); + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (pActorData->iSubKind) + { + case 20: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE; + break; + case 21: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 22: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 23: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 24: + eResults = PSX::PxControllerBehaviorFlags(0); + break; + default: + break; + } + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + + return eResults; +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxController& controller) +{ + // CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴 + return PSX::PxControllerBehaviorFlags(0); +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle) +{ + // Obstacle이 움직이는 발판이다? + // 여기서 ride/slide 세팅 + //return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + + return PSX::PxControllerBehaviorFlags(0); +} + +HRESULT CCallBack_EffectHitBox_Behavior::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_EffectHitBox_Behavior::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_EffectHitBox_Behavior* CCallBack_EffectHitBox_Behavior::Create() +{ + return new CCallBack_EffectHitBox_Behavior(); +} diff --git a/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp new file mode 100644 index 000000000..f4d5a5677 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_EffectHitBox_HitReport.cpp @@ -0,0 +1,148 @@ +#include "pch.h" +#include "CallBack_EffectHitBox_HitReport.h" +#include "GameInstance.h" +#include "GameObject.h" + +CCallBack_EffectHitBox_HitReport::CCallBack_EffectHitBox_HitReport() +{ +} + +CCallBack_EffectHitBox_HitReport::~CCallBack_EffectHitBox_HitReport() +{ +} + +void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxShape* pShape = hit.shape; + PSX::PxRigidActor* pActor = hit.actor; + + + ON_COLLISION_INFO CollisionDesc = {}; + + if (nullptr != pController && nullptr != pActor) { + PhsXUserData* pTargetActorData = static_cast(pActor->userData); + PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData); + if (nullptr == pTargetActorData) { // missing user data + return; + } + + switch (pTargetActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + // action + break; + case PHYSX_KIND::BODY_DYNAMIC: + { + switch (pTargetActorData->iSubKind) + { + case 23: // 무거운데 올라갈 수 있는 벽 + + /* OnCollision 함수에 넘길 값 */ + + + CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f); + memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3)); + memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3)); + CollisionDesc.fLength = fLength; + + pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner , &CollisionDesc); + + break; + default: + { + PSX::PxRigidDynamic* pDynamic = static_cast(pActor); + pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE); + } + break; + } + } break; + case PHYSX_KIND::CCTActor: + assert(false); + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_EffectHitBox_HitReport::onControllerHit(const PSX::PxControllersHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러 + + if (nullptr != pController && nullptr != pOtherController) { + PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData); + assert(nullptr != pActorData); // missing user data + + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + assert(false); + break; + case PHYSX_KIND::BODY_DYNAMIC: + assert(false); + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_EffectHitBox_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + const void* pOtherController = hit.userData; // 장애물 + + //switch (pOtherController.member) + //{ + //default: + // break; + //} +} + +HRESULT CCallBack_EffectHitBox_HitReport::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_EffectHitBox_HitReport::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_EffectHitBox_HitReport* CCallBack_EffectHitBox_HitReport::Create() +{ + return new CCallBack_EffectHitBox_HitReport(); +} diff --git a/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp new file mode 100644 index 000000000..699647c82 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_Monster_Behavior.cpp @@ -0,0 +1,97 @@ +#include "pch.h" +#include "CallBack_Monster_Behavior.h" +#include "GameInstance.h" + + +CCallBack_Monster_Behavior::CCallBack_Monster_Behavior() +{ +} + +CCallBack_Monster_Behavior::~CCallBack_Monster_Behavior() +{ +} + +PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) +{ + if (nullptr == actor.userData) { + return PSX::PxControllerBehaviorFlags(0); + } + PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0); + PhsXUserData* pActorData = static_cast(actor.userData); + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (pActorData->iSubKind) + { + case 20: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE; + break; + case 21: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 22: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 23: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 24: + eResults = PSX::PxControllerBehaviorFlags(0); + break; + default: + break; + } + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + + return eResults; +} + +PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(const PSX::PxController& controller) +{ + // CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴 + return PSX::PxControllerBehaviorFlags(0); +} + +PSX::PxControllerBehaviorFlags CCallBack_Monster_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle) +{ + // Obstacle이 움직이는 발판이다? + // 여기서 ride/slide 세팅 + //return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + + return PSX::PxControllerBehaviorFlags(0); +} + +HRESULT CCallBack_Monster_Behavior::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_Monster_Behavior::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_Monster_Behavior* CCallBack_Monster_Behavior::Create() +{ + return new CCallBack_Monster_Behavior();; +} diff --git a/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp new file mode 100644 index 000000000..348ab72db --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_Monster_HitReport.cpp @@ -0,0 +1,136 @@ +#include "pch.h" +#include "CallBack_Monster_HitReport.h" +#include "GameInstance.h" +#include "Character_Controller.h" +#include "RigidBody_Dynamic.h" +#include "GameObject.h" + +CCallBack_Monster_HitReport::CCallBack_Monster_HitReport() +{ +} + +CCallBack_Monster_HitReport::~CCallBack_Monster_HitReport() +{ +} + +void CCallBack_Monster_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxShape* pShape = hit.shape; + PSX::PxRigidActor* pActor = hit.actor; + + if (nullptr != pController && nullptr != pActor) { + PhsXUserData* pTargetActorData = static_cast(pActor->userData); + PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData); + if (nullptr == pTargetActorData) { // missing user data + return; + } + + switch (pTargetActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + // action + break; + case PHYSX_KIND::BODY_DYNAMIC: + { + switch (pTargetActorData->iSubKind) + { + case 0: + m_pController->ConvertToDO(*m_pPartDynamicBody); + m_pPartDynamicBody->Add_Force(XMVectorSet(vDir.x, vDir.y, vDir.z, 0.f) * fLength * 100.f, PSX::PxForceMode::eIMPULSE); + break; + default: + { + } + break; + } + } break; + case PHYSX_KIND::CCTActor: + assert(false); + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_Monster_HitReport::onControllerHit(const PSX::PxControllersHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러 + + if (nullptr != pController && nullptr != pOtherController) { + PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData); + assert(nullptr != pActorData); // missing user data + + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + assert(false); + break; + case PHYSX_KIND::BODY_DYNAMIC: + assert(false); + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_Monster_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + const void* pOtherController = hit.userData; // 장애물 + + //switch (pOtherController.member) + //{ + //default: + // break; + //} +} + +HRESULT CCallBack_Monster_HitReport::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_Monster_HitReport::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_Monster_HitReport* CCallBack_Monster_HitReport::Create() +{ + return new CCallBack_Monster_HitReport(); +} diff --git a/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp b/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp new file mode 100644 index 000000000..b74143b2f --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_Playable_Behavior.cpp @@ -0,0 +1,97 @@ +#include "pch.h" +#include "CallBack_Playable_Behavior.h" +#include "GameInstance.h" + + +CCallBack_Playable_Behavior::CCallBack_Playable_Behavior() +{ +} + +CCallBack_Playable_Behavior::~CCallBack_Playable_Behavior() +{ +} + +PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) +{ + if (nullptr == actor.userData) { + return PSX::PxControllerBehaviorFlags(0); + } + PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0); + PhsXUserData* pActorData = static_cast(actor.userData); + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (pActorData->iSubKind) + { + case 20: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE; + break; + case 21: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 22: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 23: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 24: + eResults = PSX::PxControllerBehaviorFlags(0); + break; + default: + break; + } + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + + return eResults; +} + +PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxController& controller) +{ + // CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴 + return PSX::PxControllerBehaviorFlags(0); +} + +PSX::PxControllerBehaviorFlags CCallBack_Playable_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle) +{ + // Obstacle이 움직이는 발판이다? + // 여기서 ride/slide 세팅 + //return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + + return PSX::PxControllerBehaviorFlags(0); +} + +HRESULT CCallBack_Playable_Behavior::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_Playable_Behavior::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_Playable_Behavior* CCallBack_Playable_Behavior::Create() +{ + return new CCallBack_Playable_Behavior(); +} diff --git a/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp b/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp new file mode 100644 index 000000000..60808b2c7 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CallBack_Playable_HitReport.cpp @@ -0,0 +1,163 @@ +#include "pch.h" +#include "CallBack_Playable_HitReport.h" +#include "GameInstance.h" +#include "GameObject.h" + +CCallBack_Playable_HitReport::CCallBack_Playable_HitReport() +{ +} + +CCallBack_Playable_HitReport::~CCallBack_Playable_HitReport() +{ +} + +void CCallBack_Playable_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxShape* pShape = hit.shape; + PSX::PxRigidActor* pActor = hit.actor; + + if (nullptr != pController && nullptr != pActor) { + PhsXUserData* pTargetActorData = static_cast(pActor->userData); + PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData); + if (nullptr == pTargetActorData) { // missing user data + return; + } + + switch (pTargetActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + // action + break; + case PHYSX_KIND::BODY_DYNAMIC: + { + switch (pTargetActorData->iSubKind) + { + case 23: // 무거운데 올라갈 수 있는 벽 + if (m_pGameInstance->Key_Pressing(DIK_E)) { + pOwnerActorData->pOwner->Get_Component()->BookMomentum(fLength * XMVectorSet(0.f, 1.5f, 0.f, 0.f)); + } + else if (m_pGameInstance->Key_Pressing(DIK_R)) { + pOwnerActorData->pOwner->Get_Component()->BookMomentum(fLength * XMVectorSet(0.f, -1.f, 0.f, 0.f)); + } + //pOwnerActorData->pOwner->Get_Component()->BookMomentum(XMVectorSet(0.f, 0.5f * GRAVITY, 0.f, 0.f)); + break; + case 24: // 문짝 + { + PSX::PxRigidDynamic* pDynamic = static_cast(pActor); + _float fDot = vDir.dot(PSX::PxVec3(0.f, 1.f, 0.f)); + if (fDot > 0) { + pDynamic->addTorque(PSX::PxVec3(0.f, 1.f, 0.f) * fLength * 100000.f, PSX::PxForceMode::eIMPULSE); + } + else { + pDynamic->addTorque(PSX::PxVec3(0.f, -1.f, 0.f) * fLength * 100000.f, PSX::PxForceMode::eIMPULSE); + } + } break; + case 25: // 문짝 + { + PSX::PxRigidDynamic* pDynamic = static_cast(pActor); + _float fDot = vDir.dot(PSX::PxVec3(0.f, 1.f, 0.f)); + if (fDot > 0) { + pDynamic->addTorque(PSX::PxVec3(0.f, 1.f, 0.f) * fLength * 100000.f, PSX::PxForceMode::eFORCE); + } + else { + pDynamic->addTorque(PSX::PxVec3(0.f, -1.f, 0.f) * fLength * 100000.f, PSX::PxForceMode::eFORCE); + } + } break; + default: + { + PSX::PxRigidDynamic* pDynamic = static_cast(pActor); + pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE); + } + break; + } + } break; + case PHYSX_KIND::CCTActor: + assert(false); + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_Playable_HitReport::onControllerHit(const PSX::PxControllersHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러 + + if (nullptr != pController && nullptr != pOtherController) { + PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData); + assert(nullptr != pActorData); // missing user data + + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + assert(false); + break; + case PHYSX_KIND::BODY_DYNAMIC: + assert(false); + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_Playable_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + const void* pOtherController = hit.userData; // 장애물 + + //switch (pOtherController.member) + //{ + //default: + // break; + //} +} + +HRESULT CCallBack_Playable_HitReport::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_Playable_HitReport::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_Playable_HitReport* CCallBack_Playable_HitReport::Create() +{ + return new CCallBack_Playable_HitReport(); +} diff --git a/Jusin154_Team3D/Client/Private/CamPosition.cpp b/Jusin154_Team3D/Client/Private/CamPosition.cpp new file mode 100644 index 000000000..9fa462cb3 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CamPosition.cpp @@ -0,0 +1,52 @@ +#include "pch.h" + +#include "CamPosition.h" + + +CCamPosition::CCamPosition(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CPartObject(pDevice, pContext) +{ +} +CCamPosition::CCamPosition(const CCamPosition& rhs) + :CPartObject(rhs) +{ +} +HRESULT CCamPosition::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + return S_OK; +} +HRESULT CCamPosition::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + return S_OK; +} +void CCamPosition::Free() +{ + __super::Free(); +} + +HRESULT CCamPosition::Bind_ShaderResources() +{ + return E_NOTIMPL; +} + +CGameObject* CCamPosition::Clone(void* pArg, CGameObject* pOwner) +{ + return nullptr; +} +#ifdef _DEBUG + +void CCamPosition::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp new file mode 100644 index 000000000..91d591849 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CamPosition_Arm.cpp @@ -0,0 +1,108 @@ +#include "pch.h" +#include "CamPosition_Arm.h" +#include "GameInstance.h" + +CCamPosition_Arm::CCamPosition_Arm(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Arm::CCamPosition_Arm(const CCamPosition_Arm& rhs) + : CCamPosition(rhs) +{ +} +HRESULT CCamPosition_Arm::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCamPosition_Arm::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + CameraArm_DESC* pDesc = static_cast(pArg); + m_fMouseSensor = pDesc->fMouseSensor; + m_fDistance = pDesc->fDistance; + + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) + XMVectorSetW(XMLoadFloat3(&pDesc->fEye), 0.f)); + m_pTransformCom->LookAt(XMVectorSetW(XMLoadFloat3(&pDesc->fAt), 1.f)); + + return S_OK; +} + +void CCamPosition_Arm::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::LOOK, XMVector3Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f))); + m_pTransformCom->Rotation(XMConvertToRadians(60.f), XMConvertToRadians(m_fAccDegreeY), 0.f); + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) - XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)) * m_fDistance); +} + +void CCamPosition_Arm::Update(_float fTimeDelta) +{ + +} + +void CCamPosition_Arm::Late_Update(_float fTimeDelta) +{ +} + +HRESULT CCamPosition_Arm::Render() +{ + return S_OK; +} + +HRESULT CCamPosition_Arm::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC DescTransfrom = {}; + DescTransfrom.fRadius = 30.f; + DescTransfrom.fRotationPerSec = 0.f; + DescTransfrom.fSpeedPerSec = 0.f; + if (FAILED(__super::Ready_Components(&DescTransfrom))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CCamPosition_Arm::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Arm* CCamPosition_Arm::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Arm* pInstance = new CCamPosition_Arm(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Arm"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Arm* CCamPosition_Arm::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Arm* pInstance = new CCamPosition_Arm(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Arm"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Arm::Free() +{ + __super::Free(); +} +#ifdef _DEBUG + +void CCamPosition_Arm::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp new file mode 100644 index 000000000..001602dad --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CamPosition_Shoulder.cpp @@ -0,0 +1,234 @@ +#include "pch.h" +#include "CamPosition_Shoulder.h" +#include "CamPosition_Target.h" +#include "GameInstance.h" +#include "Camera_Gaze.h" + +CCamPosition_Shoulder::CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Shoulder::CCamPosition_Shoulder(const CCamPosition_Shoulder& rhs) + : CCamPosition(rhs) +{ +} +HRESULT CCamPosition_Shoulder::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition_Shoulder::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_SubParts())) { + return E_FAIL; + } + + CAMERA_SHOULDER_DESC* pDesc = static_cast(pArg); + { + m_fMouseSensor = pDesc->fMouseSensor; + m_vShoulderPosRatio = pDesc->vInitialLook; + m_fShoulderDistance = pDesc->fShoulderDistance; + m_vAccDegreeXY = { 0.f, 0.f }; + m_fCameraFocalLength = pDesc->fCameraFocalLength; + m_fBackFrontRatio = pDesc->fBackFrontRatio; + + m_vShoulderOtherRatio = m_vShoulderPosRatio = m_vShoulderStartRatio = pDesc->vInitialLook; + m_vShoulderStartRatio.x *= -1.f; + m_pTransformCom->Set_State(STATE::POSITION, + m_pParentTransformCom->Get_State(STATE::POSITION) + + XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio)) * m_fShoulderDistance); + + _vector vShoulderPos = Get_WorldPostion(); + _vector vCameraLook = XMVectorSet(0.f, 0.f, 1.f, 0.f); + _vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vCameraLook = XMVector3Normalize(XMVector3Rotate(vCameraLook, vRotCameraq)); + + CTransform* pLookTransform = m_pTarget_LookPart->Get_Component(); + CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component(); + + pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio)); + pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio))); + } + + return S_OK; +} + +void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta) +{ + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } + if (true == m_bMovable) { + m_vAccDegreeXY.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor; + m_vAccDegreeXY.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor; + CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccDegreeXY); + } + + _vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio)); + _vector vRotq = XMQuaternionRotationRollPitchYaw(0.f, XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vLook = XMVector3Normalize(XMVector3Rotate(vLook, vRotq)); + + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) + XMVector3Normalize(vLook) * m_fShoulderDistance); + _vector vShoulderPos = Get_WorldPostion(); + _vector vCameraLook = XMVectorSet(0.f, 0.f, 1.f, 0.f); + _vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vCameraLook = XMVector3Normalize(XMVector3Rotate(vCameraLook, vRotCameraq)); + + CTransform* pLookTransform = m_pTarget_LookPart->Get_Component(); + CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component(); + + pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio)); + pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio))); +} + +void CCamPosition_Shoulder::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Up(DIK_O)) { + m_pBinded_Camera->Toggle_Priority(); + } + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + + if (m_pGameInstance->Key_Up(DIK_GRAVE)) { + m_bMovable = !m_bMovable; + } + if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)) { + m_pGameInstance->Toggle_MouseCenter(); + } + if (m_pGameInstance->Key_Up(DIK_P)) { + m_vShoulderOtherRatio = m_vShoulderPosRatio = m_vShoulderStartRatio; + m_vShoulderStartRatio.x *= -1.f; + m_bLerp = true; + m_vLerpTimer.x = 0.f; + } +} + +void CCamPosition_Shoulder::Late_Update(_float fTimeDelta) +{ + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } + if (true == m_bLerp) { + m_vLerpTimer.x += fTimeDelta; + XMStoreFloat3(&m_vShoulderPosRatio, XMVectorLerp(XMLoadFloat3(&m_vShoulderStartRatio), XMLoadFloat3(&m_vShoulderOtherRatio), m_vLerpTimer.x / m_vLerpTimer.y)); + if (m_vLerpTimer.x > m_vLerpTimer.y) { + m_bLerp = false; + m_vLerpTimer.x = 0.f; + + m_vShoulderPosRatio = m_vShoulderOtherRatio; + } + } +} + +HRESULT CCamPosition_Shoulder::Render() +{ + return S_OK; +} + +_vector CCamPosition_Shoulder::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CCamPosition_Shoulder::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC DescTransfrom = {}; + DescTransfrom.fRadius = 30.f; + DescTransfrom.fRotationPerSec = 0.f; + DescTransfrom.fSpeedPerSec = 0.f; + if (FAILED(__super::Ready_Components(&DescTransfrom))) { + return E_FAIL; + } + return S_OK; +} +HRESULT CCamPosition_Shoulder::Ready_SubParts() +{ + { + CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{}; + Desc.pParentTransform = m_pTransformCom; + m_pTarget_LookPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pTarget_FollowPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + } + + CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{}; + CameraDesc.fFovy = XMConvertToRadians(60.0f); + CameraDesc.fNear = 0.1f; + CameraDesc.fFar = 300.f; + CameraDesc.fSpeedPerSec = 5.f; + CameraDesc.fRotationPerSec = XMConvertToRadians(90.f); + CameraDesc.pFollowTarget = m_pTarget_FollowPart; + CameraDesc.pLookTarget = m_pTarget_LookPart; + CameraDesc.iPriority = 51; + CameraDesc.pCameraKey = CAMERA_SHOULDER; + CameraDesc.bEnableTransitionLerp = true; + CameraDesc.bEnableFollowLerp = true; + CameraDesc.bEnableLookLerp = true; + CameraDesc.vTransitionTime = { 0.f, 1.f }; + CameraDesc.vFollowLerpTime = { 0.f, 0.16f }; + CameraDesc.vLookLerpTime = { 0.f, 0.16f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &CameraDesc, nullptr, &m_pBinded_Camera))) + { + return E_FAIL; + } + m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER); + + + return S_OK; +} +CCamPosition_Shoulder* CCamPosition_Shoulder::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Shoulder"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Shoulder* CCamPosition_Shoulder::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Shoulder"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Shoulder::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pTarget_LookPart); + SAFE_RELEASE(m_pTarget_FollowPart); +} +#ifdef _DEBUG + +void CCamPosition_Shoulder::Describe_Entity() +{ + GUI::Begin("Cam_Shoulder"); + m_pTransformCom->Describe_Entity(); + + GUI::Text("fMouseSensor : %.1f", m_fMouseSensor); + GUI::SliderFloat("ShoulderDistance", &m_fShoulderDistance, 0.f, 10.f, "%.1f"); + GUI::SliderFloat("BackFrontRatio", &m_fBackFrontRatio, 0.01f, 0.99f, "%.2f"); + GUI::Text("Pitch Yaw : %f %f", m_vAccDegreeXY.x, m_vAccDegreeXY.y); + GUI::SliderFloat3("ShoulderPosRatio", (_float*)&m_vShoulderPosRatio, -2.f, 2.f, "%.1f"); + GUI::End(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp new file mode 100644 index 000000000..14f9d07b9 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CamPosition_Socket.cpp @@ -0,0 +1,108 @@ +#include "pch.h" + +#include "CamPosition_Socket.h" + +CCamPosition_Socket::CCamPosition_Socket(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CCamPosition(pDevice, pContext) +{ +} + +CCamPosition_Socket::CCamPosition_Socket(const CCamPosition_Socket& rhs) + :CCamPosition(rhs) +{ +} + +void CCamPosition_Socket::Priority_Update(_float fTimeDelta) +{ + /*_matrix socketMatrix = {}; + + socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + }*/ + m_pTransformCom->Set_WorldMatrix(/*socketMatrix * */XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); +} + +void CCamPosition_Socket::Update(_float fTimeDelta) +{ +} + +void CCamPosition_Socket::Late_Update(_float fTimeDelta) +{ +} + +HRESULT CCamPosition_Socket::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCamPosition_Socket::Initialize(void* pArg) +{ + CAMERAPOSITION_PLAYER_DESC* pDesc = static_cast (pArg); + //m_pSocketMatrices = pDesc->pSocketMatrices; + if (FAILED(__super::Initialize(pArg))) + { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Socket::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Socket::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Socket* CCamPosition_Socket::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Socket* pInstance = new CCamPosition_Socket(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Socket"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CCamPosition_Socket* CCamPosition_Socket::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Socket* pInstance = new CCamPosition_Socket(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Socket"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCamPosition_Socket::Free() +{ + __super::Free(); +} +#ifdef _DEBUG + +void CCamPosition_Socket::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp new file mode 100644 index 000000000..66fae4a22 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp @@ -0,0 +1,98 @@ +#include "pch.h" + +#include "CamPosition_Target.h" + +CCamPosition_Target::CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs) + :CCamPosition(rhs) +{ +} + +void CCamPosition_Target::Priority_Update(_float fTimeDelta) +{ +} + +void CCamPosition_Target::Update(_float fTimeDelta) +{ +} + +void CCamPosition_Target::Late_Update(_float fTimeDelta) +{ +} + +_vector CCamPosition_Target::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CCamPosition_Target::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition_Target::Initialize(void* pArg) +{ + CAMERAPOSITION_TARGET_DESC* pDesc = static_cast (pArg); + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Target::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Target::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Target* CCamPosition_Target::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Target* pInstance = new CCamPosition_Target(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Target"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Target* CCamPosition_Target::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Target* pInstance = new CCamPosition_Target(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Target"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Target::Free() +{ + __super::Free(); +} +#ifdef _DEBUG + +void CCamPosition_Target::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp new file mode 100644 index 000000000..23496f7f4 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp @@ -0,0 +1,164 @@ +#include "pch.h" +#include "Camera_Debug.h" +#include "Shader.h" + +CCamera_Debug::CCamera_Debug(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamera(pDevice, pContext) +{ +} + +CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs) + : CCamera(rhs) +{ +} + +void CCamera_Debug::Priority_Update(_float fTimeDelta) +{ + m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false); +} + +void CCamera_Debug::Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } + Transition(fTimeDelta); + _float3 vCamPos = {}; + XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION)); + GUI::Text("Cam Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z); + if (m_pGameInstance->Key_Up(DIK_GRAVE)) { + m_bMovable = !m_bMovable; + } + if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)) { + m_pGameInstance->Toggle_MouseCenter(); + } + if (m_bMovable) { +#pragma region Position + _float fSpeed = 5.f; + if (m_pGameInstance->Key_Pressing(DIK_W)) { + m_pTransformCom->Go_Straight(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_A)) { + m_pTransformCom->Go_Left(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_S)) { + m_pTransformCom->Go_Backward(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_D)) { + m_pTransformCom->Go_Right(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_SPACE)) { + m_pTransformCom->Go_Up(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_C)) { + m_pTransformCom->Go_Down(fTimeDelta * fSpeed); + } + if (m_pGameInstance->Key_Pressing(DIK_TAB)) { + Set_InitialPos(); + } + +#pragma endregion +#pragma region Angle + + _float3 fMove = m_pGameInstance->Get_MouseMove(); + m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta * fMove.x * m_fMouseSensor); + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::RIGHT), fTimeDelta * fMove.y * m_fMouseSensor); + +#pragma endregion + + } + __super::Bind_Matrices(); +} + +void CCamera_Debug::Late_Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } +} + +HRESULT CCamera_Debug::Render() +{ + return S_OK; +} + +HRESULT CCamera_Debug::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCamera_Debug::Initialize(void* pArg) +{ + CAMERA_DEBUG_DESC* pDesc = static_cast(pArg); + m_fMouseSensor = pDesc->fMouseSensor; + + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vEye), 1.f)); + m_pTransformCom->LookAt(XMVectorSetW(XMLoadFloat3(&pDesc->vAt), 1.f)); + m_matInitial = *m_pTransformCom->Get_WorldMatrixPtr(); + m_bActive = true; + + return S_OK; +} + +HRESULT CCamera_Debug::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamera_Debug::Bind_ShaderResources() +{ + return S_OK; +} + +void CCamera_Debug::Set_InitialPos() +{ + m_pTransformCom->Set_WorldMatrix(m_matInitial); +} + +CCamera_Debug* CCamera_Debug::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamera_Debug* pInstance = new CCamera_Debug(pDevice, pContext); + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamera_Debug"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CCamera_Debug::Clone(void* pArg, CGameObject* pOwner) +{ + CCamera_Debug* pInstance = new CCamera_Debug(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamera_Debug"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCamera_Debug::Free() +{ + __super::Free(); +} +#ifdef _DEBUG + +void CCamera_Debug::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp new file mode 100644 index 000000000..03e703357 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Camera_Gaze.cpp @@ -0,0 +1,203 @@ +#include "pch.h" +#include "Camera_Gaze.h" + +CCamera_Gaze::CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamera(pDevice, pContext) +{ +} + +CCamera_Gaze::CCamera_Gaze(const CCamera_Gaze& rhs) + : CCamera(rhs) +{ +} + +void CCamera_Gaze::Priority_Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } + if (false == m_bIsCurrentTransition) { + if (m_bEnable_FollowLerp) { + _vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), m_vFollowLerpTime.x / m_vFollowLerpTime.y), 1.f); + m_pTransformCom->Set_State(STATE::POSITION, vNewPos); + } + else { + m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION)); + } + if (m_bEnable_LookLerp) { + _vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), m_vLookLerpTime.x / m_vLookLerpTime.y), 1.f); + m_pTransformCom->LookAt(vNewLook); + } + else { + m_pTransformCom->LookAt(m_pLookTarget->Get_Component()->Get_State(STATE::POSITION)); + } + } + else { + + } + m_bActive = true; + __super::Bind_Matrices(); +} + +void CCamera_Gaze::Update(_float fTimeDelta) +{ + GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority); + if (false == m_bActive) { + return; + } + Transition(fTimeDelta); + Update_LerpTimer(fTimeDelta); +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + +} + +void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } + if (true == m_bEnable_LookLerp) { + m_vLookLerpTime.x += fTimeDelta; + if (m_vLookLerpTime.y <= m_vLookLerpTime.x) { + m_vLookLerpTime.x = 0.f; + XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest)); + XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion()); + } + } + + if (true == m_bEnable_FollowLerp) { + m_vFollowLerpTime.x += fTimeDelta; + if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) { + m_vFollowLerpTime.x = 0.f; + XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION)); + XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion()); + } + } +} + +void CCamera_Gaze::Enable_FollowLerp() +{ + m_bEnable_FollowLerp = true; + m_vFollowLerpTime.x = 0.f; + XMStoreFloat3(&m_vFollowPos_Src, m_pFollowTarget->Get_WorldPostion()); +} + +void CCamera_Gaze::Enable_LookLerp() +{ + m_bEnable_LookLerp = true; + m_vLookLerpTime.x = 0.f; + XMStoreFloat3(&m_vLookPos_Src, m_pLookTarget->Get_WorldPostion()); +} + +void CCamera_Gaze::Toggle_Priority() +{ + if (m_iPriority == 99) { + m_iPriority = 51; + } + else { + m_iPriority = 99; + m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, false); + } +} + +void CCamera_Gaze::Late_Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } +} +HRESULT CCamera_Gaze::Render() +{ + return S_OK; +} +HRESULT CCamera_Gaze::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamera_Gaze::Initialize(void* pArg) +{ + + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} +HRESULT CCamera_Gaze::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} +HRESULT CCamera_Gaze::Bind_ShaderResources() +{ + return S_OK; +} +CCamera_Gaze* CCamera_Gaze::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamera_Gaze* pInstance = new CCamera_Gaze(pDevice, pContext); + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamera_Gaze"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CGameObject* CCamera_Gaze::Clone(void* pArg, CGameObject* pOwner) +{ + CCamera_Gaze* pInstance = new CCamera_Gaze(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamera_Gaze"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamera_Gaze::Free() +{ + __super::Free(); +} + +#ifdef _DEBUG + +void CCamera_Gaze::Describe_Entity() +{ + GUI::Begin("Camera_Gaze_Describe"); + m_pTransformCom->Describe_Entity(); + GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z); + GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z); + GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z); + GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z); + GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp); + if (true == m_bEnable_TransitionLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y); + GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::Checkbox("LookLerp", &m_bEnable_LookLerp); + if (true == m_bEnable_LookLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y); + GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp); + if (true == m_bEnable_FollowLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y); + GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::End(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp new file mode 100644 index 000000000..c64ab4492 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp @@ -0,0 +1,231 @@ +#include "pch.h" +#include "Dummy_PhysXPlayable.h" +#include "GameInstance.h" + +CDummy_PhysXPlayable::CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext): + CGameObject(pDevice, pContext) +{ +} + +CDummy_PhysXPlayable::CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs): + CGameObject(rhs) +{ +} + +void CDummy_PhysXPlayable::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); +} + +void CDummy_PhysXPlayable::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Pressing(DIK_UPARROW)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, 1.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Pressing(DIK_LEFT)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(-1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Pressing(DIK_DOWN)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 0.f, -1.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Pressing(DIK_LCONTROL)) { + if (m_pGameInstance->Key_Pressing(DIK_SPACE)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, 10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Pressing(DIK_C)) { + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); + } + if (m_pGameInstance->Key_Down(DIK_V)) { + m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor()); + } + } + else { + if (m_pGameInstance->Key_Down(DIK_V)) { + m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor()); + } + } + m_pCharacter_Controller->Move(fTimeDelta); +} + +void CDummy_PhysXPlayable::Late_Update(_float fTimeDelta) +{ +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + } +} + +HRESULT CDummy_PhysXPlayable::Render() +{ + //if (FAILED(Bind_ShaderResources())) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Render(0))) { + // return E_FAIL; + //} +#ifdef _DEBUG + if (FAILED(m_pCharacter_Controller->Render())) { + return E_FAIL; + } +#endif // _DEBUG + + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC TransformDesc{}; + TransformDesc.fRadius = 100.f; + TransformDesc.fRotationPerSec = XMConvertToRadians(60.f); + TransformDesc.fSpeedPerSec = 15.f; + if (FAILED(__super::Ready_Components(&TransformDesc))) { + return E_FAIL; + } + PHYSXDUMMY_DESC* pDesc = static_cast(pArg); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f)); + m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z); + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = pDesc->iSubKind; + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = pDesc->iSubKind; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor()); + } + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))){ + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CDummy_PhysXPlayable::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CDummy_PhysXPlayable* CDummy_PhysXPlayable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_PhysXPlayable"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_PhysXPlayable::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_PhysXPlayable* pInstance = new CDummy_PhysXPlayable(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_PhysXPlayable"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_PhysXPlayable::Free() +{ + __super::Free(); + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} +#ifdef _DEBUG + +void CDummy_PhysXPlayable::Describe_Entity() +{ + m_pCharacter_Controller->Describe_Entity(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp new file mode 100644 index 000000000..bd71eb1c7 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp @@ -0,0 +1,170 @@ +#include "pch.h" +#include "Dummy_PhysXWall.h" + +#include "GameInstance.h" + + +CDummy_PhysXWall::CDummy_PhysXWall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummy_PhysXWall::CDummy_PhysXWall(const CDummy_PhysXWall& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummy_PhysXWall::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_PhysXWall::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +void CDummy_PhysXWall::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummy_PhysXWall::Update(_float fTimeDelta) +{ +} + +void CDummy_PhysXWall::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); +} + +HRESULT CDummy_PhysXWall::Render() +{ + //if (FAILED(Bind_ShaderResources())) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Render(0))) { + // return E_FAIL; + //} +#ifdef _DEBUG + if (FAILED(m_pRigidBody->Render())) { + return E_FAIL; + } +#endif // _DEBUG + + + return S_OK; +} + +HRESULT CDummy_PhysXWall::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f)); + m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z); + + + { // RIGID_BODY + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = pPhysXDummyDesc->iSubKind; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CDummy_PhysXWall::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CDummy_PhysXWall* CDummy_PhysXWall::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_PhysXWall* pInstance = new CDummy_PhysXWall(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_PhysXWall"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_PhysXWall* pInstance = new CDummy_PhysXWall(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_PhysXWall"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_PhysXWall::Free() +{ + if (nullptr != m_pRigidBody) { + m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor()); + } + + __super::Free(); + + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} +#ifdef _DEBUG + +void CDummy_PhysXWall::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/EffectObject.cpp b/Jusin154_Team3D/Client/Private/EffectObject.cpp new file mode 100644 index 000000000..204608121 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/EffectObject.cpp @@ -0,0 +1,684 @@ +#include "pch.h" +#include "EffectObject.h" +#include "GameInstance.h" + +CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CPartObject(pDevice, pContext) +{ +} + +CEffectObject::CEffectObject(const CEffectObject& rhs) + :CPartObject(rhs) +{ +} + +void CEffectObject::Priority_Update(_float fTimeDelta) +{ +} + +void CEffectObject::Update(_float fTimeDelta) +{ + +} + +void CEffectObject::Late_Update(_float fTimeDelta) +{ + +} + +HRESULT CEffectObject::Render() +{ + if (FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + + for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++) + { + + + if (FAILED(m_pGameInstance->Bind_DepthStencil(m_pShaderCom, "g_DepthStencilTexture"))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_EffectInfo.eShaderPass)))) { + return E_FAIL; + } + + if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1))) + return E_FAIL; + + + + + + + if (FAILED(m_pInstance_ModelCom->Render(i))) + { + return E_FAIL; + } + } + + + return S_OK; +} + +HRESULT CEffectObject::Render_Blur() +{ + if (FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_EffectInfo.fBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_EffectInfo.iBlurWeight, sizeof(_int)))) { + return E_FAIL; + } + + + + + SHADER_PASS_INSTANCE_MODEL BlurPass = {}; + + if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD) + { + BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD; + } + else + { + BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR; + } + + for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++) + { + + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(BlurPass)))) { + return E_FAIL; + } + + if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1))) + return E_FAIL; + + + if (FAILED(m_pInstance_ModelCom->Render(i))) + { + return E_FAIL; + } + + } + + + return S_OK; +} + + + +HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) +{ + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); + + SAFE_RELEASE(m_pInstance_ModelCom); + + if (m_pLightCom != nullptr) + SAFE_RELEASE(m_pLightCom); + + _string strPerfectFilePath = pFilePath; + + strPerfectFilePath += ".bin"; + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름 + GENERIC_READ, // 읽기 모드 + FILE_SHARE_READ, // 다른 프로세스도 읽기 가능 + NULL, + OPEN_EXISTING, // 기존 파일 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK); + return E_FAIL; + } + + // 나중에 패키징할때 패스를 저장할거임 + + + DWORD dwByte(0); + + if (!ReadFile(hFile, &m_EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_EffectInfo.LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION); + m_EffectInfo.LightDesc.iLevel = ENUM_CLASS(eLevel); + + if (m_EffectInfo.LightDesc.eType != LIGHT::DIRECTIONAL) // 0이 아닐때만 생성 + { + if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + if (m_EffectInfo.isDiffuse) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDiffuseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + } + + + } + + if (m_EffectInfo.isNoise) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + } + + + } + + if (m_EffectInfo.isMasking) + { + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_EffectInfo.isDissolve) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDissolveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + + } + + + } + + if (m_EffectInfo.isEmissive) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strEmissiveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + if (m_EffectInfo.isDistortion) + { + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } + + + } + + size_t iComponentLength = {}; + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)(DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); + return E_FAIL; + } + + m_strModelName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), + reinterpret_cast(&m_pInstance_ModelCom)))) + { + CloseHandle(hFile); + return E_FAIL;; + } + } + + + + m_pInstance_ModelCom->Load_InstanceModel(hFile); + + CloseHandle(hFile); + + + + return S_OK; +} + + + +HRESULT CEffectObject::Bind_ShaderResources() +{ + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_EffectInfo.isDiffuse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMasking", &m_EffectInfo.isMasking, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDissolve", &m_EffectInfo.isDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_EffectInfo.isNoise, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissive", &m_EffectInfo.isEmissive, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_EffectInfo.isDistortion, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuseUVMove", &m_EffectInfo.isDiffuseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskUVMove", &m_EffectInfo.isMaskUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseUVMove", &m_EffectInfo.isNoiseUVMove, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isReverseDissolve", &m_EffectInfo.isReverseDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolve", &m_EffectInfo.isEmissiveDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskClampSample", &m_EffectInfo.isMaskClampSample, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_EffectInfo.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_EffectInfo.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNomalDissolve", &m_EffectInfo.isNomalDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse, sizeof(_bool)))) { + return E_FAIL; + } + + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_EffectInfo.vEmissive, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_EffectInfo.fEmissiveStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseDistortionIntensity", &m_EffectInfo.fNoiseDistortionIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseUVGainAmount", &m_EffectInfo.vDiffuseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskingUVGainAmount", &m_EffectInfo.vMaskingUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vNoiseUVGainAmount", &m_EffectInfo.vNoiseUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_EffectInfo.vDiffuseDistortionUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_EffectInfo.vMaskDistortionUVGainAmount, sizeof(_float2)))) { + return E_FAIL; + } + + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVCutting", &m_EffectInfo.vUVCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vUVMaskCutting", &m_EffectInfo.vUVMaskCutting, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskMoveLerpOption", &m_EffectInfo.iMaskMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseMoveLerpOption", &m_EffectInfo.iDiffuseMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iMaskDistortionMoveLerpOption", &m_EffectInfo.iMaskDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iDiffuseDistortionMoveLerpOption", &m_EffectInfo.iDiffuseDistortionMoveLerpOption, sizeof(_int)))) { + return E_FAIL; + } + + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_EffectInfo.fDiffuseAlpha, sizeof(_float)))) { + 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) + { + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pNoise_TextureCom != nullptr) + { + if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_NoiseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pMasking_TextureCom != nullptr) + { + if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDissolve_TextureCom != nullptr) + { + if (FAILED(m_pDissolve_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DissolveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pEmissive_TextureCom != nullptr) + { + if (FAILED(m_pEmissive_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_EmissiveTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDistortion_TextureCom != nullptr) + { + if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) { + return E_FAIL; + } + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + + + + return S_OK; +} + +HRESULT CEffectObject::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + + if (FAILED(__super::Ready_Components(&TransformDesc))) { + return E_FAIL; + } + + + //나중에 로드할 때 라이트를 값을 입력받아서 생성 하자 + return S_OK; +} + +HRESULT CEffectObject::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CEffectObject::Initialize(void* pArg) +{ + + if (FAILED(__super::Initialize(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + + + +void CEffectObject::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pDissolve_TextureCom); + SAFE_RELEASE(m_pEmissive_TextureCom); + SAFE_RELEASE(m_pDistortion_TextureCom); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pInstance_ModelCom); + + if(m_pLightCom != nullptr) + SAFE_RELEASE(m_pLightCom); +} + + diff --git a/Jusin154_Team3D/Client/Private/EffectParts.cpp b/Jusin154_Team3D/Client/Private/EffectParts.cpp new file mode 100644 index 000000000..9b990b848 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/EffectParts.cpp @@ -0,0 +1,131 @@ +#include "pch.h" +#include "EffectParts.h" + +#include "GameInstance.h" +#include "Instance_Model.h" + +CEffectParts::CEffectParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffectObject{ pDevice, pContext } +{ +} + +CEffectParts::CEffectParts(const CEffectParts& rhs) + : CEffectObject(rhs) +{ +} + +HRESULT CEffectParts::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CEffectParts::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + Set_Visible(false); + + return S_OK; +} + +void CEffectParts::Priority_Update(_float fTimeDelta) +{ + +} + +void CEffectParts::Update(_float fTimeDelta) +{ + + if (m_bVisible == false) + return; + + if (m_pInstance_ModelCom == nullptr) + return; + + m_pInstance_ModelCom->Drop(fTimeDelta); + + if (m_EffectInfo.isBillboard) + m_pGameInstance->BillBoard(m_pTransformCom); + + +} + +void CEffectParts::Late_Update(_float fTimeDelta) +{ + + if (m_bVisible == false) + return; + + if (m_pInstance_ModelCom == nullptr) + return; + + + if (m_EffectInfo.isBlur == true) + { + m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + } + + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + +} + + +HRESULT CEffectParts::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + { + return E_FAIL; + } + + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_INSTANCE_MODEL, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + return S_OK; +} + + +CEffectParts* CEffectParts::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CEffectParts* pInstance = new CEffectParts(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CEffectParts"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CEffectParts::Clone(void* pArg, CGameObject* pOwner) +{ + CEffectParts* pInstance = new CEffectParts(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CEffectParts"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CEffectParts::Free() +{ + __super::Free(); + +} +#ifdef _DEBUG + +void CEffectParts::Describe_Entity() +{ + +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Effect_Container.cpp b/Jusin154_Team3D/Client/Private/Effect_Container.cpp new file mode 100644 index 000000000..7f7a5e905 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Effect_Container.cpp @@ -0,0 +1,192 @@ +#include "pch.h" +#include "Effect_Container.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "TrailObject.h" + + +#include + +CEffect_Container::CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CContainerObject{ pDevice, pContext } +{ +} + +CEffect_Container::CEffect_Container(const CEffect_Container& rhs) + : CContainerObject(rhs) +{ + +} + +HRESULT CEffect_Container::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CEffect_Container::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + return S_OK; +} + +void CEffect_Container::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CEffect_Container::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); + +} + +void CEffect_Container::Late_Update(_float fTimeDelta) +{ + __super::Late_Update(fTimeDelta); +} + +void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc) +{ +} + +HRESULT CEffect_Container::Load_Directory(const _char* pPath) +{ + + for (const auto& file : filesystem::directory_iterator(pPath)) + { + if (file.is_directory()) + continue; + + string ext = file.path().extension().string(); + + if (strcmp(ext.c_str(), ".bin")) + continue; + + _char szFilePath[MAX_PATH] = {}; + + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + + ///////////////////////////// + + CEffectParts* pEffectParts = nullptr; + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + + + /*이펙트 껍데기 생성*/ + + _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기 + + if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), g_iStaticLevel, &pEffectParts, &PartsDesc))) { + assert(false); + return E_FAIL; + } + + + /*이펙트 로드 로드*/ + size_t iPos = {}; + _string strFilePath = szFilePath; + + while ((iPos = strFilePath.find(".bin")) != std::string::npos) { + strFilePath.erase(iPos, 4); + }; + + + if (FAILED(pEffectParts->Load(strFilePath.c_str(),static_cast(NEXT_LEVEL)))) + { + Safe_Release(pEffectParts); + continue; + } + + Safe_Release(pEffectParts); + } + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + if (FAILED(__super::Ready_Components(&TransformDesc))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Child() +{ + + return S_OK; +} + +void CEffect_Container::Free() +{ + __super::Free(); + +} + +HRESULT CEffect_Container::Bind_ShaderResources() +{ + return S_OK; +} + +void CEffect_Container::Update_Event(_float fTimeDelta) +{ + + m_fPreAccTime = m_fAccTime; + m_fAccTime += fTimeDelta; + + if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면 + { + m_isDelayed = true; + } + else + { + return; + } + + + if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면 + { + if (m_isLoop) + { + m_fAccTime = 0.f; + m_fPreAccTime = 0.f; + m_isDelayed = false; + } + else + { + m_bVisible = false; + } + } + + + for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함 + { + if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime) + { + pPair.second(); + } + } + + +} diff --git a/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp new file mode 100644 index 000000000..32fafc0cd --- /dev/null +++ b/Jusin154_Team3D/Client/Private/GamePlay_Canvas.cpp @@ -0,0 +1,160 @@ +#include "pch.h" +#include "GamePlay_Canvas.h" +#include "GameInstance.h" +//#include "Mission_Panel.h" +//#include "MiniMap_Panel.h" +#include "Loading_Panel.h" +//#include "Action_Panel.h" +//#include "Mouse_Cursor.h" + +CGamePlay_Canvas::CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CCanvasObject(pDevice, pContext) +{ +} + +CGamePlay_Canvas::CGamePlay_Canvas(const CGamePlay_Canvas& rhs) + :CCanvasObject(rhs) +{ +} + + +HRESULT CGamePlay_Canvas::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CGamePlay_Canvas::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 0.f; + Desc.fY = 0.f; + Desc.fSizeX = 1920.f; + Desc.fSizeY = 1080.f; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + if (FAILED(Ready_Panel(pArg))) + { + return E_FAIL; + } + m_bVisible = true; + m_bActive = true; + return S_OK; +} + +void CGamePlay_Canvas::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CGamePlay_Canvas::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); +} + +void CGamePlay_Canvas::Late_Update(_float fTimeDelta) +{ + if (m_bVisible) { + + } + __super::Late_Update(fTimeDelta); +} + +HRESULT CGamePlay_Canvas::Render() +{ + return S_OK; +} + +_vector CGamePlay_Canvas::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CGamePlay_Canvas::Bind_ShaderResources() +{ + return S_OK; +} + +HRESULT CGamePlay_Canvas::Ready_Components(void* pArg) +{ + return S_OK; +} + +HRESULT CGamePlay_Canvas::Ready_Panel(void* pArg) +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoading_Panel)))) + { + return E_FAIL; + } + Add_Panel(TEXT("LoadingPanel"), m_pLoading_Panel); + + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMinimap_Panel)))) + //{ + // return E_FAIL; + //} + //Add_Panel(TEXT("MinimapPanel"), m_pMinimap_Panel); + + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Panel)))) + //{ + // return E_FAIL; + //} + //Add_Panel(TEXT("MissionPanel"), m_pMission_Panel); + + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pAction_Panel)))) + //{ + // return E_FAIL; + //} + //Add_Panel(TEXT("ActionPanel"), m_pAction_Panel); + + + return S_OK; +} + +void CGamePlay_Canvas::Clear_Penel() +{ +} + +CGamePlay_Canvas* CGamePlay_Canvas::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CGamePlay_Canvas"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CGamePlay_Canvas::Clone(void* pArg, CGameObject* pOwner) +{ + CGamePlay_Canvas* pInstance = new CGamePlay_Canvas(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CGamePlay_Canvas"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CGamePlay_Canvas::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pLoading_Panel); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CGamePlay_Canvas::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp new file mode 100644 index 000000000..a4f45ca5b --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Goblin.cpp @@ -0,0 +1,232 @@ +#include "pch.h" +#include "Goblin.h" + +#include "GameInstance.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + +CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CMonster(pDevice, pContext) +{ +} + +CGoblin::CGoblin(const CGoblin& Prototype) + : CMonster(Prototype) +{ +} + +HRESULT CGoblin::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CGoblin::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components())) + return E_FAIL; + + Add_FSM(); + + Set_Anim(); + + { + CFSM::FSM_DESC FSMDesc{}; + FSMDesc.pStates = &m_States; + FSMDesc.pStateMask = &m_iStateMask; + + m_pFSM->Bind_States(FSMDesc); + m_pFSM->Change_State(FSMSTATE::IDLE); + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + + m_pCharacter_Controller->Set_Position(XMVectorSet(-10.f, 0.f, -10.f, 1.f)); + + return S_OK; +} + +void CGoblin::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); +} + +void CGoblin::Update(_float fTimeDelta) +{ + m_pFSM->Update_State(fTimeDelta); + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + m_pCharacter_Controller->Move(fTimeDelta); + +} + +void CGoblin::Late_Update(_float fTimeDelta) +{ + __super::Late_Update(fTimeDelta); + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); + + m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION)); + + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); +} + +HRESULT CGoblin::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + +#ifdef _DEBUG + m_pCharacter_Controller->Render(); + //m_pRigidBody->Render(); +#endif + + return S_OK; +} + +HRESULT CGoblin::Ready_Components() +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + __super::Ready_Components(&Desc); + + m_strModelPrototypeTag = TEXT("Prototype_Component_Goblin_Model"); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor()); + } + + return S_OK; +} + +HRESULT CGoblin::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CGoblin* CGoblin::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CGoblin* pInstance = new CGoblin(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CGoblin"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +CGameObject* CGoblin::Clone(void* pArg, CGameObject* pOwner) +{ + CGoblin* pInstance = new CGoblin(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CGoblin"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CGoblin::Free() +{ + __super::Free(); + + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); +} +#ifdef _DEBUG + +void CGoblin::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp new file mode 100644 index 000000000..ff4a55c37 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp @@ -0,0 +1,150 @@ +#include "pch.h" +#include "Goblin.h" + +#include "GameInstance.h" +#include "Player.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + + +void CGoblin::Behavior_IdleEnter() +{ + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_IdleExitCheck() +{ + if (m_fTargetDistance <= 15.f) + m_pFSM->Change_State(FSMSTATE::MOVE); + + return E_FAIL; +} + +void CGoblin::Behavior_IdleExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLE); +} + +void CGoblin::Behavior_MoveEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_pFSM->Enable_State(FSMSTATE::MOVE); + m_pFSM->Enable_State(FSMSTATE::JOG); + + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_MoveExitCheck() +{ + if (m_fTargetDistance <= 3.f) + m_pFSM->Change_State(FSMSTATE::COMBAT); + + return E_FAIL; +} + +void CGoblin::Behavior_MoveExit() +{ + m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK); +} + +void CGoblin::Behavior_CombatEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_pFSM->Enable_State(FSMSTATE::COMBAT); + + m_pFSM->Enable_State(FSMSTATE::SKILL); + + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_CombatExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::IDLE); + } + return E_FAIL; +} + +void CGoblin::Behavior_CombatExit() +{ + m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL | FSMSTATE::SKILL2); +} + + +void CGoblin::Add_FSM() +{ +#pragma region Behavior_Movement_NotFocus + { + CState_Idle::STATE_IDLE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_IdleExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); + } + { + CState_Move::STATE_MOVE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_MoveExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); + } +#pragma endregion + +#pragma region Behavior_Combat_NotFocus + { + CState_Combat::STATE_COMBAT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_CombatExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_Focus + +#pragma endregion + +} + +void CGoblin::Set_Anim() +{ + + m_Animation[STATEANIM::IDLE] = { 22,true }; + + m_Animation[STATEANIM::WALK_FWD] = { 50,true }; + m_Animation[STATEANIM::WALK_STOP] = { 58,false }; + + m_Animation[STATEANIM::JOG_FWD] = { 46,true }; + m_Animation[STATEANIM::JOG_BWD] = { 154,false }; + + m_Animation[STATEANIM::SKILL] = { 70,false }; // 도끼 스윙 + m_Animation[STATEANIM::SKILL2] = { 85,false }; // 나이프 던지기 +} diff --git a/Jusin154_Team3D/Client/Private/InfoInstance.cpp b/Jusin154_Team3D/Client/Private/InfoInstance.cpp new file mode 100644 index 000000000..a7ba7db91 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/InfoInstance.cpp @@ -0,0 +1,68 @@ +#include "pch.h" +#include "InfoInstance.h" +#include "GameInstance.h" +#include "MapInfo.h" +#include "MonsterInfo.h" +#include "PlayerInfo.h" + +IMPLEMENT_SINGLETON(CInfoInstance) + +CInfoInstance::CInfoInstance() +{ +} + + +void CInfoInstance::Update(_float fTimeDelta) +{ + +} + +LEVEL CInfoInstance::Get_RestartLevel() +{ + return LEVEL::GAMEPLAY; +} + +HRESULT CInfoInstance::Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + m_pGameInstance = CGameInstance::GetInstance(); + m_pDevice = pDevice; + m_pContext = pContext; + SAFE_ADDREF(m_pGameInstance); + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + + m_pMapInfo = CMapInfo::Create(pDevice, pContext); + if (nullptr == m_pMapInfo) { + return E_FAIL; + } + m_pPlayerInfo = CPlayerInfo::Create(pDevice, pContext); + if (nullptr == m_pPlayerInfo) { + return E_FAIL; + } + m_pMonsterInfo = CMonsterInfo::Create(pDevice, pContext); + if (nullptr == m_pMonsterInfo) { + return E_FAIL; + } + + + return S_OK; +} + +void CInfoInstance::Release_Information() +{ + DestroyInstance(); + + + SAFE_RELEASE(m_pMapInfo); + SAFE_RELEASE(m_pPlayerInfo); + SAFE_RELEASE(m_pMonsterInfo); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pContext); + SAFE_RELEASE(m_pGameInstance); +} + +void CInfoInstance::Free() +{ + __super::Free(); + +} diff --git a/Jusin154_Team3D/Client/Private/Level_Field.cpp b/Jusin154_Team3D/Client/Private/Level_Field.cpp new file mode 100644 index 000000000..b13002b56 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Level_Field.cpp @@ -0,0 +1,115 @@ +#include "pch.h" +#include "Level_Field.h" +#include "GameInstance.h" +#include "Level_Loading.h" +#include "InfoInstance.h" +#include "Light_Main.h" +#include "Layer.h" + +CLevel_Field::CLevel_Field(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) + : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } +{ + m_pInfoInstance = CInfoInstance::GetInstance(); + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CLevel_Field::Initialize(void* pArg) +{ + if (FAILED(Ready_Lights())) { + return E_FAIL; + } + + if (FAILED(Ready_Markers())) { + return E_FAIL; + } + if (FAILED(Ready_Layer_UI(LAYER_UI))) { + return E_FAIL; + } + if (FAILED(Ready_Layer_Effect(LAYER_EFFECT))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CLevel_Field::Initialize() +{ + assert(false); + return E_FAIL; +} + +void CLevel_Field::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Up(DIK_F1)) + { + m_pGameInstance->Set_LevelToChange(); + } + + m_pInfoInstance->Update(fTimeDelta); + + if (true == m_pGameInstance->Check_LevelShouldChange()) { + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::RESTART)))) { + return; + } + } +} + +HRESULT CLevel_Field::Render() +{ + SetWindowText(g_hWnd, TEXT("필드레벨")); + return S_OK; +} + +HRESULT CLevel_Field::Ready_Lights() +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CLevel_Field::Ready_Layer_UI(const _wstring& strLayerTag) +{ + return S_OK; +} + +HRESULT CLevel_Field::Ready_Layer_Camera() +{ + return S_OK; +} + +HRESULT CLevel_Field::Ready_Layer_Sound() +{ + return S_OK; +} + +HRESULT CLevel_Field::Ready_Markers() +{ + + return S_OK; +} + +HRESULT CLevel_Field::Ready_Layer_Effect(const _wstring& strLayerTag) +{ + return S_OK; +} + +pair> CLevel_Field::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg) +{ + CLevel_Field* pInstance = new CLevel_Field(pDevice, pContext, eLevelID); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Created : CLevel_Field"); + SAFE_RELEASE(pInstance); + } + + return { pInstance, [pInstance]() { pInstance->Ready_Layer_Camera(); pInstance->Ready_Layer_Sound(); } }; +} + +void CLevel_Field::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); +} diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 418e8082c..dce3b9971 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -2,12 +2,23 @@ #include "Level_GamePlay.h" #include "GameInstance.h" #include "Level_Loading.h" +#include "Light_Main.h" +#include "Camera_Debug.h" +#include "InfoInstance.h" +#include "GamePlay_Canvas.h" #include "Layer.h" +#include "Player.h" +#include "SkyBox.h" +#include "Broom.h" +#include "Dummy_PhysXWall.h" +#include "Dummy_PhysXPlayable.h" +#include "Goblin.h" CLevel_GamePlay::CLevel_GamePlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } { - + m_pInfoInstance = CInfoInstance::GetInstance(); + SAFE_ADDREF(m_pInfoInstance); } HRESULT CLevel_GamePlay::Initialize(void* pArg) @@ -15,14 +26,19 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg) if (FAILED(Ready_Lights())) { return E_FAIL; } - if (FAILED(Ready_Markers())) { return E_FAIL; } if (FAILED(Ready_Layer_UI(LAYER_UI))) { return E_FAIL; } - if (FAILED(Ready_Layer_Effect(LAYER_EFFECT))) { + if (FAILED(Ready_Layer_Player(LAYER_PLAYER))) { + return E_FAIL; + } + if (FAILED(Ready_Layer_SkyBox(TEXT("Layer_SkyBox")))) { + return E_FAIL; + } + if (FAILED(Ready_Layer_Monster())) { return E_FAIL; } @@ -37,10 +53,17 @@ HRESULT CLevel_GamePlay::Initialize() void CLevel_GamePlay::Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Up(DIK_ADD)) + { + m_pGameInstance->Set_LevelToChange(); + } + + m_pInfoInstance->Update(fTimeDelta); + if (true == m_pGameInstance->Check_LevelShouldChange()) { - //if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::WOODS)))) { - // return; - //} + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::FIELD)))) { + return; + } } } @@ -52,30 +75,49 @@ HRESULT CLevel_GamePlay::Render() HRESULT CLevel_GamePlay::Ready_Lights() { - LIGHT_DESC LightDesc{}; - - LightDesc.eType = LIGHT::DIRECTIONAL; - LightDesc.vDiffuse = _float4(0.8f, 0.8f, 0.8f, 0.f); - LightDesc.vAmbient = _float4(0.2f, 0.2f, 0.2f, 0.f); - LightDesc.vSpecular = _float4(0.f, 0.f, 0.f, 0.f); - //LightDesc.vDirection = _float4(1.f, -1.f, 1.f, 0.f); - - //if (FAILED(m_pGameInstance->On_Light(NEXT_LEVEL, TEXT("Main_Light"), LightDesc, nullptr))) { - // return E_FAIL; - //} - assert(false); - + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT))){ + return E_FAIL; + } return S_OK; } HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag) { + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) { + // return E_FAIL; + //} + return S_OK; } HRESULT CLevel_GamePlay::Ready_Layer_Camera() { + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; + + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))){ + return E_FAIL; + } + + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { + return E_FAIL; + } + + return S_OK; } @@ -90,8 +132,40 @@ HRESULT CLevel_GamePlay::Ready_Markers() return S_OK; } -HRESULT CLevel_GamePlay::Ready_Layer_Effect(const _wstring& strLayerTag) +HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag,nullptr,nullptr,&m_pPlayerTemp))) + return E_FAIL; + + /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + return E_FAIL;*/ + + return S_OK; +} + +HRESULT CLevel_GamePlay::Ready_Layer_SkyBox(const _wstring& strLayerTag) +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_SKYBOX))){ + return E_FAIL; + } + + CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{}; + Desc.vPos = { 0.f, 0.f, 0.f }; + Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f }; + Desc.iSubKind = 23; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CLevel_GamePlay::Ready_Layer_Monster() +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, m_pPlayerTemp))) + return E_FAIL; + return S_OK; } @@ -112,4 +186,5 @@ void CLevel_GamePlay::Free() { __super::Free(); + SAFE_RELEASE(m_pInfoInstance); } diff --git a/Jusin154_Team3D/Client/Private/Level_Loading.cpp b/Jusin154_Team3D/Client/Private/Level_Loading.cpp index fcc85f885..f68a13049 100644 --- a/Jusin154_Team3D/Client/Private/Level_Loading.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Loading.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Level_Loading.h" #include "Loader.h" @@ -6,6 +6,8 @@ #include "Layer.h" #include "Level_Logo.h" #include "Level_GamePlay.h" +#include "Level_Restart.h" +#include "Level_Field.h" CLevel_Loading::CLevel_Loading(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -47,7 +49,17 @@ void CLevel_Loading::Update(_float fTimeDelta) { pairLevel = CLevel_GamePlay::Create(m_pDevice, m_pContext, m_eNextLevelID, nullptr); } break; + case LEVEL::FIELD: + { + pairLevel = CLevel_Field::Create(m_pDevice, m_pContext, m_eNextLevelID, nullptr); + } break; + case LEVEL::RESTART: + { + pairLevel = CLevel_Restart::Create(m_pDevice, m_pContext, m_eNextLevelID); + } break; + default: + assert(false); // E_IMPL break; } @@ -59,7 +71,7 @@ void CLevel_Loading::Update(_float fTimeDelta) return; } else /* FAILED */ { - assert(false); // ·¹º§ º¯°æ ½ÇÆÐ + assert(false); // 레벨 변경 실패 } } } diff --git a/Jusin154_Team3D/Client/Private/Level_Logo.cpp b/Jusin154_Team3D/Client/Private/Level_Logo.cpp index 7cd7f7049..3520a55ea 100644 --- a/Jusin154_Team3D/Client/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Client/Private/Level_Logo.cpp @@ -1,14 +1,16 @@ -#include "pch.h" +#include "pch.h" #include "Level_Logo.h" #include "GameInstance.h" #include "Level_Loading.h" +#include "InfoInstance.h" CLevel_Logo::CLevel_Logo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } { - + m_pInfoInstance = CInfoInstance::GetInstance(); + SAFE_ADDREF(m_pInfoInstance); } HRESULT CLevel_Logo::Initialize() @@ -21,8 +23,14 @@ HRESULT CLevel_Logo::Initialize() void CLevel_Logo::Update(_float fTimeDelta) { - if (m_pGameInstance->Mouse_Up(DIM_RBUTTON)) + if (m_pGameInstance->Key_Up(DIK_F1)) { + m_pGameInstance->Set_LevelToChange(); + } + + m_pInfoInstance->Update(fTimeDelta); + + if (true == m_pGameInstance->Check_LevelShouldChange()) { if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::GAMEPLAY)))) { return; } @@ -31,7 +39,7 @@ void CLevel_Logo::Update(_float fTimeDelta) HRESULT CLevel_Logo::Render() { - SetWindowText(g_hWnd, TEXT("·ΰí·¹º§ÀԴϴÙ")); + SetWindowText(g_hWnd, TEXT("로고레벨입니다")); return S_OK; } @@ -57,5 +65,5 @@ void CLevel_Logo::Free() { __super::Free(); - + SAFE_RELEASE(m_pInfoInstance); } diff --git a/Jusin154_Team3D/Client/Private/Level_Restart.cpp b/Jusin154_Team3D/Client/Private/Level_Restart.cpp new file mode 100644 index 000000000..48f96f994 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Level_Restart.cpp @@ -0,0 +1,63 @@ +#include "pch.h" +#include "Level_Restart.h" +#include "InfoInstance.h" +#include "GameInstance.h" +#include "Level_Loading.h" + + + +CLevel_Restart::CLevel_Restart(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) + : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } +{ + m_pInfoInstance = CInfoInstance::GetInstance(); + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CLevel_Restart::Initialize() +{ + m_eNextLevel = m_pInfoInstance->Get_RestartLevel(); + + return S_OK; +} + +void CLevel_Restart::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Up(DIK_F1)) + { + m_pGameInstance->Set_LevelToChange(); + } + + m_pInfoInstance->Update(fTimeDelta); + + if (true == m_pGameInstance->Check_LevelShouldChange()) { + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, m_eNextLevel)))) { + return; + } + } +} + +HRESULT CLevel_Restart::Render() +{ + SetWindowText(g_hWnd, TEXT("리스타트레벨")); + return S_OK; +} + +pair> CLevel_Restart::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) +{ + CLevel_Restart* pInstance = new CLevel_Restart(pDevice, pContext, eLevelID); + + if (FAILED(pInstance->Initialize())) + { + MSG_BOX("Failed to Created : CLevel_Restart"); + SAFE_RELEASE(pInstance); + } + + return { pInstance, nullptr }; +} + +void CLevel_Restart::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); +} diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp new file mode 100644 index 000000000..58d59055e --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp @@ -0,0 +1,119 @@ +#include "pch.h" +#include "Light_Main.h" +#include "GameInstance.h" + +CLight_Main::CLight_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CLight_Main::CLight_Main(const CLight_Main& Prototype) + : CGameObject(Prototype) +{ +} + +HRESULT CLight_Main::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CLight_Main::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + + if (FAILED(Ready_Components())) + return E_FAIL; + + m_pTransformCom->Set_State(STATE::LOOK, XMVectorSet(1.f, -1.f, 1.f, 0.f)); + + return S_OK; +} + +void CLight_Main::Priority_Update(_float fTimeDelta) +{ + +} + +void CLight_Main::Update(_float fTimeDelta) +{ + +} + +void CLight_Main::Late_Update(_float fTimeDelta) +{ +} + +HRESULT CLight_Main::Render() +{ + return S_OK; +} + +HRESULT CLight_Main::Ready_Components() +{ + __super::Ready_Components(nullptr); + + LIGHT_DESC LightDesc{}; + + LightDesc.eType = LIGHT::DIRECTIONAL; + LightDesc.vDiffuse = _float4(0.8f, 0.8f, 0.8f, 0.f); + LightDesc.vAmbient = _float4(0.6f, 0.6f, 0.6f, 0.f); + LightDesc.vSpecular = _float4(0.f, 0.f, 0.f, 0.f); + LightDesc.pDirection = m_pTransformCom->Get_StatePtr(STATE::LOOK); + LightDesc.iLevel = NEXT_LEVEL; + + /* Com_Light*/ + if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &LightDesc))) + { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CLight_Main::Bind_ShaderResources() +{ + return S_OK; +} + +CLight_Main* CLight_Main::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CLight_Main* pInstance = new CLight_Main(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CLight_Main"); + Safe_Release(pInstance); + } + + return pInstance; +} + +CGameObject* CLight_Main::Clone(void* pArg, CGameObject* pOwner) +{ + CLight_Main* pInstance = new CLight_Main(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CLight_Main"); + Safe_Release(pInstance); + } + + return pInstance; +} + +void CLight_Main::Free() +{ + __super::Free(); + + Safe_Release(m_pLightCom); +} +#ifdef _DEBUG + +void CLight_Main::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 6ad1c0b6f..6e289de81 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -1,7 +1,41 @@ -#include "pch.h" +#include "pch.h" #include "Loader.h" #include "GameInstance.h" #include "MainApp.h" +#include "Light_Main.h" +#include "Camera_Debug.h" +//#include "GamePlay_Canvas.h" +//#include "Loading_Panel.h" +//#include "LoadingWidget.h" + +#include "Player.h" +#include "Camera_Gaze.h" +#include "CamPosition_Socket.h" +#include "CamPosition_Target.h" +#include "CamPosition_Shoulder.h" +#include "CamPosition_Arm.h" +#include "Wand.h" +#include "SkyBox.h" +#include "Broom.h" +#include "Goblin.h" + +#pragma region PHYSX + +#include "Dummy_PhysXWall.h" +#include "Dummy_PhysXPlayable.h" +#include "PhysXEffectHitBox.h" + +#pragma endregion + +#pragma region EFFECT + +#include "EffectParts.h" +#include "Bombard.h" +#include "TrailObject.h" +#include "Instance_Model.h" +#include "Trail.h" + +#pragma endregion CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : m_pDevice{ pDevice } @@ -19,6 +53,7 @@ unsigned int APIENTRY LoadingMain(void* pArg) if (FAILED(pLoader->Loading())) { assert(false); + int a = 0; return 1; } @@ -29,11 +64,7 @@ HRESULT CLoader::Initialize(LEVEL eNextLevelID) { m_eNextLevelID = eNextLevelID; - InitializeCriticalSection(&m_CriticalSection); - - m_hThread = (HANDLE)_beginthreadex(nullptr, 0, LoadingMain, this, 0, nullptr); - if (0 == m_hThread) - return E_FAIL; + m_pGameInstance->EnqueueJob(&LoadingMain, this); return S_OK; } @@ -45,8 +76,6 @@ HRESULT CLoader::Loading() return E_FAIL; } - EnterCriticalSection(&m_CriticalSection); - HRESULT hr = {}; switch (m_eNextLevelID) @@ -57,14 +86,21 @@ HRESULT CLoader::Loading() case LEVEL::GAMEPLAY: hr = Loading_For_GamePlay(); break; + case LEVEL::FIELD: + hr = Loading_For_Field(); + break; + case LEVEL::RESTART: + hr = Loading_For_Restart(); + break; default: break; } - LeaveCriticalSection(&m_CriticalSection); + CoUninitialize(); - if (FAILED(hr)) + if (FAILED(hr)){ return E_FAIL; + } return S_OK; } @@ -76,17 +112,25 @@ void CLoader::Output() HRESULT CLoader::Loading_For_Logo() { - m_strMessage = TEXT("ÅؽºÃĸ¦(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); - m_strMessage = TEXT("»ç¿îµ带(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("사운드를(을) 로딩 중 입니다."); - m_strMessage = TEXT("¸𵨸¦(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); - m_strMessage = TEXT("¼ÎÀ̴õ¸¦(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); - m_strMessage = TEXT("°´ü¿øÇü¸¦(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); - m_strMessage = TEXT("·εùÀÌ ¿ϷáµǾú½À´ϴÙ.."); + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Debug::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLight_Main::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + m_strMessage = TEXT("로딩이 완료되었습니다.."); m_isFinished = true; @@ -95,25 +139,368 @@ HRESULT CLoader::Loading_For_Logo() HRESULT CLoader::Loading_For_GamePlay() { - m_strMessage = TEXT("ÅؽºÃĸ¦(À») ·εù Áß ÀԴϴÙ."); + m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); - m_strMessage = TEXT("¸𵨸¦(À») ·εù Áß ÀԴϴÙ."); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Loading/LoadingWidget.png"), 0)))) { + return E_FAIL; + } - m_strMessage = TEXT("¼ÎÀ̴õ¸¦(À») ·εù Áß ÀԴϴÙ."); - m_strMessage = TEXT("ÀÌÆåƮ¸¦(À») ·εù Áß ÀԴϴÙ."); + Asset_FileLoad("../Bin/Resources/Textures/Effect/Noises", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { - m_strMessage = TEXT("°´ü¿øÇü¸¦(À») ·εù Áß ÀԴϴÙ."); + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); - m_strMessage = TEXT("Á¤º¸¸¦ ºҷ¯¿À´Â ÁßÀԴϴÙ."); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } - m_strMessage = TEXT("·εùÀÌ ¿ϷáµǾú½À´ϴÙ.."); + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Effect/Diffuse", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Effect/Flipbooks", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Effect/Gradients", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_MESH, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl"), + VTXMESH::Elements, VTXMESH::iNumElements)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_ANIMMESH, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl"), + VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_POSTEX, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl"), + VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { + return E_FAIL; + } + + m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIEDITOR, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl"), + VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_MODEL, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl"), + VTX_MODEL_INSTANCE_PARTICLE::Elements, VTX_MODEL_INSTANCE_PARTICLE::iNumElements)))) { + return E_FAIL; + } + + // Heavy Wall + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{}; + { + Desc.eType = ACTOR::BOX; + Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ }; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + Desc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + Desc.fContactOffset = { 0.05f }; + Desc.vhalfGeometryInfo = { 2.5f, 4.5f, 3.5f }; + Desc.fDensity = 10.f; + Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + Desc.eLockFlag = {}; + Desc.vAutoDamping = { 100.f, 100.f }; + } + + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Wand_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin", XMMatrixIdentity())))) + + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixIdentity())))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"), + CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) + return E_FAIL; + + /* For.Prototype_Component_SkyboxModel */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity())))) + return E_FAIL; + + + m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다."); + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrail::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectParts::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTrailObject::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CBombard::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + + + m_strMessage = TEXT("Model Loading.."); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity())))) + return E_FAIL; + + Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Models/Effect/Goo", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Models/Effect/NomalMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName, + CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0)))) + return E_FAIL; + + return S_OK; + + }); + + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); + + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGamePlay_Canvas::Create(m_pDevice, m_pContext)))) { + // return E_FAIL; + //} + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoading_Panel::Create(m_pDevice, m_pContext)))) { + // return E_FAIL; + //} + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CLoadingWidget::Create(m_pDevice, m_pContext)))) { + // return E_FAIL; + //} + + /* For.Prototype_GameObject_SkyBox */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSkyBox::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_Component_FSM */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Player */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Camera_Gaze */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Player */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Socket::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Shoulder */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Shoulder::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Target */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Target::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Arm */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Arm::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Wand */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Broom */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Goblin */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPhysXEffectHitBox::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + + m_strMessage = TEXT("정보를 불러오는 중입니다."); + + m_strMessage = TEXT("로딩이 완료되었습니다.."); m_isFinished = true; return S_OK; } +HRESULT CLoader::Loading_For_Field() +{ + m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("정보를 불러오는 중입니다."); + + m_strMessage = TEXT("로딩이 완료되었습니다.."); + + m_isFinished = true; + + return S_OK; +} + +HRESULT CLoader::Loading_For_Restart() +{ + m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("모델를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("셰이더를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("이펙트를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); + + m_strMessage = TEXT("정보를 불러오는 중입니다."); + + m_strMessage = TEXT("로딩이 완료되었습니다.."); + + m_isFinished = true; + + return S_OK; +} + +HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent) +{ + for (const auto& file : filesystem::directory_iterator(pDirectoryPath)) + { + if (file.is_directory()) + continue; + + string ext = file.path().extension().string(); + + if (!strcmp(ext.c_str(), ".txt") || !strcmp(ext.c_str(), ".fbx")){ + continue; + } + + _char szFilePath[MAX_PATH] = {}; + + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + wstring wstrFileName = pPreName + file.path().stem().wstring(); + + AddPrototypeEvent(wstrFileName, szFilePath); + + } + + return S_OK; +} + CLoader* CLoader::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID) { CLoader* pInstance = new CLoader(pDevice, pContext); @@ -132,11 +519,6 @@ void CLoader::Free() { __super::Free(); - WaitForSingleObject(m_hThread, INFINITE); - - CloseHandle(m_hThread); - - DeleteCriticalSection(&m_CriticalSection); SAFE_RELEASE(m_pGameInstance); SAFE_RELEASE(m_pDevice); diff --git a/Jusin154_Team3D/Client/Private/LoadingWidget.cpp b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp new file mode 100644 index 000000000..f1edb4509 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/LoadingWidget.cpp @@ -0,0 +1,249 @@ +#include "pch.h" +#include "LoadingWidget.h" +#include "GameInstance.h" + +CLoadingWidget::CLoadingWidget(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CLoadingWidget::CLoadingWidget(const CLoadingWidget& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CLoadingWidget::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CLoadingWidget::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 600.f; + Desc.fY = 0.f; + Desc.fSizeX = 200.f; + Desc.fSizeY = 200.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_iImageFrameX = 6; + m_iImageFrameY = 6; + m_fFrame = 0.2f; + m_fTimeMult = 3.f; + m_fDelayTime = 1.f; + m_fEndTime = 1.8f; + m_fAlpha = 1.f; + m_fAlphaTime = 3.f; + m_fMoveSpeed = 10.f; + m_bVisible = true; + m_bActive = true; + return S_OK; +} + +void CLoadingWidget::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CLoadingWidget::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + if (m_bLerpOn == true) + { + Start_Lerp(m_fMoveSpeed); + } + + if (m_bLerpOff == true) + { + Reset_Pos(m_fMoveSpeed); + } + m_fTime += fTimeDelta * m_fTimeMult; + __super::Update(fTimeDelta); +} + +void CLoadingWidget::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CLoadingWidget::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::LODING)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CLoadingWidget::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CLoadingWidget::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFrame", &m_fFrame, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountX", &m_iImageFrameX, sizeof(_int)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CLoadingWidget::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::STATIC), TEXT("LoadingWidget"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +CLoadingWidget* CLoadingWidget::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CLoadingWidget* pInstance = new CLoadingWidget(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CLoadingWidget"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CLoadingWidget::Clone(void* pArg, CGameObject* pOwner) +{ + CLoadingWidget* pInstance = new CLoadingWidget(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CLoadingWidget"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CLoadingWidget::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CLoadingWidget::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/Loading_Panel.cpp b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp new file mode 100644 index 000000000..935aa9b33 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Loading_Panel.cpp @@ -0,0 +1,155 @@ +#include "pch.h" +#include "Loading_Panel.h" +#include "GameInstance.h" +#include "LoadingWidget.h" +//#include "LoadingWidget_Flame.h" + +CLoading_Panel::CLoading_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CPanelObject(pDevice, pContext) +{ +} + +CLoading_Panel::CLoading_Panel(const CLoading_Panel& rhs) + :CPanelObject(rhs) +{ +} + +HRESULT CLoading_Panel::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CLoading_Panel::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 1200.f; + Desc.fY = 900.f; + Desc.fSizeX = 1515.f; + Desc.fSizeY = 300.f; + + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + if (FAILED(Ready_Element(pArg))) + { + return E_FAIL; + } + m_bVisible = true; + m_bActive = true; + return S_OK; +} + +void CLoading_Panel::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CLoading_Panel::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + __super::Update(fTimeDelta); +} + +void CLoading_Panel::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Late_Update(fTimeDelta); +} + +HRESULT CLoading_Panel::Render() +{ + return S_OK; +} + +_vector CLoading_Panel::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CLoading_Panel::Bind_ShaderResources() +{ + + return S_OK; +} + +HRESULT CLoading_Panel::Ready_Components(void* pArg) +{ + + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CLoading_Panel::Ready_Element(void* pArg) +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget)))) + { + return E_FAIL; + } + Add_Element(TEXT("LoadingWidget"), m_pLoadingWidget); + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pLoadingWidget_Flame)))) + //{ + // return E_FAIL; + //} + //Add_Element(TEXT("LoadingWidget_Flame"), m_pLoadingWidget_Flame); + + return S_OK; +} + +CLoading_Panel* CLoading_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CLoading_Panel* pInstance = new CLoading_Panel(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CLoading_Panel"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CLoading_Panel::Clone(void* pArg, CGameObject* pOwner) +{ + CLoading_Panel* pInstance = new CLoading_Panel(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CLoading_Panel"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CLoading_Panel::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pVIBufferCom); +} + +void CLoading_Panel::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/MainApp.cpp b/Jusin154_Team3D/Client/Private/MainApp.cpp index b9c13c960..c134df4dd 100644 --- a/Jusin154_Team3D/Client/Private/MainApp.cpp +++ b/Jusin154_Team3D/Client/Private/MainApp.cpp @@ -1,14 +1,18 @@ -#include "pch.h" +#include "pch.h" #include "MainApp.h" #include "GameInstance.h" #include "Level_Loading.h" +#include "InfoInstance.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END #ifdef _DEBUG _float g_fTimeMult = 1.f; #endif // _DEBUG - CMainApp::CMainApp() : m_pGameInstance{ CGameInstance::GetInstance() } { @@ -74,7 +78,7 @@ HRESULT CMainApp::Render() m_pGameInstance->Draw(); GUI::Render(); - //m_pGameInstance->Render_Font(TEXT("HYHL"), TEXT("ÇǰïÇØ ¸ø ½á"), _float2(0.f, 0.f), XMVectorSet(1.f, 0.f, 0.f, 1.f)); + //m_pGameInstance->Render_Font(TEXT("HYHL"), TEXT("피곤해 못 써"), _float2(0.f, 0.f), XMVectorSet(1.f, 0.f, 0.f, 1.f)); ImGui_ImplDX11_RenderDrawData(GUI::GetDrawData()); m_pGameInstance->Render_End(); @@ -96,7 +100,14 @@ HRESULT CMainApp::Start_Level(LEVEL eLevelID) if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, eLevelID)))) { return E_FAIL; } - + m_pInfoInstance = CInfoInstance::GetInstance(); + if (nullptr == m_pInfoInstance) { + return E_FAIL; + } + SAFE_ADDREF(m_pInfoInstance); + if (FAILED(m_pInfoInstance->Initialize_Information(m_pDevice, m_pContext))) { + return E_FAIL; + } return S_OK; } @@ -119,16 +130,21 @@ HRESULT CMainApp::Ready_IMGUI() ImGui_ImplWin32_Init(g_hWnd); ImGui_ImplDX11_Init(m_pDevice, m_pContext); - string strFontTag = "../Bin/Resources/Fonts/SHOWG.TTF"; - + //string strFontTag = "C:\\Windows\\Fonts\\malgun.ttf"; + string strFontTag = "../Bin/Resources/Fonts/malgunsl.TTF"; + ImFontConfig cfg; + cfg.OversampleH = 2; // 가독성 향상 + cfg.OversampleV = 2; + cfg.PixelSnapH = true; ifstream ifile; ifile.open(strFontTag); if (ifile) { - font = io.Fonts->AddFontFromFileTTF(strFontTag.c_str(), 10.f, NULL, io.Fonts->GetGlyphRangesKorean()); + font = io.Fonts->AddFontFromFileTTF(strFontTag.c_str(), 16.f, NULL, io.Fonts->GetGlyphRangesKorean()); } IM_ASSERT(font != NULL); + io.FontDefault = font; return S_OK; } @@ -157,6 +173,9 @@ void CMainApp::Free() { __super::Free(); + m_pInfoInstance->Release_Information(); + SAFE_RELEASE(m_pInfoInstance); + Release_IMGUI(); SAFE_RELEASE(m_pDevice); diff --git a/Jusin154_Team3D/Client/Private/MapInfo.cpp b/Jusin154_Team3D/Client/Private/MapInfo.cpp new file mode 100644 index 000000000..032d467fd --- /dev/null +++ b/Jusin154_Team3D/Client/Private/MapInfo.cpp @@ -0,0 +1,50 @@ +#include "pch.h" +#include "MapInfo.h" +#include "GameInstance.h" +#include "InfoInstance.h" + +CMapInfo::CMapInfo() +{ +} + +void CMapInfo::Update(_float fTimeDelta) +{ +} + +HRESULT CMapInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + m_pGameInstance = CGameInstance::GetInstance(); + m_pInfoInstance = CInfoInstance::GetInstance(); + m_pDevice = pDevice; + m_pContext = pContex; + + SAFE_ADDREF(m_pGameInstance); + SAFE_ADDREF(m_pInfoInstance); + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + + + return S_OK; +} + +CMapInfo* CMapInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + CMapInfo* pInstance = new CMapInfo(); + + if (FAILED(pInstance->Initialize(pDevice, pContex))) { + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMapInfo::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pContext); + +} diff --git a/Jusin154_Team3D/Client/Private/Monster.cpp b/Jusin154_Team3D/Client/Private/Monster.cpp new file mode 100644 index 000000000..2600aecab --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Monster.cpp @@ -0,0 +1,82 @@ +#include "pch.h" +#include "Monster.h" + +#include "GameInstance.h" +#include "Player.h" + +CMonster::CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CUnit(pDevice, pContext) +{ +} + +CMonster::CMonster(const CMonster& Prototype) + : CUnit(Prototype) +{ +} + +HRESULT CMonster::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMonster::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + m_pPlayerTransform = static_cast(pArg)->Get_Component(); + SAFE_ADDREF(m_pPlayerTransform); + + return S_OK; +} + +void CMonster::Priority_Update(_float fTimeDelta) +{ + +} + +void CMonster::Update(_float fTimeDelta) +{ + +} + +void CMonster::Late_Update(_float fTimeDelta) +{ + m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION)); +} + +HRESULT CMonster::Render() +{ + return S_OK; +} + +HRESULT CMonster::Ready_Components(void*pArg) +{ + __super::Ready_Components(pArg); + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CMonster::Bind_ShaderResources() +{ + return S_OK; +} + +void CMonster::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pPlayerTransform); +} +#ifdef _DEBUG + +void CMonster::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/MonsterInfo.cpp b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp new file mode 100644 index 000000000..27d673a78 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/MonsterInfo.cpp @@ -0,0 +1,50 @@ +#include "pch.h" +#include "MonsterInfo.h" +#include "GameInstance.h" +#include "InfoInstance.h" + +CMonsterInfo::CMonsterInfo() +{ +} + +void CMonsterInfo::Update(_float fTimeDelta) +{ +} + +HRESULT CMonsterInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + m_pGameInstance = CGameInstance::GetInstance(); + m_pInfoInstance = CInfoInstance::GetInstance(); + m_pDevice = pDevice; + m_pContext = pContex; + + SAFE_ADDREF(m_pGameInstance); + SAFE_ADDREF(m_pInfoInstance); + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + + + return S_OK; +} + +CMonsterInfo* CMonsterInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + CMonsterInfo* pInstance = new CMonsterInfo(); + + if (FAILED(pInstance->Initialize(pDevice, pContex))) { + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMonsterInfo::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pContext); + +} diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp new file mode 100644 index 000000000..530634db5 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -0,0 +1,167 @@ +#include "pch.h" +#include "NomalJap.h" + +#include "GameInstance.h" +#include "EffectParts.h" +#include "PhysXEffectHitBox.h" + + +CNomalJap::CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CNomalJap::CNomalJap(const CNomalJap& rhs) + : CEffect_Container(rhs) +{ + +} + +HRESULT CNomalJap::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CNomalJap::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + m_wstrEffectName = L"Nomal_Jap"; + + m_PartObjects.begin()->second->Set_Visible(true); + m_PartObjects.begin()->second->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + m_fDuration = 5.f; + + return S_OK; +} + +void CNomalJap::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CNomalJap::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); +} + +void CNomalJap::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); +} + +HRESULT CNomalJap::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CNomalJap::Ready_Child() +{ + CPhysXEffectHitBox::PHYSXDUMMY_DESC Desc{}; + + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + Desc.iSubKind = 70; + Desc.vDeltaPos = { 0.f, 0.f, 2.f }; + Desc.vLifeTime = { 0.f, 2.f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) { + assert(false); + return E_FAIL; + } + + return S_OK; +} + +CNomalJap* CNomalJap::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CNomalJap* pInstance = new CNomalJap(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CNomalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner) +{ + CNomalJap* pInstance = new CNomalJap(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CNomalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CNomalJap::OnCollision(CGameObject* pOther , void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos); + } + + m_PartObjects.begin()->second->Set_Visible(false); + + m_pPhysHitBox->Set_Dead(); +} + +void CNomalJap::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + +} +#ifdef _DEBUG + +void CNomalJap::Describe_Entity() +{ + +} + +#endif // _DEBUG + +HRESULT CNomalJap::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp new file mode 100644 index 000000000..a92f97d44 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp @@ -0,0 +1,202 @@ +#include "pch.h" +#include "PhysXEffectHitBox.h" +#include "GameInstance.h" + + +CPhysXEffectHitBox::CPhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CPhysXEffectHitBox::CPhysXEffectHitBox(const CPhysXEffectHitBox& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CPhysXEffectHitBox::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CPhysXEffectHitBox::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +void CPhysXEffectHitBox::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); +} + +void CPhysXEffectHitBox::Update(_float fTimeDelta) +{ + m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos)); + m_vLifeTime.x += fTimeDelta; + if (m_vLifeTime.x > m_vLifeTime.y) { + m_bDead = true; + } +} + +void CPhysXEffectHitBox::Late_Update(_float fTimeDelta) +{ + if (true == m_pCharacter_Controller->IsActive()) { + m_pCharacter_Controller->Move(fTimeDelta); + } + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + } +} + +HRESULT CPhysXEffectHitBox::Render() +{ + //if (FAILED(Bind_ShaderResources())) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) { + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Render(0))) { + // return E_FAIL; + //} +#ifdef _DEBUG + if (FAILED(m_pCharacter_Controller->Render())) { + return E_FAIL; + } +#endif // _DEBUG + + + return S_OK; +} + +HRESULT CPhysXEffectHitBox::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + PHYSXDUMMY_DESC* pDesc = static_cast(pArg); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f)); + m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z); + m_vDeltaPos = pDesc->vDeltaPos; + m_vLifeTime = pDesc->vLifeTime; + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = pDesc->iSubKind; + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::BOX; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_EffectHitBox_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_EffectHitBox_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CPhysXEffectHitBox::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CPhysXEffectHitBox* CPhysXEffectHitBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPhysXEffectHitBox* pInstance = new CPhysXEffectHitBox(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPhysXEffectHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CPhysXEffectHitBox::Clone(void* pArg, CGameObject* pOwner) +{ + CPhysXEffectHitBox* pInstance = new CPhysXEffectHitBox(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CPhysXEffectHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPhysXEffectHitBox::Free() +{ + if (nullptr == m_pGameInstance) { + m_pCharacter_Controller->SetActive(false); + PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); + PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); + m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); + m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor()); + + + } + __super::Free(); + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} +#ifdef _DEBUG + +void CPhysXEffectHitBox::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp new file mode 100644 index 000000000..bb2d079af --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -0,0 +1,406 @@ +#include "pch.h" +#include "Player.h" + +#include "GameInstance.h" +#include "CamPosition_Socket.h" +#include "Camera_Gaze.h" +#include "CamPosition_Arm.h" +#include "Wand.h" +#include "Character_Controller.h" +#include "CallBack_Playable_Behavior.h" +#include "CamPosition_Shoulder.h" +#include "CallBack_Playable_HitReport.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + +#include "Bombard.h" + +CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CUnit(pDevice, pContext) +{ +} + +CPlayer::CPlayer(const CPlayer& Prototype) + : CUnit(Prototype) +{ +} + +HRESULT CPlayer::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CPlayer::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components())) { + return E_FAIL; + } + + if (FAILED(Ready_Parts())) { + return E_FAIL; + } +#ifdef _DEBUG + Load_KeyFrame(); +#endif // _DEBUG + + + Add_FSM(); + + Set_Anim(); + + m_eSpell = STATEANIM::DESCENDO; + + { + CFSM::FSM_DESC FSMDesc{}; + FSMDesc.pStates = &m_States; + FSMDesc.pStateMask = &m_iStateMask; + + m_pFSM->Bind_States(FSMDesc); + m_pFSM->Change_State(FSMSTATE::IDLE); + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + +#ifdef _DEBUG + m_BasicEffect = make_unique(m_pDevice); + m_BasicEffect->SetVertexColorEnabled(true); + m_BasicEffect->SetView(m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW)); + m_BasicEffect->SetProjection(m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ)); + + m_Batch = make_unique>(m_pContext); +#endif // _DEBUG + + return S_OK; +} + +void CPlayer::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); + + __super::Priority_Update(fTimeDelta); +} + +void CPlayer::Update(_float fTimeDelta) +{ +#ifdef _DEBUG + Update_CameraCoordinateSystem(); +#endif // _DEBUG + + m_pFSM->Update_State(fTimeDelta); + + + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + + __super::Update(fTimeDelta); +#ifdef _DEBUG + Describe_Entity(); +#endif // _DEBUG + + + + m_pCharacter_Controller->Move(fTimeDelta); + TestKeyInput(fTimeDelta); +} + +void CPlayer::Late_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + + __super::Late_Update(fTimeDelta); +} + +HRESULT CPlayer::Render() +{ + if (!m_bVisible){ + return S_OK; + } + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + +#ifdef _DEBUG + m_pCharacter_Controller->Render(); + //m_pRigidBody->Render(); + Render_CameraCoordinateSystem(); +#endif + + return S_OK; +} +#ifdef _DEBUG + +void CPlayer::Render_CameraCoordinateSystem() +{ + + + m_Batch->Begin(); + + const _float fArrowLength = 2.0f; + _vector xmvLook = XMVector4Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f)); + _float2 vLook = { XMVectorGetX(xmvLook), XMVectorGetZ(xmvLook) }; + + + GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z); + GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z); + GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z); + GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z); + + GUI::Button("##0", { 100.f, 100.f }); GUI::SameLine(); + GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), {100.f, 100.f}); GUI::SameLine(); + GUI::Button("##2", {100.f, 100.f}); + GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine(); + GUI::Button("##4", { 100.f, 100.f }); GUI::SameLine(); + GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { 100.f, 100.f }); + GUI::Button("##6", {100.f, 100.f}); GUI::SameLine(); + GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { 100.f, 100.f }); GUI::SameLine(); + GUI::Button("##8", {100.f, 100.f}); + + m_Batch->DrawLine( // W + VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite), + VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue) + ); + m_Batch->DrawLine( // D + VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite), + VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red) + ); + m_Batch->DrawLine( // PlayerLook + VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite), + VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink) + ); + + m_Batch->End(); +} +#endif // _DEBUG + +HRESULT CPlayer::Ready_Components() +{ + CTransform::TRANSFORM_DESC Desc = {}; + + Desc.fSpeedPerSec = 10.f; + Desc.fRotationPerSec = XMConvertToRadians(180.0f); + Desc.fRadius = 10.f; + + if (FAILED(__super::Ready_Components(&Desc))) { + return E_FAIL; + } + + m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model"); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, + reinterpret_cast(&m_pModelCom)))) { + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor()); + } + + return S_OK; +} + +HRESULT CPlayer::Ready_Parts() +{ + CWand::WAND_DESC WandDesc{}; + + WandDesc.pParentTransform = m_pTransformCom; + WandDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand"); + + if (FAILED(Add_PartObject("Wand", g_iStaticLevel, nullptr, &WandDesc))) + { + return E_FAIL; + } + + { + CCamPosition_Shoulder::CAMERA_SHOULDER_DESC Desc; + Desc.pParentTransform = m_pTransformCom; + Desc.fMouseSensor = 0.5f; + Desc.fShoulderDistance = 2.f; + Desc.fBackFrontRatio = 0.9f; + Desc.fCameraFocalLength = 10.f; + Desc.vInitialLook = { 1.f, 2.f, -1.f }; + + if (FAILED(Add_PartObject("Cam_Shoulder_Part", g_iStaticLevel, &m_pCamPosition_ShoulderPart, &Desc))) { + return E_FAIL; + } + } + + return S_OK; +} + +HRESULT CPlayer::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} +#ifdef _DEBUG + +void CPlayer::Update_CameraCoordinateSystem() +{ + _vector xmvCameraLook = XMVector3Normalize(XMVectorSetY(m_pGameInstance->Get_CameraLook(), 0.f)); + _vector xmvUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + XMStoreFloat3(&m_vCameraRightDir, XMVector3Normalize(XMVector3Cross(xmvUp, xmvCameraLook))); + XMStoreFloat3(&m_vCameraLookDir, xmvCameraLook); +} +#endif // _DEBUG + +CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPlayer* pInstance = new CPlayer(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPlayer"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +CGameObject* CPlayer::Clone(void* pArg, CGameObject* pOwner) +{ + CPlayer* pInstance = new CPlayer(*this); + + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CPlayer"); + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CPlayer::Free() +{ + __super::Free(); + + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pCamPosition_TopDown_FollowPart); + SAFE_RELEASE(m_pCamPosition_TopDown_LookPart); + SAFE_RELEASE(m_pCamPosition_ShoulderPart); +} +#ifdef _DEBUG + +void CPlayer::Describe_Entity() +{ + m_pCharacter_Controller->Describe_Entity(); + _float4 vMomentum = {}; + XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum()); + GUI::Text("%.2f %.2f %.2f %.2f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); + _char label[256]; + for (auto& iter : m_KeyFrames) + { + sprintf_s(label, "%s %.2f", iter.first.c_str(), iter.second); + + GUI::Text(label); + } + + _float3 Pos; + XMStoreFloat3(&Pos, Get_WorldPostion()); + + float Pos3[3] = { Pos.x, Pos.y, Pos.z }; + GUI::DragFloat3("Pos", Pos3); + + + _float RotR, RotU, RotL; + RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT)); + RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP)); + RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK)); + + float Rot3[3] = { RotR, RotU,RotL }; + GUI::DragFloat3("Rot", Rot3); + + + string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); + GUI::Text(AnimList.c_str()); + + GUI::Checkbox("Render", &m_bVisible); + +} + +#endif // _DEBUG + + diff --git a/Jusin154_Team3D/Client/Private/PlayerInfo.cpp b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp new file mode 100644 index 000000000..d355667a6 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/PlayerInfo.cpp @@ -0,0 +1,50 @@ +#include "pch.h" +#include "PlayerInfo.h" +#include "GameInstance.h" +#include "InfoInstance.h" + +CPlayerInfo::CPlayerInfo() +{ +} + +void CPlayerInfo::Update(_float fTimeDelta) +{ +} + +HRESULT CPlayerInfo::Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + m_pGameInstance = CGameInstance::GetInstance(); + m_pInfoInstance = CInfoInstance::GetInstance(); + m_pDevice = pDevice; + m_pContext = pContex; + + SAFE_ADDREF(m_pGameInstance); + SAFE_ADDREF(m_pInfoInstance); + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + + + return S_OK; +} + +CPlayerInfo* CPlayerInfo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex) +{ + CPlayerInfo* pInstance = new CPlayerInfo(); + + if (FAILED(pInstance->Initialize(pDevice, pContex))) { + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPlayerInfo::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pInfoInstance); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pContext); + +} diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp new file mode 100644 index 000000000..3c13ab1df --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -0,0 +1,689 @@ +#include "pch.h" +#include "Player.h" + +#include "GameInstance.h" +#include "CamPosition_Socket.h" +#include "Camera_Gaze.h" +#include "CamPosition_Arm.h" +#include "Wand.h" +#include "Character_Controller.h" +#include "CallBack_Playable_Behavior.h" +#include "CamPosition_Shoulder.h" +#include "CallBack_Playable_HitReport.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + +#include "Bombard.h" + +#pragma region States +void CPlayer::TestKeyInput(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Down(DIK_F1)) + { + m_eSpell = STATEANIM::ACCIO; + } + if (m_pGameInstance->Key_Down(DIK_F2)) + { + m_eSpell = STATEANIM::DESCENDO; + } + if (m_pGameInstance->Key_Down(DIK_F3)) + { + m_eSpell = STATEANIM::DEPULSO; + } + if (m_pGameInstance->Key_Down(DIK_F4)) + { + m_eSpell = STATEANIM::DIFFINDO; + } + if (m_pGameInstance->Key_Down(DIK_F5)) + { + m_eSpell = STATEANIM::DISILLUSION_ENTER; + } + if (m_pGameInstance->Key_Down(DIK_F6)) + { + m_eSpell = STATEANIM::DISILLUSION_EXIT; + } + +} + +HRESULT CPlayer::InputAction() +{ + if ( + m_pGameInstance->Key_Down(DIK_SPACE) + || m_pGameInstance->Key_Down(DIK_LCONTROL) + || m_pGameInstance->Key_Down(DIK_E) + || m_pGameInstance->Key_Down(DIK_R) + || m_pGameInstance->Key_Down(DIK_Q) + || m_pGameInstance->Mouse_Up(DIM_LBUTTON) + || m_pGameInstance->Key_Down(DIK_LSHIFT) + || m_pGameInstance->Key_Down(DIK_C) + || m_pGameInstance->Key_Down(DIK_V) + ) + { + return S_OK; + } + return E_FAIL; +} + +HRESULT CPlayer::InputMove() +{ + if (m_pGameInstance->Key_Pressing(DIK_W) + || m_pGameInstance->Key_Pressing(DIK_A) + || m_pGameInstance->Key_Pressing(DIK_S) + || m_pGameInstance->Key_Pressing(DIK_D)) + { + return S_OK; + } + return E_FAIL; +} + +HRESULT CPlayer::InputSpell() +{ + if ( + m_pGameInstance->Key_Down(DIK_1) + || m_pGameInstance->Key_Down(DIK_2) + || m_pGameInstance->Key_Down(DIK_3) + || m_pGameInstance->Key_Down(DIK_4) + ) + { + return S_OK; + } + return E_FAIL; +} + +void CPlayer::Behavior_IdleEnter() { + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT)) { + + if (m_pFSM->IsEnable_Previous(FSMSTATE::WALK)) { + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP]; + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::SPRINT)) { + pairAnimInfo = m_Animation[STATEANIM::JOG_STOP]; + } + + else if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG)) { + pairAnimInfo = m_Animation[STATEANIM::JOG_STOP]; + } + } + m_bSprintToggle = false; + m_bWalkToggle = false; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_IdleExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + // S_OK -> 현 상태 유지 + // E_FAIL -> 현 상태 탈출 + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_SPACE)) { + m_pFSM->Change_State(FSMSTATE::JUMP); + } + else if (m_pGameInstance->Key_Down(DIK_LCONTROL)) { + m_pFSM->Change_State(FSMSTATE::DODGE); + } + else if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + return E_FAIL; + } + + if (SUCCEEDED(InputMove())) { + + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + + if (m_pModelCom->IsFinishedAnim()) + { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return S_OK; +} + +void CPlayer::Behavior_IdleExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLE); +} + +void CPlayer::Behavior_MoveEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + _bool bFoward = m_pGameInstance->Key_Pressing(DIK_W); + _bool bLeft = m_pGameInstance->Key_Pressing(DIK_A); + _bool bRight = m_pGameInstance->Key_Pressing(DIK_D); + _bool bBackward = m_pGameInstance->Key_Pressing(DIK_S); + m_pFSM->Enable_State(FSMSTATE::MOVE); + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::DODGE)) { + if (true == m_bSprintToggle) { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_bWalkToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + } + else if (true == m_bWalkToggle) { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_bSprintToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else if (true == bBackward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_BWD]; + } + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_bSprintToggle = false; + m_bWalkToggle = false; + if (bFoward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + else if (bBackward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; + m_fAmount = 0.2f; + } + + } + } + else { // While Moving + if (true == m_bSprintToggle) { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_bWalkToggle = false; + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + + } + else if (true == m_bWalkToggle) { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_bSprintToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else if (true == bBackward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_BWD]; + } + } + else { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_bSprintToggle = false; + m_bWalkToggle = false; + if (bFoward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + } + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount); + m_fAmount = 1.f; +} + +HRESULT CPlayer::Behavior_MoveExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_SPACE)) { + m_pFSM->Change_State(FSMSTATE::JUMP); + } + else if (m_pGameInstance->Key_Down(DIK_LCONTROL)) { + m_pFSM->Change_State(FSMSTATE::DODGE); + } + else if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) { + m_bSprintToggle = !m_bSprintToggle; + m_bWalkToggle = false; + if (m_bSprintToggle) + { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_pFSM->Disable_State(FSMSTATE::JOG); + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_pFSM->Disable_State(FSMSTATE::SPRINT); + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + else if (m_pGameInstance->Key_Down(DIK_C)) { + m_bWalkToggle = !m_bWalkToggle; + m_bSprintToggle = false; + if (m_bWalkToggle) + { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_pFSM->Disable_State(FSMSTATE::JOG); + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_pFSM->Disable_State(FSMSTATE::WALK); + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return E_FAIL; + } + if (SUCCEEDED(InputMove())) { + if (m_pModelCom->IsFinishedAnim() && m_pFSM->IsEnable(FSMSTATE::JOG)) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return S_OK; + } + + m_pFSM->Change_State(FSMSTATE::IDLE); + + return E_FAIL; +} + +void CPlayer::Behavior_MoveExit() +{ + m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK); +} + +void CPlayer::Behavior_JumpEnter() +{ + pair<_uint, _bool> pairAnimInfo; + m_pFSM->Enable_State(FSMSTATE::JUMP); + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT)) { + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP); + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::SPRINT)) { + pairAnimInfo = m_Animation[STATEANIM::JUMP_SPRINT]; + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::WALK)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP); + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP_JOG); + } + } + else { + // Drop? + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_JumpExitCheck() +{ + if (IsCurrentKeyFrame("Jump")) { + m_pFSM->Change_State(FSMSTATE::LAND); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_JumpExit() +{ + m_pFSM->Disable_State(FSMSTATE::JUMP); +} + +void CPlayer::Behavior_LandEnter() +{ + m_pFSM->Enable_State(FSMSTATE::LAND); + pair<_uint, _bool> pairAnimInfo = Get_AnimInfo(STATEANIM::LAND); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_LandExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } // 혹시 Land to (Jog, Sprint, Dodge) 같은 애니메이션 있으면 여기에 분기 조건 넣으면 됨 + + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_LandExit() +{ + m_pFSM->Disable_State(FSMSTATE::LAND); +} + +void CPlayer::Behavior_DodgeEnter() +{ + // 혹시 @@ to Dodge 있으면 여기에 + m_pFSM->Enable_State(FSMSTATE::DODGE); + pair<_uint, _bool> pairAnimInfo = Get_AnimInfo(STATEANIM::DODGE); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_DodgeExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + + if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Dodge")) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_DodgeExit() +{ + m_pFSM->Disable_State(FSMSTATE::DODGE); +} + +void CPlayer::Behavior_CombatEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + m_pFSM->Enable_State(FSMSTATE::COMBAT); + + if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Enable_State(FSMSTATE::SKILL); + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Enable_State(FSMSTATE::SKILL2); + pairAnimInfo = m_Animation[STATEANIM::SKILL2]; + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Enable_State(FSMSTATE::SPELL); + if (m_eSpell != STATEANIM::END) + { + switch (m_eSpell) + { + case STATEANIM::DEPULSO: + pairAnimInfo = m_Animation[STATEANIM::DEPULSO]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DIFFINDO: + pairAnimInfo = m_Animation[STATEANIM::DIFFINDO]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DISILLUSION_ENTER: + pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DISILLUSION_EXIT: + pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_EXIT]; + m_eSpell = STATEANIM::END; + break; + default: + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + break; + } + } + else + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Enable_State(FSMSTATE::MAPHELP); + pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; + + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_CombatExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_R)) + { + m_pFSM->Enable_State(FSMSTATE::SKILL); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) + { + m_pFSM->Enable_State(FSMSTATE::SKILL2); + pairAnimInfo = m_Animation[STATEANIM::SKILL2]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) + { + m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + _uint iIndex = m_pModelCom->Get_AnimIndex(); + if (m_Animation[STATEANIM::LIGHT_ATTACK].first <= iIndex && m_Animation[STATEANIM::LIGHT_ATTACK].first + 3 > iIndex) { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (fRatio >= 0.1f) { + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + pairAnimInfo.first = iIndex + 1; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + } + else if (SUCCEEDED(InputSpell())) + { + m_pFSM->Enable_State(FSMSTATE::SPELL); + _uint iIndex = m_pModelCom->Get_AnimIndex(); + if (m_Animation[STATEANIM::SPELL].first <= iIndex && m_Animation[STATEANIM::SPELL].first + 3 > iIndex) { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (fRatio >= 0.15f) { + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + pairAnimInfo.first = iIndex + 1; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + } + else if (m_pGameInstance->Key_Down(DIK_V)) + { + m_pFSM->Enable_State(FSMSTATE::MAPHELP); + pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + + if (m_pFSM->IsEnable(FSMSTATE::SPELL) && IsCurrentKeyFrame("Combat")) + { + if (m_eSpell != STATEANIM::END) + { + switch (m_eSpell) + { + case STATEANIM::ACCIO: + { + /* TODO 임시 방편 */ + pairAnimInfo = m_Animation[STATEANIM::ACCIO]; + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) { + assert(false); + return E_FAIL; + } + + } + break; + case STATEANIM::DESCENDO: + pairAnimInfo = m_Animation[STATEANIM::DESCENDO]; + break; + default: + break; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_eSpell = STATEANIM::END; + return E_FAIL; + } + } + + if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + + return E_FAIL; +} + +void CPlayer::Behavior_CombatExit() +{ + m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP); +} + +void CPlayer::Add_FSM() +{ +#pragma region Behavior_Movement_NotFocus + { + CState_Idle::STATE_IDLE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_IdleExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); + } + { + CState_Move::STATE_MOVE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_MoveExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Movement_Focus + { + CState_Jump::STATE_JUMP_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_JumpEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_JumpExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_JumpExit(); }; + m_States.emplace(FSMSTATE::JUMP, CState_Jump::Create(&Desc)); + } + { + CState_Land::STATE_LAND_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_LandEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_LandExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_LandExit(); }; + m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc)); + } + { + CState_Dodge::STATE_DODGE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_DodgeEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_DodgeExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_DodgeExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_NotFocus + { + CState_Combat::STATE_COMBAT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_CombatExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_Focus + +#pragma endregion + +} + +void CPlayer::Set_Anim() +{ + m_Animation[STATEANIM::IDLE] = { 817,true }; + m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false }; + m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false }; + m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false }; + + m_Animation[STATEANIM::WALK_FWD] = { 625,true }; + m_Animation[STATEANIM::WALK_BWD] = { 166,true }; + m_Animation[STATEANIM::WALK_STOP] = { 344,false }; + + m_Animation[STATEANIM::JOG_FWD] = { 167,true }; + m_Animation[STATEANIM::JOG_BWD] = { 154,false }; + m_Animation[STATEANIM::JOG_STOP] = { 289,false }; + + m_Animation[STATEANIM::JUMP] = { 205,false }; + m_Animation[STATEANIM::JUMP_JOG] = { 203,false }; + m_Animation[STATEANIM::JUMP_SPRINT] = { 207,false }; + + m_Animation[STATEANIM::SPRINT] = { 599,true }; + + m_Animation[STATEANIM::LAND] = { 259,false }; + + m_Animation[STATEANIM::DODGE] = { 802,false }; + m_Animation[STATEANIM::DODGE_BLINK] = { 799,true }; + + m_Animation[STATEANIM::SKILL] = { 593,false }; + m_Animation[STATEANIM::SKILL2] = { 915,false }; + m_Animation[STATEANIM::LIGHT_ATTACK] = { 413,false }; + m_Animation[STATEANIM::SPELL] = { 696,false }; + m_Animation[STATEANIM::MAPHELP] = { 122,false }; + m_Animation[STATEANIM::ACCIO] = { 417,false }; + m_Animation[STATEANIM::DESCENDO] = { 418,false }; + m_Animation[STATEANIM::DEPULSO] = { 782,false }; + m_Animation[STATEANIM::DIFFINDO] = { 786,false }; + m_Animation[STATEANIM::LUMOS] = { 782,false }; + m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false }; + m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false }; +} +#pragma endregion State + diff --git a/Jusin154_Team3D/Client/Private/SkyBox.cpp b/Jusin154_Team3D/Client/Private/SkyBox.cpp new file mode 100644 index 000000000..222ba7107 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/SkyBox.cpp @@ -0,0 +1,155 @@ +#include "pch.h" +#include "SkyBox.h" + +#include "GameInstance.h" +#include "Layer.h" +#include "Camera_Gaze.h" + +CSkyBox::CSkyBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CSkyBox::CSkyBox(const CSkyBox& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CSkyBox::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CSkyBox::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + return S_OK; +} + +void CSkyBox::Priority_Update(_float fTimeDelta) +{ + +} + +void CSkyBox::Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_CamXMPosition()); +} + +void CSkyBox::Late_Update(_float fTimeDelta) +{ + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::PRIORITY, this); + } +} + +HRESULT CSkyBox::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::SKYBOX)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + + return S_OK; +} + +HRESULT CSkyBox::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CSkyBox::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CSkyBox* CSkyBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CSkyBox* pInstance = new CSkyBox(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CSkyBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CSkyBox::Clone(void* pArg, CGameObject* pOwner) +{ + CSkyBox* pInstance = new CSkyBox(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSkyBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CSkyBox::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); +} +#ifdef _DEBUG + +void CSkyBox::Describe_Entity() +{ +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Private/State_Combat.cpp b/Jusin154_Team3D/Client/Private/State_Combat.cpp new file mode 100644 index 000000000..1e8e15653 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Combat.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Combat.h" +#include "Unit.h" + + +CState_Combat::CState_Combat() + :CState_Root() +{ +} + +void CState_Combat::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Combat::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Combat::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Combat::Initialize(STATE_COMBAT_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Combat* CState_Combat::Create(STATE_COMBAT_DESC* pDesc) +{ + CState_Combat* pInstance = new CState_Combat; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Combat::Free() +{ + __super::Free(); +} + +void CState_Combat::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Dodge.cpp b/Jusin154_Team3D/Client/Private/State_Dodge.cpp new file mode 100644 index 000000000..b2c342f49 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Dodge.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Dodge.h" +#include "Unit.h" + + +CState_Dodge::CState_Dodge() + :CState_Root() +{ +} + +void CState_Dodge::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Dodge::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (FAILED(__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Dodge::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Dodge::Initialize(STATE_DODGE_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Dodge* CState_Dodge::Create(STATE_DODGE_DESC* pDesc) +{ + CState_Dodge* pInstance = new CState_Dodge; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Dodge::Free() +{ + __super::Free(); +} + +void CState_Dodge::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Idle.cpp b/Jusin154_Team3D/Client/Private/State_Idle.cpp new file mode 100644 index 000000000..a374fbdc1 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Idle.cpp @@ -0,0 +1,64 @@ +#include "pch.h" +#include "State_Idle.h" +#include "GameInstance.h" +#include "Unit.h" + +CState_Idle::CState_Idle() + :CState_Root() +{ +} + +void CState_Idle::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Idle::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Idle::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Idle::Initialize(STATE_IDLE_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Idle* CState_Idle::Create(STATE_IDLE_DESC* pDesc) +{ + CState_Idle* pInstance = new CState_Idle; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Idle::Free() +{ + __super::Free(); +} + +void CState_Idle::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Jump.cpp b/Jusin154_Team3D/Client/Private/State_Jump.cpp new file mode 100644 index 000000000..753110099 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Jump.cpp @@ -0,0 +1,56 @@ +#include "pch.h" +#include "State_Jump.h" +#include "Unit.h" + + +CState_Jump::CState_Jump() + :CState_Root() +{ +} + +void CState_Jump::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Jump::Update(_float fTimeDelta) +{ + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; +} + +void CState_Jump::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Jump::Initialize(STATE_JUMP_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Jump* CState_Jump::Create(STATE_JUMP_DESC* pDesc) +{ + CState_Jump* pInstance = new CState_Jump; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Jump::Free() +{ + __super::Free(); +} + +void CState_Jump::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Land.cpp b/Jusin154_Team3D/Client/Private/State_Land.cpp new file mode 100644 index 000000000..f1b64c618 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Land.cpp @@ -0,0 +1,56 @@ +#include "pch.h" +#include "State_Land.h" +#include "Unit.h" + + +CState_Land::CState_Land() + :CState_Root() +{ +} + +void CState_Land::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Land::Update(_float fTimeDelta) +{ + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; +} + +void CState_Land::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Land::Initialize(STATE_LAND_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Land* CState_Land::Create(STATE_LAND_DESC* pDesc) +{ + CState_Land* pInstance = new CState_Land; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Land::Free() +{ + __super::Free(); +} + +void CState_Land::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Move.cpp b/Jusin154_Team3D/Client/Private/State_Move.cpp new file mode 100644 index 000000000..71621a370 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Move.cpp @@ -0,0 +1,65 @@ +#include "pch.h" +#include "State_Move.h" +#include "Unit.h" + + +CState_Move::CState_Move() + :CState_Root() +{ +} + +void CState_Move::Enter() +{ + __super::Enter(); +} + +HRESULT CState_Move::Update(_float fTimeDelta) +{ + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; +} + +void CState_Move::Exit() +{ + __super::Exit(); +} + +HRESULT CState_Move::Initialize(STATE_MOVE_DESC* pDesc) +{ + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; +} + +CState_Move* CState_Move::Create(STATE_MOVE_DESC* pDesc) +{ + CState_Move* pInstance = new CState_Move; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CState_Move::Free() +{ + __super::Free(); +} + +void CState_Move::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/State_Root.cpp b/Jusin154_Team3D/Client/Private/State_Root.cpp new file mode 100644 index 000000000..18349525b --- /dev/null +++ b/Jusin154_Team3D/Client/Private/State_Root.cpp @@ -0,0 +1,51 @@ +#include "pch.h" +#include "State_Root.h" +#include "Unit.h" + +CState_Root::CState_Root() + :CState() +{ +} + +void CState_Root::Enter() +{ + if (nullptr != m_funcEnterEvent) { + m_funcEnterEvent(); + } +} + +HRESULT CState_Root::Update(_float fTimeDelta) +{ + HRESULT hr = { S_OK }; + if (nullptr != m_funcExitCheck) { + hr = m_funcExitCheck(fTimeDelta); + } + return hr; +} + +void CState_Root::Exit() +{ + if (nullptr != m_funcExitEvent) { + m_funcExitEvent(); + } +} + +HRESULT CState_Root::Initialize(STATE_ROOT_DESC* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + m_funcExitCheck = pArg->funcExitCheck; + m_funcEnterEvent = pArg->funcEnterEvent; + m_funcExitEvent = pArg->funcExitEvent; + return S_OK; +} + +void CState_Root::Free() +{ + __super::Free(); +} + +void CState_Root::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Client/Private/TrailObject.cpp b/Jusin154_Team3D/Client/Private/TrailObject.cpp new file mode 100644 index 000000000..4609804ab --- /dev/null +++ b/Jusin154_Team3D/Client/Private/TrailObject.cpp @@ -0,0 +1,453 @@ +#include "pch.h" +#include "TrailObject.h" + +#include "GameInstance.h" +#include "Trail.h" + + +CTrailObject::CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CPartObject{ pDevice, pContext } +{ +} + +CTrailObject::CTrailObject(const CTrailObject& rhs) + : CPartObject(rhs) +{ +} + +HRESULT CTrailObject::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CTrailObject::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + return S_OK; +} + +void CTrailObject::Priority_Update(_float fTimeDelta) +{ + +} + +void CTrailObject::Update(_float fTimeDelta) +{ + + if (m_bVisible == false) + return; + + if (m_TrailInfo.vDistortionTime.y == 0) + return; + + m_TrailInfo.vDistortionTime.x += fTimeDelta; + + if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y) + { + m_TrailInfo.vDistortionTime.x = 0.f; + } +} + +void CTrailObject::Late_Update(_float fTimeDelta) +{ + + if (m_bVisible == false) + return; + + if (m_TrailInfo.isBlur == true) + { + m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + } + + if (m_TrailInfo.isOnlyBlur == true) + return; + + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + } + +} + +HRESULT CTrailObject::Ready_Components(void* pArg) +{ + + if (FAILED(__super::Ready_Components(nullptr))) { + return E_FAIL; + } + + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + CTrail::TRAIL_DESC pTrailDesc; + + pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f); + pTrailDesc.vLow = _float3(0.f, -1.f, 0.f); + + if (FAILED(Add_Component(g_iStaticLevel, &m_pTrailCom, &pTrailDesc))) { + return E_FAIL; + } + + return S_OK; +} + +void CTrailObject::Trail_Update(_fmatrix WorldMat , _float fTimeDelta) +{ + m_pTrailCom->Trail_Update(fTimeDelta, WorldMat); +} + +HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel) +{ + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pDistortion_TextureCom); + + _string strPerfectFilePath = pPath; + + strPerfectFilePath += ".trail"; + + DWORD dwByte(0); + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름 + GENERIC_READ, // 읽기 모드 + FILE_SHARE_READ, // 다른 프로세스도 읽기 가능 + NULL, + OPEN_EXISTING, // 기존 파일 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + m_strPath = strPerfectFilePath; + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK); + return E_FAIL; + } + + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailDiffuseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + return E_FAIL; + } + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + + } + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + return E_FAIL; + } + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + return E_FAIL; + + } + + + m_pTrailCom->Load_Trail(hFile); + + + if (!ReadFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + CloseHandle(hFile); + + return S_OK; +} + +HRESULT CTrailObject::Render() +{ + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL)))) + return E_FAIL; + + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + if (FAILED(m_pTrailCom->Render())) + return E_FAIL; + + return S_OK; +} + +HRESULT CTrailObject::Render_Blur() +{ + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR)))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_TrailInfo.fBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_TrailInfo.iBlurWeight, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + if (FAILED(m_pTrailCom->Render())) + return E_FAIL; + + return S_OK; +} + + + +CTrailObject* CTrailObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTrailObject* pInstance = new CTrailObject(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTrailObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CTrailObject::Clone(void* pArg, CGameObject* pOwner) +{ + CTrailObject* pInstance = new CTrailObject(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTrailObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTrailObject::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pDistortion_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pTrailCom); +} +#ifdef _DEBUG + +void CTrailObject::Describe_Entity() +{ + +} +#endif // _DEBUG + + +HRESULT CTrailObject::Bind_ShaderResources() +{ + + if (FAILED(m_pTrailCom->Bind_Resources())) + return E_FAIL; + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + /* 디퓨즈 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_TrailInfo.isDiffuse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_TrailInfo.fDiffuseAlpha, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_TrailInfo.vColor, sizeof(_float4)))) { + return E_FAIL; + } + + /* 마스크 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_TrailInfo.isMask, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_TrailInfo.fSoftMask, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, sizeof(_float)))) { + return E_FAIL; + } + + /* 노이즈 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_TrailInfo.isNoise, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_TrailInfo.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_TrailInfo.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseStrength", &m_TrailInfo.fNoiseStrength, sizeof(_float)))) { + return E_FAIL; + } + + /* 디스토션 */ + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_TrailInfo.isDistortion, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_TrailInfo.vDistortionTime, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_TrailInfo.vDiffuseDistortioUVAmount, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDistortionIntensity", &m_TrailInfo.fDistortionIntensity, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_TrailInfo.vMaskDistortionUVAmount, sizeof(_float2)))) { + return E_FAIL; + } + + + + /* 이미시브 */ + if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_TrailInfo.fEmissiveStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_TrailInfo.fSoftenExp, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_TrailInfo.fSoftStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_TrailInfo.fCoreBoost, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_TrailInfo.fRadius, sizeof(_float)))) { + return E_FAIL; + } + + + if (m_pDiffuse_TextureCom != nullptr) + { + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pNoise_TextureCom != nullptr) + { + if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_NoiseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pMasking_TextureCom != nullptr) + { + if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDistortion_TextureCom != nullptr) + { + if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) { + return E_FAIL; + } + } + + return S_OK; +} diff --git a/Jusin154_Team3D/Client/Private/Wand.cpp b/Jusin154_Team3D/Client/Private/Wand.cpp new file mode 100644 index 000000000..f7bf9b126 --- /dev/null +++ b/Jusin154_Team3D/Client/Private/Wand.cpp @@ -0,0 +1,226 @@ +#include "pch.h" +#include "Wand.h" + +#include "GameInstance.h" +#include "TrailObject.h" +#include "EffectParts.h" + +CWand::CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CPartObject(pDevice, pContext) +{ +} + +CWand::CWand(const CWand& Prototype) + : CPartObject(Prototype) +{ +} + +HRESULT CWand::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CWand::Initialize(void* pArg) +{ + WAND_DESC* pDesc = static_cast (pArg); + m_pSocketMatrices = pDesc->pSocketMatrices; + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + + if (FAILED(Ready_Components())) + return E_FAIL; + + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this , &m_pTrail))) { + assert(false); + return E_FAIL; + } + + if (FAILED(m_pTrail->Load_Trail("../Bin/Resources/Data/Effect/Trail/Bombard_Trail" , static_cast(NEXT_LEVEL)))) + return E_FAIL; + + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this, &m_pEffectParts))) { + assert(false); + return E_FAIL; + } + SAFE_ADDREF(m_pTrail); + SAFE_ADDREF(m_pEffectParts); + + m_pEffectParts->Load("../Bin/Resources/Data/Effect/Lumos/Lumos", static_cast(NEXT_LEVEL)); + + m_pEffectParts->Set_Visible(true); + + return S_OK; +} + +void CWand::Priority_Update(_float fTimeDelta) +{ + _matrix socketMatrix = {}; + + socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + } + + m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); + +#ifdef _DEBUG + Describe_Entity(); + +#endif // _DEBUG +} + +void CWand::Update(_float fTimeDelta) +{ + + //m_pTrail->Trail_Update(CombinedMat, fTimeDelta); + + + m_pModelCom->Combined_BoneMatrix(); + + _matrix BoneMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("Effect")); + + BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix(); + + + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * m_vOffset.x; + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * m_vOffset.y; + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * m_vOffset.z; + + m_pEffectParts->Get_Component()->Set_WorldMatrix(BoneMatrix); + +} + +void CWand::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); +} + +HRESULT CWand::Render() +{ + if (!m_pModelCom) + return S_OK; + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + + +HRESULT CWand::Ready_Components() +{ + __super::Ready_Components(nullptr); + + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Wand_Model"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CWand::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + + +CWand* CWand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CWand* pInstance = new CWand(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CWand"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CWand::Clone(void* pArg, CGameObject* pOwner) +{ + CWand* pInstance = new CWand(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CWand"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CWand::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pEffectParts); + SAFE_RELEASE(m_pTrail); +} +#ifdef _DEBUG + +void CWand::Describe_Entity() +{ + GUI::Begin("VALUE"); + + _float4 vValue = {}; + + if (GUI::InputFloat3("OFFSET", (_float*)&m_vOffset)) + { + } + + GUI::End(); +} + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Client/Public/Bombard.h b/Jusin154_Team3D/Client/Public/Bombard.h new file mode 100644 index 000000000..a7d0b9488 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Bombard.h @@ -0,0 +1,44 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CBombard final : public CEffect_Container +{ +private: + CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBombard(const CBombard& rhs); + virtual ~CBombard() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CPhysXEffectHitBox* m_pPhysHitBox = {}; + class CPartObject* m_pLight_Projectile = {}; +public: + static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Broom.h b/Jusin154_Team3D/Client/Public/Broom.h new file mode 100644 index 000000000..afddef72a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Broom.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CBroom final : public CGameObject +{ +private: + CBroom(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBroom(const CBroom& Prototype); + virtual ~CBroom() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + _bool m_bRimLight = { true }; + _float m_fRimLightPower = { 3.2f }; + _float m_fRimLightStrength = { 3.04f }; + _float3 m_vRimLightColor = { 69.f / 255.f, 5.f / 255.f, 10.f / 255.f }; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CBroom* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_Behavior.h b/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_Behavior.h new file mode 100644 index 000000000..3c8c10aa9 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_Behavior.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_EffectHitBox_Behavior final : public PSX::PxControllerBehaviorCallback +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_EffectHitBox_Behavior(); +public: + ~CCallBack_EffectHitBox_Behavior(); + +public: + // PxControllerBehaviorCallback을(를) 통해 상속됨 + // 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함 + // slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌 + // 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? ) + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override; + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_EffectHitBox_Behavior* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_HitReport.h b/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_HitReport.h new file mode 100644 index 000000000..4ec92ffbc --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_EffectHitBox_HitReport.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_EffectHitBox_HitReport final : public PSX::PxUserControllerHitReport +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_EffectHitBox_HitReport(); +public: + ~CCallBack_EffectHitBox_HitReport(); + +public: + // PxUserControllerHitReport을(를) 통해 상속됨 + // 충돌알림!! + // 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까? + virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우 + + virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우 + + virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우 + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_EffectHitBox_HitReport* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_Monster_Behavior.h b/Jusin154_Team3D/Client/Public/CallBack_Monster_Behavior.h new file mode 100644 index 000000000..eaf953c2d --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_Monster_Behavior.h @@ -0,0 +1,45 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_Monster_Behavior final : public PSX::PxControllerBehaviorCallback +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_Monster_Behavior(); +public: + ~CCallBack_Monster_Behavior(); + + +public: + // PxControllerBehaviorCallback을(를) 통해 상속됨 + // 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함 + // slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌 + // 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? ) + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override; + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); + +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_Monster_Behavior* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_Monster_HitReport.h b/Jusin154_Team3D/Client/Public/CallBack_Monster_HitReport.h new file mode 100644 index 000000000..dc3783eff --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_Monster_HitReport.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_Monster_HitReport final : public PSX::PxUserControllerHitReport +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_Monster_HitReport(); +public: + ~CCallBack_Monster_HitReport(); + +public: + // PxUserControllerHitReport을(를) 통해 상속됨 + // 충돌알림!! + // 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까? + virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우 + + virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우 + + virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우 + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_Monster_HitReport* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_Playable_Behavior.h b/Jusin154_Team3D/Client/Public/CallBack_Playable_Behavior.h new file mode 100644 index 000000000..2afe78d2a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_Playable_Behavior.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_Playable_Behavior final : public PSX::PxControllerBehaviorCallback +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_Playable_Behavior(); +public: + ~CCallBack_Playable_Behavior(); + +public: + // PxControllerBehaviorCallback을(를) 통해 상속됨 + // 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함 + // slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌 + // 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? ) + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override; + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_Playable_Behavior* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CallBack_Playable_HitReport.h b/Jusin154_Team3D/Client/Public/CallBack_Playable_HitReport.h new file mode 100644 index 000000000..cc22f7e6a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CallBack_Playable_HitReport.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CCallBack_Playable_HitReport final : public PSX::PxUserControllerHitReport +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_Playable_HitReport(); +public: + ~CCallBack_Playable_HitReport(); + +public: + // PxUserControllerHitReport을(를) 통해 상속됨 + // 충돌알림!! + // 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까? + virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우 + + virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우 + + virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우 + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_Playable_HitReport* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition.h b/Jusin154_Team3D/Client/Public/CamPosition.h new file mode 100644 index 000000000..f6cd71211 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CamPosition.h @@ -0,0 +1,38 @@ +#pragma once + +#include "Client_Define.h" + +#include "PartObject.h" + +NS_BEGIN(Client) + +class CCamPosition abstract : public CPartObject +{ +public: + typedef struct tagCamPosition : public CPartObject::PARTOBJECT_DESC + { + + }CAMERAPOSITION_DESC; +protected: + CCamPosition(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition(const CCamPosition& rhs); + virtual ~CCamPosition() = default; + +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + + +public: + CGameObject* Clone(void* pArg, CGameObject* pOwner)PURE; + + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Arm.h b/Jusin154_Team3D/Client/Public/CamPosition_Arm.h new file mode 100644 index 000000000..fa5bb8674 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CamPosition_Arm.h @@ -0,0 +1,47 @@ +#pragma once +#include "Client_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Client) + +class CCamPosition_Arm final : public CCamPosition +{ +public: + typedef struct tagCameraArm_Desc : public CCamPosition::CAMERAPOSITION_DESC + { + _float3 fEye{}, fAt{}; + _float fMouseSensor{}; + _float fDistance{}; + }CameraArm_DESC; +private: + CCamPosition_Arm(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Arm(const CCamPosition_Arm& rhs); + virtual ~CCamPosition_Arm() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources(); + _bool m_bMovable = true; + _float m_fMouseSensor = {}; + _float m_fDistance = {}; + _float m_fAccDegreeY = { }; + +public: + static CCamPosition_Arm* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Arm* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h new file mode 100644 index 000000000..00cb7f7c5 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CamPosition_Shoulder.h @@ -0,0 +1,68 @@ +#pragma once +#include "Client_Define.h" +#include "CamPosition.h" +#include "CamPosition_Target.h" + +NS_BEGIN(Client) + +class CCamPosition_Shoulder final : public CCamPosition +{ +public: + typedef struct tagCameraShoulder_Desc : public CCamPosition::CAMERAPOSITION_DESC + { + _float fMouseSensor = { 0.5f }; + _float fShoulderDistance = { 2.f }; + _float fBackFrontRatio = { 0.9f }; + _float fCameraFocalLength = { 10.f }; + _float3 vInitialLook = { 1.f, 2.f, -1.f }; + }CAMERA_SHOULDER_DESC; +private: + CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Shoulder(const CCamPosition_Shoulder& rhs); + virtual ~CCamPosition_Shoulder() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Ready_SubParts(); + + _bool m_bMovable = { true }; + _float m_fMouseSensor = { 0.5f }; + _float m_fShoulderDistance = { 2.f }; + _float m_fCameraFocalLength = { 10.f }; + _float m_fBackFrontRatio = { 0.9f }; + _float2 m_vAccDegreeXY = {}; + _float3 m_vShoulderPosRatio = { 1.f, 2.f, -1.f }; + + _float3 m_vShoulderStartRatio = { 1.f, 2.f, -1.f }; + _float3 m_vShoulderOtherRatio = { 1.f, 2.f, -1.f }; + + _bool m_bLerp = { false }; + _float2 m_vLerpTimer = { 0.f, 1.f }; + + + CCamPosition_Target* m_pTarget_LookPart = { nullptr }; + CCamPosition_Target* m_pTarget_FollowPart = { nullptr }; + class CCamera_Gaze* m_pBinded_Camera = { nullptr }; + +public: + static CCamPosition_Shoulder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Shoulder* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Socket.h b/Jusin154_Team3D/Client/Public/CamPosition_Socket.h new file mode 100644 index 000000000..c877cbd4f --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CamPosition_Socket.h @@ -0,0 +1,42 @@ +#pragma once +#include "Client_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Client) + +class CCamPosition_Socket final : public CCamPosition +{ +public: + typedef struct tagCamPosition_Player : public CCamPosition::CAMERAPOSITION_DESC + { + const _float4x4* pSocketMatrices = { }; + }CAMERAPOSITION_PLAYER_DESC; +private: + CCamPosition_Socket(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Socket(const CCamPosition_Socket& rhs); + virtual ~CCamPosition_Socket() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; +private: + const _float4x4* m_pSocketMatrices = { }; + +public: + static CCamPosition_Socket* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Socket* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h new file mode 100644 index 000000000..2f939317d --- /dev/null +++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h @@ -0,0 +1,41 @@ +#pragma once +#include "Client_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Client) + +class CCamPosition_Target final : public CCamPosition +{ +public: + typedef struct tagCamPosition_Target : public CCamPosition::CAMERAPOSITION_DESC + { + }CAMERAPOSITION_TARGET_DESC; +private: + CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Target(const CCamPosition_Target& rhs); + virtual ~CCamPosition_Target() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + +public: + static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Camera_Debug.h b/Jusin154_Team3D/Client/Public/Camera_Debug.h new file mode 100644 index 000000000..d1cb8c255 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Camera_Debug.h @@ -0,0 +1,49 @@ +#pragma once + +#include "Client_Define.h" +#include "Camera.h" + +NS_BEGIN(Client) + +class CCamera_Debug final : public CCamera +{ +public: + typedef struct tagCamera_Debug : public CCamera::CAMERA_DESC + { + _float3 vEye{}, vAt{}; + _float fMouseSensor{}; + }CAMERA_DEBUG_DESC; +private: + CCamera_Debug(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamera_Debug(const CCamera_Debug& rhs); + virtual ~CCamera_Debug() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + _bool m_bMovable = true; + _float m_fMouseSensor = {}; + _float4x4 m_matInitial = {}; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Bind_ShaderResources() override; + void Set_InitialPos(); + +public: + static CCamera_Debug* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Camera_Gaze.h b/Jusin154_Team3D/Client/Public/Camera_Gaze.h new file mode 100644 index 000000000..d78c1563a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Camera_Gaze.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "Camera.h" + +NS_BEGIN(Client) + +class CCamera_Gaze final : public CCamera +{ +public: + typedef struct tagCamera_Gaze : public CCamera::CAMERA_DESC + { + }CAMERA_GAZE_DESC; +private: + CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamera_Gaze(const CCamera_Gaze& rhs); + virtual ~CCamera_Gaze() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + void Update_LerpTimer(Engine::_float fTimeDelta); + void Enable_FollowLerp(); + void Enable_LookLerp(); + void Toggle_Priority(); + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Bind_ShaderResources() override; + +public: + static CCamera_Gaze* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Client_Define.h b/Jusin154_Team3D/Client/Public/Client_Define.h index e369c022d..fdd0675aa 100644 --- a/Jusin154_Team3D/Client/Public/Client_Define.h +++ b/Jusin154_Team3D/Client/Public/Client_Define.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include #include "../Default/framework.h" @@ -7,8 +7,8 @@ namespace Client { - const unsigned int g_iWinSizeX = 1920; - const unsigned int g_iWinSizeY = 1080; + const unsigned int g_iWinSizeX = 1920; + const unsigned int g_iWinSizeY = 1080; } diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h index 1a7388311..fa33157f5 100644 --- a/Jusin154_Team3D/Client/Public/Client_Enum.h +++ b/Jusin154_Team3D/Client/Public/Client_Enum.h @@ -1,15 +1,19 @@ -#pragma once +#pragma once namespace Client { - enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, END }; + enum class LEVEL { STATIC, LOADING, LOGO, INTRO, GAMEPLAY, FIELD, RESTART, END }; enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END }; + enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT }; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END }; enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END }; - enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, END }; + enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, END }; enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; - enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END }; - enum class SHADER_PASS_UIEDITOR { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END }; -} \ No newline at end of file + enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR, END }; + enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, BLUR_NO_WORLD, END }; + enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, END }; + + enum class EFFECT_TYPE { EFFECT, TRAIL, END }; +} diff --git a/Jusin154_Team3D/Client/Public/Client_Macro.h b/Jusin154_Team3D/Client/Public/Client_Macro.h index a9e42a633..3d6fa32ba 100644 --- a/Jusin154_Team3D/Client/Public/Client_Macro.h +++ b/Jusin154_Team3D/Client/Public/Client_Macro.h @@ -15,9 +15,10 @@ namespace Client { #define FX_POSTEX TEXT("FX_POSTEX") #define FX_NORTEX TEXT("FX_NORTEX") #define FX_CELL TEXT("FX_CELL") -#define FX_DEFERRED TEXT("FX_DEFFERED") #define FX_PARTICLE TEXT("FX_PARTICLE") +#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL") #define FX_UIEDITOR TEXT("FX_UIEDITOR") +#define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #pragma endregion #pragma region MACRO_PROTOTYPE @@ -27,6 +28,8 @@ namespace Client { #pragma endregion #pragma region OBJECT +#define CAMERA_DEBUG TEXT("CAMERA_DEBUG") +#define CAMERA_SHOULDER TEXT("CAMERA_SHOULDER") #pragma endregion #pragma region COMPONENT @@ -36,6 +39,7 @@ namespace Client { #define LAYER_FLOOR TEXT("Layer_Floor") #define LAYER_WALL TEXT("Layer_Wall") #define LAYER_CUBE TEXT("Layer_Cube") +#define LAYER_SKYBOX TEXT("Layer_SkyBox") #define LAYER_EDITOR_CAMERA TEXT("Layer_Editor_Camera") #define LAYER_BACKGROUND TEXT("Layer_BackGround") #define LAYER_MARKER TEXT("Layer_Marker") @@ -49,7 +53,9 @@ namespace Client { #define LAYER_DOT TEXT("Layer_Dot") #define LAYER_CELL TEXT("Layer_Cell") #define LAYER_TRIGGER TEXT("Layer_Trigger") +#define LAYER_LIGHT TEXT("Layer_Light") +#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager") #pragma endregion #pragma region MACRO_TEXTURE @@ -58,4 +64,4 @@ namespace Client { #pragma region MACRO_EXTRA #pragma endregion -} \ No newline at end of file +} diff --git a/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h b/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h new file mode 100644 index 000000000..6c2583d33 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Dummy_PhysXPlayable.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" +#include "CallBack_Playable_Behavior.h" +#include "CallBack_Playable_HitReport.h" + +NS_BEGIN(Client) + +class CDummy_PhysXPlayable final : public CGameObject +{ +public: + typedef struct tagPhysXDummyDesc + { + _float3 vPos = { }; + _float3 vRotRPY = { }; + _uint iSubKind = { }; + }PHYSXDUMMY_DESC; +private: + CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_PhysXPlayable(const CDummy_PhysXPlayable& rhs); + virtual ~CDummy_PhysXPlayable() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr }; + CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr }; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummy_PhysXPlayable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h b/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h new file mode 100644 index 000000000..a51fb0305 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Dummy_PhysXWall.h @@ -0,0 +1,51 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CDummy_PhysXWall final : public CGameObject +{ +public: + typedef struct tagPhysXDummyDesc + { + _float3 vPos = { }; + _float3 vRotRPY = { }; + _uint iSubKind = { }; + }PHYSXDUMMY_DESC; +private: + CDummy_PhysXWall(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_PhysXWall(const CDummy_PhysXWall& rhs); + virtual ~CDummy_PhysXWall() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CRigidBody* m_pRigidBody = { nullptr }; + const PSX::PxRigidDynamic* m_pActor = { nullptr }; + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummy_PhysXWall* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/EffectObject.h b/Jusin154_Team3D/Client/Public/EffectObject.h new file mode 100644 index 000000000..497dd03b1 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/EffectObject.h @@ -0,0 +1,140 @@ +#pragma once + +#include "Client_Define.h" +#include "PartObject.h" + +NS_BEGIN(Engine) +class CInstance_Model; +class CShader; +class CTexture; +class CLight; +class CTrail; +NS_END + +NS_BEGIN(Client) + +class CEffectObject abstract : public CPartObject +{ +public: + typedef struct tagEffectInfo + { + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; + + _float2 vDiffuseUVGainAmount = {}; + _float2 vMaskingUVGainAmount = {}; + _float2 vNoiseUVGainAmount = {}; + + _float2 vDiffuseDistortionUVGainAmount = {}; + _float2 vMaskDistortionUVGainAmount = {}; + + _float2 vUVCutting = { 1.f ,1.f }; + _float2 vUVMaskCutting = { 1.f ,1.f }; + + _int iMaskMoveLerpOption = { 0 }; + _int iDiffuseMoveLerpOption = { 0 }; + _int iNoiseMoveLerpOption = { 0 }; + + _int iMaskDistortionMoveLerpOption = { 0 }; + _int iDiffuseDistortionMoveLerpOption = { 0 }; + + _int iBlurWeight = { 0 }; + + + _bool isDiffuse = {}; + _bool isMasking = {}; + _bool isDissolve = {}; + _bool isNoise = {}; + _bool isEmissive = {}; + _bool isDistortion = {}; + _bool isDiffuseUVMove = {}; + _bool isNoiseUVMove = {}; + _bool isMaskUVMove = {}; + _bool isBlur = {}; + _bool isBillboard = {}; + + + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; + _float fDiffuseAlpha = { 1.f }; + _float fBlurIntensity = {}; + _float fNoiseDistortionIntensity = {}; + _float fEmissiveStrength = { 0.f }; + + LIGHT_DESC LightDesc = {}; + RENDER eRenderOrder = { RENDER::EFFECT }; + + _bool isReverseDissolve = {}; + + EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT }; + + _bool isEmissiveDissolve = { false }; + + _bool isMaskClampSample = { false }; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _bool isNomalDissolve = {}; + + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + _bool isEmissiveDissolveReverse = { false }; + _bool isOnlyBlur = { false }; + + SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; + + }EFFECT_INFO; + + +protected: + CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CEffectObject(const CEffectObject& rhs); + virtual ~CEffectObject() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual HRESULT Render_Blur() override; +public: + HRESULT Load(const _char* pFilePath, LEVEL eLevel); + +protected: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +protected: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pNoise_TextureCom = { nullptr }; + CTexture* m_pMasking_TextureCom = { nullptr }; + CTexture* m_pDissolve_TextureCom = { nullptr }; + CTexture* m_pEmissive_TextureCom = { nullptr }; + CTexture* m_pDistortion_TextureCom = { nullptr }; + + CShader* m_pShaderCom = { nullptr }; + CLight* m_pLightCom = { nullptr }; + + CInstance_Model* m_pInstance_ModelCom = { nullptr }; + + +protected: + EFFECT_INFO m_EffectInfo = {}; + _string m_strDiffuseName = {}; + _string m_strNoiseName = {}; + _string m_strMaskingName = {}; + _string m_strDissolveName = {}; + _string m_strModelName = {}; + _string m_strEmissiveName = {}; + _string m_strDistortionName = {}; + +public: + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/EffectParts.h b/Jusin154_Team3D/Client/Public/EffectParts.h new file mode 100644 index 000000000..b9e615b1c --- /dev/null +++ b/Jusin154_Team3D/Client/Public/EffectParts.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Client_Define.h" +#include "EffectObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +NS_END + +NS_BEGIN(Client) + +class CEffectParts final : public CEffectObject +{ +private: + CEffectParts(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CEffectParts(const CEffectParts& rhs); + virtual ~CEffectParts() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + +public: + static CEffectParts* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Effect_Container.h b/Jusin154_Team3D/Client/Public/Effect_Container.h new file mode 100644 index 000000000..e0e067265 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Effect_Container.h @@ -0,0 +1,51 @@ +#pragma once + +#include "Client_Define.h" +#include "ContainerObject.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CEffect_Container abstract : public CContainerObject +{ +protected: + CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CEffect_Container(const CEffect_Container& rhs); + virtual ~CEffect_Container() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +public: + HRESULT Load_Directory(const _char* pPath); +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + + void Update_Event(_float fTimeDelta); + +protected: + _wstring m_wstrEffectName = {}; + + _bool m_isLoop = {}; + + _float m_fAccTime = {}; + _float m_fPreAccTime = {}; + _float m_fDuration = {}; + _float m_fDelay = {}; + _bool m_isDelayed = { false }; + + map<_float, function> m_Events = {}; + +public: + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h new file mode 100644 index 000000000..941a2de85 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/GamePlay_Canvas.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Client_Define.h" +#include "CanvasObject.h" + +NS_BEGIN(Engine) +class CGameObject; +NS_END + +NS_BEGIN(Client) + +class CGamePlay_Canvas final : public CCanvasObject +{ +private: + CGamePlay_Canvas(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CGamePlay_Canvas(const CGamePlay_Canvas& rhs); + virtual ~CGamePlay_Canvas() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Ready_Panel(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +public: + void Clear_Penel(); + +private: + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + CGameObject* m_pMission_Panel = { nullptr }; + CGameObject* m_pMinimap_Panel = { nullptr }; + CGameObject* m_pLoading_Panel = { nullptr }; + CGameObject* m_pAction_Panel = { nullptr }; + +public: + static CGamePlay_Canvas* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h new file mode 100644 index 000000000..0665ba634 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Goblin.h @@ -0,0 +1,64 @@ +#pragma once + +#include "Client_Define.h" +#include "Monster.h" +#include "CallBack_Monster_Behavior.h" +#include "CallBack_Monster_HitReport.h" + +NS_BEGIN(Client) + +class CGoblin final : public CMonster +{ +private: + CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CGoblin(const CGoblin& Prototype); + virtual ~CGoblin() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr }; + CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr }; + + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG + +private: + virtual void Add_FSM(); + virtual void Set_Anim(); + + + void Behavior_IdleEnter(); + HRESULT Behavior_IdleExitCheck(); + void Behavior_IdleExit(); + + void Behavior_MoveEnter(); + HRESULT Behavior_MoveExitCheck(); + void Behavior_MoveExit(); + + void Behavior_CombatEnter(); + HRESULT Behavior_CombatExitCheck(); + void Behavior_CombatExit(); + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/InfoInstance.h b/Jusin154_Team3D/Client/Public/InfoInstance.h new file mode 100644 index 000000000..4319cdc79 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/InfoInstance.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Client_Define.h" +#include "Base.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Client) + +class CInfoInstance final : public CBase +{ + DECLARE_SINGLETON(CInfoInstance) +private: + CInfoInstance(); + virtual ~CInfoInstance() = default; +public: + HRESULT Initialize_Information(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + void Release_Information(); + LEVEL Get_RestartLevel(); +public: + void Update(_float fTimeDelta); + + +private: + CGameInstance* m_pGameInstance = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + + class CPlayerInfo* m_pPlayerInfo = { nullptr }; + class CMonsterInfo* m_pMonsterInfo = { nullptr }; + class CMapInfo* m_pMapInfo = { nullptr }; + +#ifdef _DEBUG + _string m_strLog = {}; +#endif // _DEBUG + +public: + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Level_Field.h b/Jusin154_Team3D/Client/Public/Level_Field.h new file mode 100644 index 000000000..891610638 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Level_Field.h @@ -0,0 +1,36 @@ +#pragma once + +#include "Client_Define.h" +#include "Level.h" + +NS_BEGIN(Client) + +class CLevel_Field final : public CLevel +{ +private: + CLevel_Field(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); + virtual ~CLevel_Field() = default; + +public: + virtual void Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; + +private: + virtual HRESULT Initialize() override; + HRESULT Initialize(void* pArg); + HRESULT Ready_Lights(); + HRESULT Ready_Markers(); + HRESULT Ready_Layer_UI(const _wstring& strLayerTag); + HRESULT Ready_Layer_Camera(); + HRESULT Ready_Layer_Sound(); + HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); + +public: + static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Level_GamePlay.h b/Jusin154_Team3D/Client/Public/Level_GamePlay.h index 877cdbbc0..794ad9ea9 100644 --- a/Jusin154_Team3D/Client/Public/Level_GamePlay.h +++ b/Jusin154_Team3D/Client/Public/Level_GamePlay.h @@ -1,9 +1,8 @@ -#pragma once +#pragma once #include "Client_Define.h" #include "Level.h" -NS_BEGIN(Engine) -NS_END + NS_BEGIN(Client) class CLevel_GamePlay final : public CLevel @@ -16,6 +15,10 @@ class CLevel_GamePlay final : public CLevel virtual void Update(_float fTimeDelta) override; virtual HRESULT Render() override; + +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; + class CPlayer* m_pPlayerTemp = { nullptr }; private: virtual HRESULT Initialize() override; HRESULT Initialize(void* pArg); @@ -24,11 +27,13 @@ class CLevel_GamePlay final : public CLevel HRESULT Ready_Layer_UI(const _wstring& strLayerTag); HRESULT Ready_Layer_Camera(); HRESULT Ready_Layer_Sound(); - HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); + HRESULT Ready_Layer_Player(const _wstring& strLayerTag); + HRESULT Ready_Layer_SkyBox(const _wstring& strLayerTag); + HRESULT Ready_Layer_Monster(); public: static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg); virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Client/Public/Level_Logo.h b/Jusin154_Team3D/Client/Public/Level_Logo.h index da1546a74..7ace4888a 100644 --- a/Jusin154_Team3D/Client/Public/Level_Logo.h +++ b/Jusin154_Team3D/Client/Public/Level_Logo.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Client_Define.h" #include "Level.h" @@ -15,6 +15,9 @@ class CLevel_Logo final : public CLevel virtual void Update(_float fTimeDelta) override; virtual HRESULT Render() override; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; + private: virtual HRESULT Initialize() override; HRESULT Ready_Layer_UI(const _wstring& strLayerTag); @@ -25,4 +28,4 @@ class CLevel_Logo final : public CLevel virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Client/Public/Level_Restart.h b/Jusin154_Team3D/Client/Public/Level_Restart.h new file mode 100644 index 000000000..793136e29 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Level_Restart.h @@ -0,0 +1,32 @@ +#pragma once + +#include "Client_Define.h" +#include "Level.h" + +NS_BEGIN(Client) + + +class CLevel_Restart final : public CLevel +{ +private: + CLevel_Restart(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); + virtual ~CLevel_Restart() = default; + +public: + virtual void Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; + +private: + virtual HRESULT Initialize() override; + +private: + LEVEL m_eNextLevel = {}; +public: + static pair> Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Light_Main.h b/Jusin154_Team3D/Client/Public/Light_Main.h new file mode 100644 index 000000000..71ffeed40 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Light_Main.h @@ -0,0 +1,41 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CLight_Main final : public CGameObject +{ +private: + CLight_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CLight_Main(const CLight_Main& Prototype); + virtual ~CLight_Main() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CLight* m_pLightCom = { nullptr }; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Loader.h b/Jusin154_Team3D/Client/Public/Loader.h index bbc28dddb..3534ff9c8 100644 --- a/Jusin154_Team3D/Client/Public/Loader.h +++ b/Jusin154_Team3D/Client/Public/Loader.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Client_Define.h" #include "Base.h" @@ -27,8 +27,6 @@ class CLoader final : public CBase ID3D11DeviceContext* m_pContext = { nullptr }; LEVEL m_eNextLevelID = { LEVEL::END }; - HANDLE m_hThread = {}; - CRITICAL_SECTION m_CriticalSection = {}; _wstring m_strMessage = {}; _bool m_isFinished = { false }; @@ -36,11 +34,14 @@ class CLoader final : public CBase HRESULT Initialize(LEVEL eNextLevelID); HRESULT Loading_For_Logo(); HRESULT Loading_For_GamePlay(); - + HRESULT Loading_For_Field(); + HRESULT Loading_For_Restart(); +private: + HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent); public: static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID); virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Client/Public/LoadingWidget.h b/Jusin154_Team3D/Client/Public/LoadingWidget.h new file mode 100644 index 000000000..bf53b9206 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/LoadingWidget.h @@ -0,0 +1,44 @@ +#pragma once + +#include "Client_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Client) + +class CLoadingWidget final : public CElementObject +{ +private: + CLoadingWidget(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CLoadingWidget(const CLoadingWidget& rhs); + virtual ~CLoadingWidget() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + + _int m_iImageFrameX{}; + _int m_iImageFrameY{}; + _float m_fFrame{}; +public: + static CLoadingWidget* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Loading_Panel.h b/Jusin154_Team3D/Client/Public/Loading_Panel.h new file mode 100644 index 000000000..f1b195fde --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Loading_Panel.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Client_Define.h" +#include "PanelObject.h" + +NS_BEGIN(Engine) +class CGameObject; +NS_END + +NS_BEGIN(Client) + +class CLoading_Panel final : public CPanelObject +{ +private: + CLoading_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CLoading_Panel(const CLoading_Panel& rhs); + virtual ~CLoading_Panel() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Ready_Element(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + CGameObject* m_pLoadingWidget = { nullptr }; + CGameObject* m_pLoadingWidget_Flame = { nullptr }; + + +public: + static CLoading_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/MainApp.h b/Jusin154_Team3D/Client/Public/MainApp.h index f65267e73..b168ae59f 100644 --- a/Jusin154_Team3D/Client/Public/MainApp.h +++ b/Jusin154_Team3D/Client/Public/MainApp.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Client_Define.h" #include "Base.h" @@ -23,6 +23,7 @@ class CMainApp final : public CBase private: CGameInstance* m_pGameInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; ID3D11Device* m_pDevice = { nullptr }; ID3D11DeviceContext* m_pContext = { nullptr }; diff --git a/Jusin154_Team3D/Client/Public/MapInfo.h b/Jusin154_Team3D/Client/Public/MapInfo.h new file mode 100644 index 000000000..23b4dc580 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/MapInfo.h @@ -0,0 +1,34 @@ +#pragma once + +#include "Client_Define.h" +#include "Base.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Client) + +class CMapInfo final : public CBase +{ +private: + CMapInfo(); + ~CMapInfo() = default; +public: + void Update(_float fTimeDelta); + +private: + CGameInstance* m_pGameInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + +private: + HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + +public: + static CMapInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h new file mode 100644 index 000000000..dfca98381 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Monster.h @@ -0,0 +1,41 @@ +#pragma once + +#include "Client_Define.h" +#include "Unit.h" + +NS_BEGIN(Client) + +class CMonster abstract : public CUnit +{ +protected: + CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMonster(const CMonster& Prototype); + virtual ~CMonster() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +protected: + CTransform* m_pPlayerTransform = { nullptr }; + _float m_fTargetDistance = {}; + +protected: + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources(); + +public: + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/MonsterInfo.h b/Jusin154_Team3D/Client/Public/MonsterInfo.h new file mode 100644 index 000000000..66828a8de --- /dev/null +++ b/Jusin154_Team3D/Client/Public/MonsterInfo.h @@ -0,0 +1,34 @@ +#pragma once + +#include "Client_Define.h" +#include "Base.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Client) + +class CMonsterInfo final : public CBase +{ +private: + CMonsterInfo(); + ~CMonsterInfo() = default; +public: + void Update(_float fTimeDelta); + +private: + CGameInstance* m_pGameInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + +private: + HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + +public: + static CMonsterInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h new file mode 100644 index 000000000..1ee112ae2 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/NomalJap.h @@ -0,0 +1,45 @@ +#pragma once + +#include "Client_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Client) + +class CNomalJap final : public CEffect_Container +{ +private: + CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CNomalJap(const CNomalJap& rhs); + virtual ~CNomalJap() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CPhysXEffectHitBox* m_pPhysHitBox = {}; +public: + static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h new file mode 100644 index 000000000..780fe4fe7 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/PhysXEffectHitBox.h @@ -0,0 +1,65 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" +#include "CallBack_EffectHitBox_Behavior.h" +#include "CallBack_EffectHitBox_HitReport.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +class CRigidBody; +NS_END + +NS_BEGIN(Client) + +class CPhysXEffectHitBox final : public CGameObject +{ +public: + typedef struct tagPhysXDummyDesc + { + _float3 vPos = {}; + _float3 vRotRPY = {}; + _uint iSubKind = {}; + _float3 vDeltaPos = {}; + _float2 vLifeTime = {}; + }PHYSXDUMMY_DESC; +private: + CPhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CPhysXEffectHitBox(const CPhysXEffectHitBox& rhs); + virtual ~CPhysXEffectHitBox() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CCallBack_EffectHitBox_Behavior* m_pCallBack_Behavior = { nullptr }; + CCallBack_EffectHitBox_HitReport* m_pCallBack_HitReport = { nullptr }; + _float3 m_vDeltaPos = {}; + _float2 m_vLifeTime = { }; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CPhysXEffectHitBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; + +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h new file mode 100644 index 000000000..39f0b6ba7 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -0,0 +1,110 @@ +#pragma once + +#include "Client_Define.h" +#include "Unit.h" + +NS_BEGIN(Client) + +class CPlayer final : public CUnit +{ +private: + CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CPlayer(const CPlayer& Prototype); + virtual ~CPlayer() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; +#ifdef _DEBUG + void Render_CameraCoordinateSystem(); +#endif // _DEBUG + _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; } + +private: + _float m_fDirectionRadian = 0.f; + + _bool m_bSprintToggle = { false }; + _bool m_bWalkToggle = { false }; + + _float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, }; + _float3 m_vCameraRightDir = { 1.f, 0.f, 0.f }; + + + class CCamPosition_Socket* m_pCamPosition_TopDown_LookPart = { nullptr }; + class CCamPosition_Arm* m_pCamPosition_TopDown_FollowPart = { nullptr }; + class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr }; + + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr }; + class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr }; +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(); + HRESULT Ready_Parts(); + HRESULT Bind_ShaderResources(); + +#ifdef _DEBUG + void Update_CameraCoordinateSystem(); + unique_ptr m_BasicEffect; + unique_ptr> m_Batch; +#endif // _DEBUG + + +public: + static CPlayer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; + +#endif // _DEBUG + +#pragma region STATE + +public: + virtual void Reset_Sprint() { m_bSprintToggle = false; } + virtual void Reset_Walk() { m_bWalkToggle = false; } + +private: + void TestKeyInput(_float fTimeDelta); + virtual void Add_FSM(); + virtual void Set_Anim(); + + _float m_fAmount = { 1.f }; + + HRESULT InputAction(); + HRESULT InputMove(); + HRESULT InputSpell(); + + void Behavior_IdleEnter(); + HRESULT Behavior_IdleExitCheck(); + void Behavior_IdleExit(); + + void Behavior_MoveEnter(); + HRESULT Behavior_MoveExitCheck(); + void Behavior_MoveExit(); + + void Behavior_JumpEnter(); + HRESULT Behavior_JumpExitCheck(); + void Behavior_JumpExit(); + + void Behavior_LandEnter(); + HRESULT Behavior_LandExitCheck(); + void Behavior_LandExit(); + + void Behavior_DodgeEnter(); + HRESULT Behavior_DodgeExitCheck(); + void Behavior_DodgeExit(); + + void Behavior_CombatEnter(); + HRESULT Behavior_CombatExitCheck(); + void Behavior_CombatExit(); + +#pragma endregion +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/PlayerInfo.h b/Jusin154_Team3D/Client/Public/PlayerInfo.h new file mode 100644 index 000000000..84027298e --- /dev/null +++ b/Jusin154_Team3D/Client/Public/PlayerInfo.h @@ -0,0 +1,34 @@ +#pragma once + +#include "Client_Define.h" +#include "Base.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Client) + +class CPlayerInfo final : public CBase +{ +private: + CPlayerInfo(); + ~CPlayerInfo() = default; +public: + void Update(_float fTimeDelta); + +private: + CGameInstance* m_pGameInstance = { nullptr }; + class CInfoInstance* m_pInfoInstance = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + +private: + HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + +public: + static CPlayerInfo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/SkyBox.h b/Jusin154_Team3D/Client/Public/SkyBox.h new file mode 100644 index 000000000..d545028f5 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/SkyBox.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Client_Define.h" +#include "GameObject.h" + +NS_BEGIN(Client) + +class CSkyBox final : public CGameObject +{ +private: + CSkyBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CSkyBox(const CSkyBox& rhs); + virtual ~CSkyBox() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CSkyBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Combat.h b/Jusin154_Team3D/Client/Public/State_Combat.h new file mode 100644 index 000000000..edb8d29fc --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Combat.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Combat final : public CState_Root +{ +public: + typedef struct tagCombat : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_COMBAT_DESC; +private: + CState_Combat(); + virtual ~CState_Combat() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_COMBAT_DESC* pDesc); + +public: + static CState_Combat* Create(STATE_COMBAT_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Dodge.h b/Jusin154_Team3D/Client/Public/State_Dodge.h new file mode 100644 index 000000000..110356625 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Dodge.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Dodge final : public CState_Root +{ +public: + typedef struct tagDodge : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_DODGE_DESC; +public: + CState_Dodge(); + virtual ~CState_Dodge() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_DODGE_DESC* pDesc); + +public: + static CState_Dodge* Create(STATE_DODGE_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Idle.h b/Jusin154_Team3D/Client/Public/State_Idle.h new file mode 100644 index 000000000..de9da55a3 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Idle.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Idle final : public CState_Root +{ +public: + typedef struct tagIdle : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_IDLE_DESC; +public: + CState_Idle(); + virtual ~CState_Idle() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_IDLE_DESC* pDesc); + +public: + static CState_Idle* Create(STATE_IDLE_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Jump.h b/Jusin154_Team3D/Client/Public/State_Jump.h new file mode 100644 index 000000000..810613bcb --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Jump.h @@ -0,0 +1,31 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Jump final : public CState_Root +{ +public: + typedef struct tagJump : public CState_Root::STATE_ROOT_DESC { + + }STATE_JUMP_DESC; +private: + CState_Jump(); + virtual ~CState_Jump() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + HRESULT Initialize(STATE_JUMP_DESC* pDesc); + +public: + static CState_Jump* Create(STATE_JUMP_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Land.h b/Jusin154_Team3D/Client/Public/State_Land.h new file mode 100644 index 000000000..f6245554a --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Land.h @@ -0,0 +1,31 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Land final : public CState_Root +{ +public: + typedef struct tagLand : public CState_Root::STATE_ROOT_DESC { + + }STATE_LAND_DESC; +private: + CState_Land(); + virtual ~CState_Land() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + HRESULT Initialize(STATE_LAND_DESC* pDesc); + +public: + static CState_Land* Create(STATE_LAND_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Move.h b/Jusin154_Team3D/Client/Public/State_Move.h new file mode 100644 index 000000000..c1e608035 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Move.h @@ -0,0 +1,36 @@ +#pragma once +#include "Client_Define.h" +#include "State_Root.h" + +NS_BEGIN(Client) + +class CState_Move final : public CState_Root +{ +public: + typedef struct tagMove : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_MOVE_DESC; +private: + CState_Move(); + virtual ~CState_Move() = default; + +public: + virtual void Enter(); + virtual HRESULT Update(_float fTimeDelta); + virtual void Exit(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_MOVE_DESC* pDesc); + +public: + static CState_Move* Create(STATE_MOVE_DESC* pDesc); + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/State_Root.h b/Jusin154_Team3D/Client/Public/State_Root.h new file mode 100644 index 000000000..5128a994d --- /dev/null +++ b/Jusin154_Team3D/Client/Public/State_Root.h @@ -0,0 +1,38 @@ +#pragma once +#include "Client_Define.h" +#include "State.h" + +NS_BEGIN(Client) + +class CState_Root abstract : public CState +{ +protected: + typedef struct tagStateRoot : public CState::STATEDESC { + function funcExitCheck = { nullptr }; + function funcEnterEvent = { nullptr }; + function funcExitEvent = { nullptr }; + }STATE_ROOT_DESC; + +protected: + CState_Root(); + virtual ~CState_Root() = default; + +protected: + virtual void Enter() override; + virtual HRESULT Update(_float fTimeDelta) override; + virtual void Exit() override; + +protected: + function m_funcExitCheck = { nullptr }; + function m_funcEnterEvent = { nullptr }; + function m_funcExitEvent = { nullptr }; + +protected: + HRESULT Initialize(STATE_ROOT_DESC* pArg); + +protected: + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/TrailObject.h b/Jusin154_Team3D/Client/Public/TrailObject.h new file mode 100644 index 000000000..02bce36f3 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/TrailObject.h @@ -0,0 +1,113 @@ +#pragma once + +#include "Client_Define.h" +#include "EffectObject.h" + +NS_BEGIN(Engine) +class CShader; +class CTexture; +class CTrail; +NS_END + +NS_BEGIN(Client) + +class CTrailObject final : public CPartObject +{ +public: + typedef struct tagTrailInfo + { + EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; + /* 디퓨즈 */ + _bool isDiffuse = {}; + _float fDiffuseAlpha = { 1.f }; + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; + + /* 마스크 */ + _bool isMask = {}; + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + /* 노이즈 */ + _bool isNoise = {}; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _float fNoiseStrength = {}; + + /* 디스 토션 */ + _bool isDistortion = {}; + _float2 vDistortionTime = {}; + _float2 vDiffuseDistortioUVAmount = {}; + _float2 vMaskDistortionUVAmount = {}; + _float fDistortionIntensity = {}; + + /* 이미시브 */ + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; + + _float fEmissiveStrength = { 0.f }; + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + + /* 블러 */ + _bool isBlur = {}; + _bool isOnlyBlur = { false }; + _float fBlurIntensity = {}; + _int iBlurWeight = {}; + + }TRAIL_INFO; +private: + CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTrailObject(const CTrailObject& rhs); + virtual ~CTrailObject() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + void Trail_Update(_fmatrix WorldMat, _float fTimeDelta); + HRESULT Load_Trail(const _char* pPath, LEVEL eLevel); + + +private: + HRESULT Bind_ShaderResources() override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Render() override; + virtual HRESULT Render_Blur() override; + + +public: + static CTrailObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pNoise_TextureCom = { nullptr }; + CTexture* m_pMasking_TextureCom = { nullptr }; + CTexture* m_pDistortion_TextureCom = { nullptr }; + + CShader* m_pShaderCom = { nullptr }; + CTrail* m_pTrailCom = { nullptr }; + + _string m_strTrailDiffuseName = {}; + _string m_strTrailNoiseName = {}; + _string m_strTrailMaskingName = {}; + _string m_strTrailDistortionName = {}; + + _string m_strPath = {}; + _string m_strName = {}; + + TRAIL_INFO m_TrailInfo = {}; +}; + +NS_END diff --git a/Jusin154_Team3D/Client/Public/Wand.h b/Jusin154_Team3D/Client/Public/Wand.h new file mode 100644 index 000000000..c87162543 --- /dev/null +++ b/Jusin154_Team3D/Client/Public/Wand.h @@ -0,0 +1,51 @@ +#pragma once + +#include "Client_Define.h" +#include "PartObject.h" + +NS_BEGIN(Client) + +class CWand final : public CPartObject +{ +public: + typedef struct tagWand : public CPartObject::PARTOBJECT_DESC + { + const _float4x4* pSocketMatrices = { }; + }WAND_DESC; +private: + CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CWand(const CWand& Prototype); + virtual ~CWand() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + const _float4x4* m_pSocketMatrices = { }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + class CTrailObject* m_pTrail = { nullptr }; + class CEffectParts* m_pEffectParts = { nullptr }; + + _float3 m_vOffset = {}; +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CWand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override; + virtual void Free() override; + +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Bin/Bina.bin b/Jusin154_Team3D/Editor/Bin/Bina.bin new file mode 100644 index 000000000..f9086fc08 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Bina.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:483245daa52fb9f1d759ba4af27e3ec148562da0a51b072518f256c1a9f78320 +size 2097152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin new file mode 100644 index 000000000..f84ea1a00 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Accio/Accio_Circle_S.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2125514b22e5f5336a406865f1e6e1f9a1e2ee0a3817161fd410987f0f3ad8ff +size 823 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BaiscParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BaiscParticle.bin deleted file mode 100644 index 73974c53a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BaiscParticle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:697362b584679afac0be6f7707b10367030e6ccaec5f93fbc4d301ad80bd7c35 -size 598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle.bin deleted file mode 100644 index ccc57faa2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60c069d147060437e1c362b41fade1ef56556b6d0e5038606601acdb0572a5f3 -size 598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin deleted file mode 100644 index 20916c601..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BasicParticle2.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd8016c2c3a1a081c1d2774e6fc678a326ce813d853fda18e08a48100692f33c -size 598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin deleted file mode 100644 index e5d34d8e0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BlustParticle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6f198111876e32cb27a8f6341053be4c761fa923545c5c821cd89f64e2f7ad4 -size 598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin new file mode 100644 index 000000000..0fa18c95b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:754caa56185a9683f175deb1e34831a53349587aedf7ac0bc93ef466fa15c0b8 +size 819 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin new file mode 100644 index 000000000..43ec056e2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Circle1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dc1e9e0bd020e0c98378cbb90ea65f5c9930568908812ee8ff7f3e695490dbe +size 776 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin new file mode 100644 index 000000000..f4e36d521 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Explosion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cef1aebbbb64f24cce1550d2234550fc2c354fd7aa286a72ec16a46e4ff25a71 +size 770 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin new file mode 100644 index 000000000..960e86eef --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c68075ff2041596f7d7574f0be8b48367a4d42fb1ad548db57cf253de4071763 +size 778 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin new file mode 100644 index 000000000..9464c0966 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:321ee693cd5c01c35c482b82be3b304ac1ed29277f7d7c1b1d2ca69151f4704b +size 778 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin new file mode 100644 index 000000000..d12e8a363 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:97ce02c72164faadf0153679fc7cf42ed48a22b04de08a811d42492d4cecaa05 +size 770 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin new file mode 100644 index 000000000..c24651849 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_PT_3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd6e6b5e71527fb367accc029e84d83fe62c3907021714b3384a4d6e9dad0957 +size 770 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin new file mode 100644 index 000000000..98015a1f7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Projectile.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a6b6dc4ee34b88588ba3d076840eb444b4b0a7029e8f1249140e9e3cccd3790 +size 875 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin new file mode 100644 index 000000000..4ca16605c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Shoot_Pt.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:986e05bd0189af7acca4975665de083ca88c6039195354c53cb9762abe7b0028 +size 766 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin new file mode 100644 index 000000000..4abc0ebe5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Bombard/Bombard_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd8765534c44aa3dbe9663aaa928f3ff6d906cf895a38eb8562ae09854945d05 +size 725 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin new file mode 100644 index 000000000..2fef33ded --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Cricle_S.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8ae00aa1b99261588881733eca62d8422a4c8d7518aa162d8bb8a51df76e65b +size 781 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin new file mode 100644 index 000000000..14baaf1eb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Down.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83a2ffb062848b8a6b0d818ee27019e73c8a2dc9d50e57fb5321fe60065968ab +size 788 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin new file mode 100644 index 000000000..e3c99517d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_PT0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebccf9cd0439a24609e73e5e828c7bbbdf4f41885ef2b9ff7420c89a3aa4633a +size 774 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin new file mode 100644 index 000000000..f33f4f501 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afaf22c18a829894af6d9108c20572b5d25915a9c403db0e3dc98cebed639d2d +size 824 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin new file mode 100644 index 000000000..156b6884d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Proj_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bb71e0865a7fc0ad79da8a109babe956bdb51ebb7e7ee4764ca87b5166687de +size 719 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin new file mode 100644 index 000000000..4e7ec51a8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Ring.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8a313614069d2521f54a9122859bdd4b35c14fdf194ea2ebf979e209a05cdd8 +size 728 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin new file mode 100644 index 000000000..4a910c459 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09c2463c1fc76c35da1deb258efd81acd2bdcc4a4e564e3f2805886fb8c4ec33 +size 727 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail new file mode 100644 index 000000000..794673e24 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Proj_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/FireProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/FireProjectile.bin deleted file mode 100644 index 32435023b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/FireProjectile.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25abe6ca6cd125734f2a7eadc17c2e4e8b022c8e4c3b48cd95275f414a6387f1 -size 628 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ice.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ice.bin deleted file mode 100644 index 55beced3f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ice.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82c1cd8f66bbeaa2828aec08a7fcf85eb8138f57fe7ef34d7ab05465ce3346c8 -size 521 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LP.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LP.bin deleted file mode 100644 index 590f2b74a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/LP.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:385b4684f3ed82cd63e843f2f75a8f07c797708d4423556dfbd1c993ced7ac5d -size 264 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin new file mode 100644 index 000000000..d91c677ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Lumos/Lumos.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5532b63cc40791a4441a7275cee80b09532a03eab7ed65d8df4f1b65617953f +size 772 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 530ff611f..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:04321afa62b3e9aaca6036e249e8fa7ef9f8cb765e25088a4430b5883df3f70d -size 626 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Projectile0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Projectile0.bin deleted file mode 100644 index c171516eb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Projectile0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:46eb4b43cb9d9f79c087008082e8874983231357fe05aa3354d0c8bf8dc08117 -size 633 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/SpreadRing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/SpreadRing.bin deleted file mode 100644 index 0a3554ab6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/SpreadRing.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c5bfe527d29c9e72248e1ba60487d7ff030e97008206097177c2ff33e3b663f2 -size 644 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail new file mode 100644 index 000000000..ab9269e93 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Trail/Bombard_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandParticle/WandParticle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandParticle/WandParticle0.bin new file mode 100644 index 000000000..f146a6697 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/WandParticle/WandParticle0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a3d5de1e90dbd176984a25935b5d01c41cd78e32383261588bc65b2e3aff34c +size 778 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Accio/Accio_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Accio/Accio_Circle_S.bin new file mode 100644 index 000000000..dd9540349 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Accio/Accio_Circle_S.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d134c8cb1ad572871031b8731afc595a46080ae2c10bb888aa1adda962c7b7c +size 811 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle0.bin new file mode 100644 index 000000000..7c65c882d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:593da97d845239af6f8c60bd6fe6188564ca834291cba69623ba9aa789a22858 +size 807 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle1.bin new file mode 100644 index 000000000..b19f1f2a2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Circle1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98c1aabafa6c9c8397a94e56e80159251eda4d449b40ed612a17b7c76f9b9ed8 +size 764 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Explosion.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Explosion.bin new file mode 100644 index 000000000..ae3113402 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Explosion.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43cf5bf0f9692bfca0f9dc049ad9290a60da09058403001a81767c6aca8cec3b +size 758 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_0.bin new file mode 100644 index 000000000..ce0af12bf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4be9d23c9e5746dfe3be5ab71dbf8fc62ac187ebc75f2ae284678defa2f54a4 +size 762 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_1.bin new file mode 100644 index 000000000..61a654e8b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40d47864f42963f9aba8af3ee094187a08a53475ba09e014ee473b89cd315732 +size 766 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_2.bin new file mode 100644 index 000000000..088719d88 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb5a86b4dd6de00f3cbce4e6ec95e9b030a6907d596e33a1d9e176e3fab68d1a +size 758 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_3.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_3.bin new file mode 100644 index 000000000..ee6bb4fa9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_PT_3.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:379f94d9deec6c0a0376c82208c27fdd2ce7d70a18f92150186b886324ce4b1c +size 758 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Projectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Projectile.bin new file mode 100644 index 000000000..06d3c7681 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Projectile.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1677b131af3603894b1382c1238bc86c9531d8c98b4df95bbf8030084e91ea40 +size 863 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Shoot_Pt.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Shoot_Pt.bin new file mode 100644 index 000000000..65f32c568 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Shoot_Pt.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f5cae6be738dfbed366df4b2feab895ea73cf7c0b38fcd0949e3307b61cba2b +size 754 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Smoke.bin new file mode 100644 index 000000000..be380dad1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Bombard/Bombard_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be68ab7cbb5c751eb4df1cf178ac391f86f61175bc1203f1e9aa67acb4a7701c +size 713 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Cricle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Cricle_S.bin new file mode 100644 index 000000000..45d42658b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Cricle_S.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdcd7b54807efb619f53efe93dc16c06955e4938824452562ad110311e152227 +size 769 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Down.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Down.bin new file mode 100644 index 000000000..af7f2d045 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Down.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:405eeab51c1792e4622b9349c3ff5b41a3d2a9aa73321e5b201bede7783b75c4 +size 776 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_PT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_PT0.bin new file mode 100644 index 000000000..b5c2ab6f8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_PT0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62d28963141e7bae96db3ffdd78b8c233e24c901280af6a012f8469c66e17e37 +size 762 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj.bin new file mode 100644 index 000000000..54c3ad0f4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ff214960fa252e4a440043a0b94948b079bb1ad38e1c33fd75d18aebce5a7d3 +size 812 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj_Blur.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj_Blur.bin new file mode 100644 index 000000000..28c3ba63d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Proj_Blur.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5acf1652d702b3e800ab34216c56db5e75925c83385e9007db2efd9a23cebe3b +size 707 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Ring.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Ring.bin new file mode 100644 index 000000000..b340c7d1e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Ring.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:447181a366ec650dd5d0c4e20c86ac48ede12eabefebb4e79916bb5711c23ddd +size 716 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Smoke.bin new file mode 100644 index 000000000..1df62eb31 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Decendo_Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9acb0e4d096048c7c334923a12002be2fabf16ab46af3a4ec6168c6f5eba3a86 +size 715 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Proj_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Proj_Trail.trail new file mode 100644 index 000000000..794673e24 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Decendo/Proj_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Lumos/Lumos.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Lumos/Lumos.bin new file mode 100644 index 000000000..d91c677ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/임시공간/Lumos/Lumos.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5532b63cc40791a4441a7275cee80b09532a03eab7ed65d8df4f1b65617953f +size 772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/BasicParticle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/BasicParticle.bin deleted file mode 100644 index d3c6667ba..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/BasicParticle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2781b48e3f8d8510a338e650e00660ed853345901eb0e8eb693e64765bd284a3 -size 566 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ConfingoTest.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ConfingoTest.bin deleted file mode 100644 index bc239d5c1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ConfingoTest.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:016da9c4fc0e164f3914a6d45abfaf0a45f2a421e90b8c360c0581fa5be78023 -size 555 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/FireProjectile.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/FireProjectile.bin deleted file mode 100644 index 33a13070d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/FireProjectile.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6446751f95f98d233e9ee3054f8bb8cfb7e6163e9bc1fc7c506d89b119f599f -size 596 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Flared.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Flared.bin deleted file mode 100644 index 30cd5d21d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Flared.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d3673f63af9789fdac33dc723b742e3040ad9cd27b420b2b00b6971f3f2120c -size 620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Ice.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Ice.bin deleted file mode 100644 index 17365dced..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Ice.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d282d160be4081ea02cba70fdfa0587d4ae2818cfb2c0ad3ca76274f43d715e9 -size 489 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LP.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LP.bin deleted file mode 100644 index 590f2b74a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LP.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:385b4684f3ed82cd63e843f2f75a8f07c797708d4423556dfbd1c993ced7ac5d -size 264 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile1.bin deleted file mode 100644 index e9f1f1b9f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:22cb188973c1268a590daf37b1b990de8b83436f40800ffe0b075a8a5b8a3047 -size 547 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile2.bin deleted file mode 100644 index 5f43a8cab..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectile2.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5daa02fb61ea067ca7f8c892856ddf83e82aa8da51251e425a88ae014923a3d1 -size 557 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileCircle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileCircle1.bin deleted file mode 100644 index 53a553cfb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileCircle1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81e7ac152b6a78bea83531c1ceabbfd3880465fd833c9fd14484603f5ee73965 -size 502 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileMiddle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileMiddle.bin deleted file mode 100644 index 2d75b0aac..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/LightProjectileMiddle.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:628ec29f1188b972973cd6338e5840fbcefe663b19204275b85a78268f1301c6 -size 559 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 02ebb834b..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:2fe361015c7d0d0dc213bc6d5f149759298f18f3e1183d19e8e43f38d7ee7baa -size 594 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ParticleTest.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ParticleTest.bin deleted file mode 100644 index b0057f6bd..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/ParticleTest.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1b2254a9f76ef1c627149e881269b2570ff4c80e664cf4ab4e2a8878f7bd349 -size 558 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Projectile0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Projectile0.bin deleted file mode 100644 index 81dd8cb25..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Projectile0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9fdb6d34c1ff4fffb0f91e7ecac07dea75919239991ab53468adfdc909f6c90 -size 601 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/SpreadRing.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/SpreadRing.bin deleted file mode 100644 index 879f4706d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/SpreadRing.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b238b2b412d5cdb251e90f7806b473f56373499b67f48472d6dca68784015e9b -size 612 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test.bin deleted file mode 100644 index ea52d381c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b80f4d457c7d8ce25daf73aa960db5d1a46b491d700a40f35e91a253546b0407 -size 588 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test2.bin deleted file mode 100644 index 74e029c11..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Test2.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b7e9b058b855b5c589651bd350a4af99b30664bd1ff684d4d2a96d34e683d36f -size 586 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Wand.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Wand.bin deleted file mode 100644 index 22cbd08e4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/해오라기/Wand.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a53acc13222138968a56dffabad667d007e31f0d46bb2a52dd5e972c5867bd41 -size 585 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Height.bmp b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Height.bmp new file mode 100644 index 000000000..728dc6336 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Height.bmp differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_AlphaMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_AlphaMap.bin new file mode 100644 index 000000000..c8dd09079 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_AlphaMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a425f685254b0d133c6350fd0f020e4f526efac9cdccfed91c6944313da3b34 +size 67108864 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_HeightMap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_HeightMap.bin new file mode 100644 index 000000000..5ec6b1988 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Hogsmeade_HeightMap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2b804eb5741b33d1c0d6a48f186ebf616ed95ac5ae61555ef7cb1ee6c88ab08 +size 1052676 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml new file mode 100644 index 000000000..2234e8e73 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/InstanceMaterial.xml @@ -0,0 +1,17 @@ + + + + + T_Oak_Leaves02_D + T_Oak_Leaves02_N + T_Oak_Leaves02_SRO + SRO + + + T_BogTree_Oak_BarkA_D + T_BogTree_Oak_BarkA_N + T_BogTree_Oak_BarkA_SROH + SRO + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/OakTree_MedA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/OakTree_MedA.bin new file mode 100644 index 000000000..4601cf586 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Instance/OakTree_MedA.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6b01f115b996fba0b935a1d32d7e7c2e2fbdeaedf09f3dc95d52c27eb8dc5a2 +size 20804 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1116.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1116.xml index a6cde8f76..8ca7f52a6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1116.xml +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1116.xml @@ -2010,21 +2010,6 @@ - - Prototype_GameObject_SM_HM_GEN_A_int_Floor - Prototype_GameObject_SM_HM_GEN_A_int_Floor_Lod1 - - - - - - Prototype_GameObject_SM_HM_GEN_A_int_Walls - Prototype_GameObject_SM_HM_GEN_A_int_Walls_Lod1 - Prototype_GameObject_SM_HM_GEN_A_int_Walls_Lod2 - - - - Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL_Lod1 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1117.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1117.xml new file mode 100644 index 000000000..42aac7cd4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1117.xml @@ -0,0 +1,3604 @@ + + + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Chimney + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Chimney_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_A + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_B + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Decals + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_A + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_A + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_ext_Display_Window_Blocker + Prototype_GameObject_SM_HM_Ollivanders_ext_Display_Window_Blocker_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Floors + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Walls + Prototype_GameObject_SM_HM_Ollivanders_Int_Walls_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_B + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_APL_COL + Prototype_GameObject_SM_HM_Ollivanders_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_PL_COL + Prototype_GameObject_SM_HM_Ollivanders_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_Stairs_COL_Ramp + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_Stairs_COL_Steps + + + + + + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_entrance + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_OutsideStairPlatform + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod1 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod2 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Blocker + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_decals + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Base + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_A_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_C_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_Platform_PL_COL + + + + + + Prototype_GameObject_SM_HM_Tscrolls_EXT_Stairs_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos + + + + + + Prototype_GameObject_SM_HM_Streets_Hogshead + + + + + + Prototype_GameObject_SM_HM_Streets_A + + + + + + Prototype_GameObject_SM_HM_Streets_B + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A + Prototype_GameObject_SM_HM_Streets_SideStreet_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B + Prototype_GameObject_SM_HM_Streets_SideStreet_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C + Prototype_GameObject_SM_HM_Streets_SideStreet_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Stairwalls_3Broomsticks + + + + + + Prototype_GameObject_SM_HM_Streets_AA_COL + Prototype_GameObject_SM_HM_Streets_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_BB_COL + Prototype_GameObject_SM_HM_Streets_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_CC_COL + Prototype_GameObject_SM_HM_Streets_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_DD_COL + Prototype_GameObject_SM_HM_Streets_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_EE_COL + Prototype_GameObject_SM_HM_Streets_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_FF_COL + Prototype_GameObject_SM_HM_Streets_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_GG_COL + Prototype_GameObject_SM_HM_Streets_GG_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_HH_COL + Prototype_GameObject_SM_HM_Streets_HH_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_DoorFrame + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod1 + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_L + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_walls + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_R + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_decals + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_Dormer_Wood_Slats + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Window_Glass + Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_B_PL_COL_2 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_road + Prototype_GameObject_SM_HM_Gatehouse_Bridge_road_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Columns + Prototype_GameObject_SM_HM_Gatehouse_Columns_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Sign + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod2 + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod3 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Finial + Prototype_GameObject_SM_HM_Gatehouse_Finial_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod2 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod3 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_COLLISION + Prototype_GameObject_SM_HM_Gatehouse_Bridge_COLLISION_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod2 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Decals + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod2 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Quidditch_ext_Glass + Prototype_GameObject_SM_HM_Quidditch_ext_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals + Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL + Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Quidditch_EXT_PL_COL + Prototype_GameObject_SM_HM_Quidditch_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt_Lod2 + + + + + + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hogshead_Docks_Stairs + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Decals + Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Roof + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Trim + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Walls + Prototype_GameObject_SM_HM_HogsHead_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_window_glass + Prototype_GameObject_SM_HM_Hogshead_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Ferdinand_Portrait_Outline + + + + + + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Sign_A + Prototype_GameObject_SM_HM_HogsHead_Sign_A_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Sign_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_COL + Prototype_GameObject_SM_HM_HogsHead_Docks_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_Stairs_COL + Prototype_GameObject_SM_HM_HogsHead_Docks_Stairs_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_Gap_COL + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_apl_COL + Prototype_GameObject_SM_HM_Hogshead_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_pl_COL + Prototype_GameObject_SM_HM_Hogshead_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_PlazaMain_A + + + + + + Prototype_GameObject_SM_HM_PlazaMain_B + + + + + + Prototype_GameObject_SM_HM_PlazaMain_C + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Bay_Window_Blockers + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_EXT_backside_flower_bed + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Display_Window_Boxes + Prototype_GameObject_SM_HM_Honeydukes_Display_Window_Boxes_Lod1 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod1 + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod2 + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Entrance + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows_Lod2 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_A + Prototype_GameObject_SM_HM_Honeydukes_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_B + Prototype_GameObject_SM_HM_Honeydukes_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B + Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Roofs + Prototype_GameObject_SM_HM_HoneyDukes_Roofs_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Roofs_Lod2 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Trim + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HoneyDukes_Ext_Flags + Prototype_GameObject_SM_HoneyDukes_Ext_Flags_Lod1 + Prototype_GameObject_SM_HoneyDukes_Ext_Flags_Lod2 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Walls + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Windows + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL2_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL3_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL3_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL2_COL + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL3_COL + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL_COL + Prototype_GameObject_SM_HM_BLDG_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A_Lod1 + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Owl_Cubbies + Prototype_GameObject_SM_HM_OwlPost_MERGED_Owl_Cubbies_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod2 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod2 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_D + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_D_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_apl_COL + Prototype_GameObject_SM_HM_OwlPost_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_pl_COL + Prototype_GameObject_SM_HM_OwlPost_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Roof + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Patch + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Trim + Prototype_GameObject_SM_HM_GEN_A_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Walls + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_int_Floor + Prototype_GameObject_SM_HM_GEN_A_int_Floor_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_int_Walls + Prototype_GameObject_SM_HM_GEN_A_int_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_A_int_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_APL2_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_APL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_PL2_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_PL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_PL_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_trim + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_Door_Gap_Filler + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_walls + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod2 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_chimney + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_trim + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_walls + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_chimney + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_roof + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_trim + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_walls + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_chimney + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_walls + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_windows + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_pl_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_decals + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gen_H_window_glass_a + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod1 + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Roof + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Trim + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Walls + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Roof + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Trim + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Wall + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Windows + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_window_glass_a + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_J_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_J_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod1 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod2 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Chimney + Prototype_GameObject_SM_HM_TeaShop_Chimney_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Decals + Prototype_GameObject_SM_HM_TeaShop_Decals_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Entrance_Sign + + + + + + Prototype_GameObject_SM_HM_TeaShop_Glass_A_int + Prototype_GameObject_SM_HM_TeaShop_Glass_A_int_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Roof + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod2 + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Patio_Floor + Prototype_GameObject_SM_HM_TeaShop_Patio_Floor_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Glass_A_ext + Prototype_GameObject_SM_HM_TeaShop_Glass_A_ext_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Sign_Base + Prototype_GameObject_SM_HM_TeaShop_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Walls + Prototype_GameObject_SM_HM_TeaShop_Walls_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Windows + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod2 + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_WoodTrim + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod1 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod2 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_A + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_B + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXT_PL_COL + Prototype_GameObject_SM_HM_TeaShop_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXT_APL_COL + Prototype_GameObject_SM_HM_TeaShop_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXTSign_APL_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Entrance_Sign + Prototype_GameObject_SM_HM_Zonkos_Entrance_Sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod2 + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_B + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Roof + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Trims + Prototype_GameObject_SM_HM_Zonkos_ext_Trims_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Trims_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Walls + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_bars + Prototype_GameObject_SM_HM_Zonkos_sign_bars_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_bars_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Lower_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Lower_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Upper_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Upper_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Lower_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Lower_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Upper_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Upper_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_roof + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_entrance + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_A + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_trim + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_walls + Prototype_GameObject_SM_HM_DB_GR_ext_walls_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_windows + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Decals + Prototype_GameObject_SM_HM_DB_GR_ext_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps_Lod1 + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_A_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_B_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_A_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_B_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_B_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Potions_ext_chimney_base + Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_construction + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_EXT_Glass_A + Prototype_GameObject_SM_HM_Potions_EXT_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_EXT_Glass_B + Prototype_GameObject_SM_HM_Potions_EXT_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_walls + Prototype_GameObject_SM_HM_Potions_ext_walls_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_roof + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_stairs + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_trim + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_windows + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_02 + Prototype_GameObject_SM_HM_Potions_ext_window_02_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_Store_Sign + Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod1 + Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_apl_COL + Prototype_GameObject_SM_HM_Potions_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_pl_COL + Prototype_GameObject_SM_HM_Potions_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Branches + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Statue + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod1 + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod1 + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Roots_COL + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_PL_A_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Chimney + Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Front + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Roof + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Glass_B + Prototype_GameObject_SM_HM_Salon_Ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Walls + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Trim + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Window + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_HangingSign + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod1 + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod2 + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Large + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ivy + Prototype_GameObject_SM_HM_Salon_Ivy_Lod1 + Prototype_GameObject_SM_HM_Salon_Ivy_Lod2 + Prototype_GameObject_SM_HM_Salon_Ivy_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Large + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_APL_COL + Prototype_GameObject_SM_HM_Salon_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_PL_COL + Prototype_GameObject_SM_HM_Salon_Ext_PL_COL_Lod1 + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1124.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1124.xml new file mode 100644 index 000000000..af7a9bb68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Map1124.xml @@ -0,0 +1,4768 @@ + + + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Chimney + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Chimney_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_A + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_B + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Decals + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_QR_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_Ext_Wall_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_A + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_window_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_A + + + + + + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod1 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod2 + Prototype_GameObject_SM_HM_BLDG_Ollivanders_ext_woodtrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_KL_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_ext_Display_Window_Blocker + Prototype_GameObject_SM_HM_Ollivanders_ext_Display_Window_Blocker_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Floors + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_Int_Counter_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_H_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Walls + Prototype_GameObject_SM_HM_Ollivanders_Int_Walls_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On + Prototype_GameObject_SM_HM_Ollivanders_Int_WallShelf_Add_On_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_Int_Window_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_AC_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_Bay_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_DJ_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_EG_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_FG_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_MN_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod2 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_P_Lod3 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WandBox_Set_S_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit_Lod1 + Prototype_GameObject_SM_HM_Ollivanders_WallShelf_Int_kit_Lod2 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_B + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A + Prototype_GameObject_SM_HM_Ollivanders_Railing_Post_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_APL_COL + Prototype_GameObject_SM_HM_Ollivanders_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_PL_COL + Prototype_GameObject_SM_HM_Ollivanders_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_Stairs_COL_Ramp + + + + + + Prototype_GameObject_SM_HM_Ollivanders_EXT_Stairs_COL_Steps + + + + + + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_entrance + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_OutsideStairPlatform + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod1 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod2 + Prototype_GameObject_SM_HM_OutsideStairPlatform_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod2 + Prototype_GameObject_SM_HM_TScrolls_ext_chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Front_Door_Surrounds_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Blocker + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display + Prototype_GameObject_SM_HM_TScrolls_Ext_Bay_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_decals + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod1 + Prototype_GameObject_SM_HM_TScrolls_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base + Prototype_GameObject_SM_HM_TScrolls_Ext_Steps_Base_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_TScrolls_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows + Prototype_GameObject_SM_HM_TScrolls_Ext_Windows_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass + Prototype_GameObject_SM_HM_TScrolls_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps + Prototype_GameObject_SM_HM_TScrolls_Ext_Wood_Caps_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Base + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TScrolls_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_A_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL + Prototype_GameObject_SM_HM_TScrolls_EXT_B_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_C_PL_COL + + + + + + Prototype_GameObject_SM_HM_TScrolls_EXT_Platform_PL_COL + + + + + + Prototype_GameObject_SM_HM_Tscrolls_EXT_Stairs_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_LowerHiStreet_Zonkos + + + + + + Prototype_GameObject_SM_HM_Streets_Hogshead + + + + + + Prototype_GameObject_SM_HM_Streets_A + + + + + + Prototype_GameObject_SM_HM_Streets_B + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A + Prototype_GameObject_SM_HM_Streets_SideStreet_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B + Prototype_GameObject_SM_HM_Streets_SideStreet_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C + Prototype_GameObject_SM_HM_Streets_SideStreet_C_Lod1 + + + + + + Prototype_GameObject_SM_HM_Stairwalls_3Broomsticks + + + + + + Prototype_GameObject_SM_HM_Streets_AA_COL + Prototype_GameObject_SM_HM_Streets_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_BB_COL + Prototype_GameObject_SM_HM_Streets_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_CC_COL + Prototype_GameObject_SM_HM_Streets_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_DD_COL + Prototype_GameObject_SM_HM_Streets_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_EE_COL + Prototype_GameObject_SM_HM_Streets_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_FF_COL + Prototype_GameObject_SM_HM_Streets_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_GG_COL + Prototype_GameObject_SM_HM_Streets_GG_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_HH_COL + Prototype_GameObject_SM_HM_Streets_HH_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_C_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL + Prototype_GameObject_SM_HM_Streets_SideStreet_D_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_E_COL_Lod1 + + + + + + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL + Prototype_GameObject_SM_HW_Streets_SideStreet_F_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_3Broom_DoorFrame + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod1 + Prototype_GameObject_SM_HM_3Broom_DoorFrame_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_stone_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_Stone_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_L + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_L_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_Ext_Awning_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign + Prototype_GameObject_SM_HM_3Broom_ext_barrels_sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod1 + Prototype_GameObject_SM_HM_3Broom_RectangularWindow_StoneB_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_walls + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_chimneys_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrels + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_barrels_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_Door_R + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod1 + Prototype_GameObject_SM_HM_3Broom_Door_R_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_barrel_stands_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_decals + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod1 + Prototype_GameObject_SM_HM_3Broom_Ext_DoorFrameSide_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_Dormer_Wood_Slats + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_roof_copper_tops_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals + Prototype_GameObject_SM_HM_3Broom_ext_roof_decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_side_garden_box_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_trim + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod1 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod2 + Prototype_GameObject_SM_HM_3Broom_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain + Prototype_GameObject_SM_HM_3Broom_RectangurWindowPlain_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels + Prototype_GameObject_SM_HM_3Broom_ext_wood_Corbels_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_Window_Glass + Prototype_GameObject_SM_HM_3Broom_Window_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_RoundedWindow + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod1 + Prototype_GameObject_SM_HM_3Broom_RoundedWindow_Lod2 + + + + + + Prototype_GameObject_SM_HM_3Broom_CrossBeam + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_B_PL_COL_2 + + + + + + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL + Prototype_GameObject_SM_HM_3Broom_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals + Prototype_GameObject_SM_HM_Gatehouse_Bridge_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Bridge_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_road + Prototype_GameObject_SM_HM_Gatehouse_Bridge_road_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Columns + Prototype_GameObject_SM_HM_Gatehouse_Columns_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Trim_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Wood_Railing_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A + Prototype_GameObject_SM_HM_Gatehouse_Stone_Cap_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Sign + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod2 + Prototype_GameObject_SM_HM_Gatehouse_Sign_Lod3 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Front_Lod2 + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Finial + Prototype_GameObject_SM_HM_Gatehouse_Finial_Lod1 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod2 + Prototype_GameObject_SM_HM_Gatehouse_Joist_Back_Lod3 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_BridgeColumnTop_A + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod1 + Prototype_GameObject_SM_HM_Gatehouse_Column_Corner_Trim_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gatehouse_Bridge_COLLISION + Prototype_GameObject_SM_HM_Gatehouse_Bridge_COLLISION_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod2 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Decals + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod2 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_PatioCircle_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Quidditch_ext_Glass + Prototype_GameObject_SM_HM_Quidditch_ext_Glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display + Prototype_GameObject_SM_HM_BLDG_Quid_ext_Window_Display_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals + Prototype_GameObject_SM_HM_BLDG_Quid_EXT_Walls_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_ext_WoodTrim_Lod2 + + + + + + Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL + Prototype_GameObject_SM_HM_Quidditch_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Quidditch_EXT_PL_COL + Prototype_GameObject_SM_HM_Quidditch_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt_Lod1 + Prototype_GameObject_SM_HM_BLDG_Quid_extSkirt_Lod2 + + + + + + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Chimneys_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hogshead_Docks_Stairs + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_04_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Floor_Main_05_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Decals + Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Gutters_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Roof + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Trim + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod2 + Prototype_GameObject_SM_HM_HogsHead_ext_Trim_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_ext_Walls + Prototype_GameObject_SM_HM_HogsHead_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_HogsHead_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_window_glass + Prototype_GameObject_SM_HM_Hogshead_ext_window_glass_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Ferdinand_Portrait_Outline + + + + + + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Porch_Steps_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Large_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Sign_A + Prototype_GameObject_SM_HM_HogsHead_Sign_A_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Sign_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Beam_Round_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Wall_01_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_03_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod1 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod2 + Prototype_GameObject_SM_HM_HogsHead_Dock_Railing_02_Lod3 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_COL + Prototype_GameObject_SM_HM_HogsHead_Docks_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_Stairs_COL + Prototype_GameObject_SM_HM_HogsHead_Docks_Stairs_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_HogsHead_Docks_Gap_COL + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_apl_COL + Prototype_GameObject_SM_HM_Hogshead_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Hogshead_ext_pl_COL + Prototype_GameObject_SM_HM_Hogshead_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_PlazaMain_A + + + + + + Prototype_GameObject_SM_HM_PlazaMain_B + + + + + + Prototype_GameObject_SM_HM_PlazaMain_C + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL + Prototype_GameObject_SM_HM_Streets_Plaza_AA_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL + Prototype_GameObject_SM_HM_Streets_Plaza_BB_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL + Prototype_GameObject_SM_HM_Streets_Plaza_CC_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL + Prototype_GameObject_SM_HM_Streets_Plaza_DD_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL + Prototype_GameObject_SM_HM_Streets_Plaza_EE_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL + Prototype_GameObject_SM_HM_Streets_Plaza_FF_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL + Prototype_GameObject_SM_HM_Streets_Plaza_HH_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_StoneTrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Bay_Window_Blockers + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_EXT_backside_flower_bed + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Display_Window_Boxes + Prototype_GameObject_SM_HM_Honeydukes_Display_Window_Boxes_Lod1 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod1 + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod2 + Prototype_GameObject_SM_HM_Honeydukes_Entrance_Ivy_OLD_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Entrance + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_No_Shadows_Lod2 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_A + Prototype_GameObject_SM_HM_Honeydukes_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Ext_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_B + Prototype_GameObject_SM_HM_Honeydukes_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B + Prototype_GameObject_SM_HM_Honeydukes_Glass_Int_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Roofs + Prototype_GameObject_SM_HM_HoneyDukes_Roofs_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Roofs_Lod2 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Trim + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HoneyDukes_Ext_Flags + Prototype_GameObject_SM_HoneyDukes_Ext_Flags_Lod1 + Prototype_GameObject_SM_HoneyDukes_Ext_Flags_Lod2 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Walls + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_HoneyDukes_Windows + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod1 + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod2 + Prototype_GameObject_SM_HM_HoneyDukes_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL2_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL3_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL3_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_APL_COL + Prototype_GameObject_SM_HM_BLDG_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL2_COL + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL3_COL + + + + + + Prototype_GameObject_SM_HM_BLDG_EXT_PL_COL + Prototype_GameObject_SM_HM_BLDG_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A_Lod1 + Prototype_GameObject_SM_HM_OwlPost_ext_Window_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Owl_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod2 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Walls_ALT_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Owl_Cubbies + Prototype_GameObject_SM_HM_OwlPost_MERGED_Owl_Cubbies_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_Ext_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod2 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod2 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Stone_Trim_Set_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors_Lod1 + Prototype_GameObject_SM_HM_OwlPost_MERGED_Upper_Doors_Lod2 + + + + + + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_D + Prototype_GameObject_SM_HM_OwlPost_MERGED_Packages_D_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_apl_COL + Prototype_GameObject_SM_HM_OwlPost_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_OwlPost_ext_pl_COL + Prototype_GameObject_SM_HM_OwlPost_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Window_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_A_ext_Chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Roof + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_GEN_A_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Patch + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Trim + Prototype_GameObject_SM_HM_GEN_A_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_ext_Walls + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_A_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_APL2_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_APL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_PL2_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_PL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_A_EXT_PL_COL + Prototype_GameObject_SM_HM_GEN_A_EXT_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_trim + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_Door_Gap_Filler + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_walls + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod2 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_chimney + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_trim + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_walls + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_chimney + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_roof + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_trim + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_walls + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_chimney + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_walls + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_windows + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_pl_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_decals + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gen_H_window_glass_a + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod1 + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Roof + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Trim + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Walls + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Roof + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Trim + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Wall + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals + Prototype_GameObject_SM_HM_GEN_J_ext_Wall_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_Windows + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod1 + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod2 + Prototype_GameObject_SM_HM_GEN_J_ext_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_window_glass_a + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_J_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_J_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_J_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod1 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod2 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_shadows_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Chimney + Prototype_GameObject_SM_HM_TeaShop_Chimney_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Decals + Prototype_GameObject_SM_HM_TeaShop_Decals_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Sign_Anchor_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Entrance_Sign + + + + + + Prototype_GameObject_SM_HM_TeaShop_Glass_A_int + Prototype_GameObject_SM_HM_TeaShop_Glass_A_int_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Roof + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod2 + Prototype_GameObject_SM_HM_TeaShop_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Patio_Floor + Prototype_GameObject_SM_HM_TeaShop_Patio_Floor_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Glass_A_ext + Prototype_GameObject_SM_HM_TeaShop_Glass_A_ext_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Sign_Base + Prototype_GameObject_SM_HM_TeaShop_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Walls + Prototype_GameObject_SM_HM_TeaShop_Walls_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_TeaShop_Windows + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod1 + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod2 + Prototype_GameObject_SM_HM_TeaShop_Windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_WoodTrim + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod1 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod2 + Prototype_GameObject_SM_HM_TeaShop_WoodTrim_Lod3 + + + + + + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_A + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_B + Prototype_GameObject_SM_HM_TeaShop_MERGED_Roof_Shingles_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXT_PL_COL + Prototype_GameObject_SM_HM_TeaShop_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXT_APL_COL + Prototype_GameObject_SM_HM_TeaShop_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_TeaShop_EXTSign_APL_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Entrance_Sign + Prototype_GameObject_SM_HM_Zonkos_Entrance_Sign_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod2 + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Chimneys_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_mid_sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Entrance_D_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_B + Prototype_GameObject_SM_HM_Zonkos_ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Gutter_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Roof + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals + Prototype_GameObject_SM_HM_Zonkos_ext_Roof_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Trims + Prototype_GameObject_SM_HM_Zonkos_ext_Trims_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Trims_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_ext_Walls + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_Zonkos_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod1 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod2 + Prototype_GameObject_SM_HM_Zonkos_Ext_Windows_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_bars + Prototype_GameObject_SM_HM_Zonkos_sign_bars_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_bars_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign_Lod1 + Prototype_GameObject_SM_HM_Zonkos_sign_bottom_sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Lower_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Lower_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Upper_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_APL_Upper_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Lower_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Lower_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Upper_COL + Prototype_GameObject_SM_HM_Zonkos_EXT_PL_Upper_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Arch_Stone_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_roof + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_entrance + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_entrance_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_A + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Glass_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_roof_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_trim + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_trim_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_Level_Arches_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_walls + Prototype_GameObject_SM_HM_DB_GR_ext_walls_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_walls_B_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_windows + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod1 + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod2 + Prototype_GameObject_SM_HM_DB_GR_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Decals + Prototype_GameObject_SM_HM_DB_GR_ext_Decals_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps_Lod1 + Prototype_GameObject_SM_HM_DB_GR_MERGED_WoodTrim_Caps_Lod2 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_A_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_B_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Lower_B_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_A_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_A_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_B_COL + Prototype_GameObject_SM_HM_DB_GR_ext_Upper_B_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Potions_ext_chimney_base + Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_construction + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_construction_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_EXT_Glass_A + Prototype_GameObject_SM_HM_Potions_EXT_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_EXT_Glass_B + Prototype_GameObject_SM_HM_Potions_EXT_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_walls + Prototype_GameObject_SM_HM_Potions_ext_walls_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_roof + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_stairs + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_trim + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_windows + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod2 + Prototype_GameObject_SM_HM_Potions_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_02 + Prototype_GameObject_SM_HM_Potions_ext_window_02_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_Store_Sign + Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod1 + Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod1 + Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_window_01 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1 + Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_apl_COL + Prototype_GameObject_SM_HM_Potions_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Potions_ext_pl_COL + Prototype_GameObject_SM_HM_Potions_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Branches + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Statue + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod1 + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod1 + Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2 + Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3 + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_Roots_COL + + + + + + Prototype_GameObject_SM_HM_Hengist_Tree_PL_A_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Chimney + Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Front + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Roof + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Glass_B + Prototype_GameObject_SM_HM_Salon_Ext_Glass_B_Lod1 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Walls + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_ext_Trim + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Window + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod2 + Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_HangingSign + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod1 + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod2 + Prototype_GameObject_SM_HM_Salon_HangingSign_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Large + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod1 + Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ivy + Prototype_GameObject_SM_HM_Salon_Ivy_Lod1 + Prototype_GameObject_SM_HM_Salon_Ivy_Lod2 + Prototype_GameObject_SM_HM_Salon_Ivy_Lod3 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Large + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Window_Small + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1 + Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_APL_COL + Prototype_GameObject_SM_HM_Salon_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_Salon_Ext_PL_COL + Prototype_GameObject_SM_HM_Salon_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_trim + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_Door_Gap_Filler + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_walls + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod2 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_trim + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_Door_Gap_Filler + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_walls + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod2 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_Side_Steps_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_chimney + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_roof + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs + Prototype_GameObject_SM_HM_GEN_C_ext_Stairs_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_trim + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_walls + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_C_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a + Prototype_GameObject_SM_HM_GEN_C_ext_windows_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler + Prototype_GameObject_SM_HM_GEN_C_Gap_Garden_Filler_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL2_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL + Prototype_GameObject_SM_HM_GEN_C_EXT_PL_Steps_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_chimney + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_roof + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_trim + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_walls + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_chimney + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_roof + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_trim + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_walls + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A + Prototype_GameObject_SM_HM_GEN_E_ext_Window_Glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_wall_TrainStation_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_chimney + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_roof + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod2 + Prototype_GameObject_SM_HM_GEN_E_ext_roof_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_trim + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_walls + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_E_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_E_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_chimney + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_F_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_side_wall + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_roof + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_trim + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a + Prototype_GameObject_SM_HM_GEN_F_ext_window_glass_a_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_walls + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_ext_windows + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_F_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation + Prototype_GameObject_SM_HM_GEN_F_Ext_Foundation_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_F_Ext_PL_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_chimney + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_walls + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_windows + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_pl_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A + Prototype_GameObject_SM_HM_GEN_G_ext_window_glass_A_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_chimney + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_roof + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_walls + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_windows + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod2 + Prototype_GameObject_SM_HM_GEN_G_ext_windows_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_G_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_G_ext_pl_COL + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Chimney_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_entrance_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Ivy_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_decals + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_decals_Lod2 + + + + + + Prototype_GameObject_SM_HM_Gen_H_window_glass_a + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod1 + Prototype_GameObject_SM_HM_Gen_H_window_glass_a_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Roof + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Trim + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod2 + Prototype_GameObject_SM_HM_GEN_H_ext_Trim_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_Walls + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod1 + Prototype_GameObject_SM_HM_GEN_H_ext_Walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_apl_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL + Prototype_GameObject_SM_HM_GEN_H_ext_pl_COL_Lod1 + + + + + + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_trim + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_chimney_Trim_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Glass_A_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_Door_Gap_Filler + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_roof + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_roof_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_walls + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_walls_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod2 + Prototype_GameObject_SM_HM_GEN_B_ext_stone_edge_Lod3 + + + + + + Prototype_GameObject_SM_HM_GEN_B_ext_windows + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod1 + Prototype_GameObject_SM_HM_GEN_B_ext_windows_Lod2 + + + + + + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles + Prototype_GameObject_SM_HM_GEN_B_MERGED_Roof_Shingles_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_APL_COL_Lod1 + + + + + + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL + Prototype_GameObject_SM_HM_GEN_B_Ext_PL_COL_Lod1 + + + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png new file mode 100644 index 000000000..cb6249ce4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds new file mode 100644 index 000000000..9f2343b1a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Texture2D_0.png b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Texture2D_0.png new file mode 100644 index 000000000..08b901ec1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Map/Texture2D_0.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/Bina.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/Bina.bin new file mode 100644 index 000000000..55772083a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/Bina.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:839d2e81de953ae07343e40f426b94b7702b53aacfaafcacf9ce219a9b86b992 +size 2097152 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin index ae6f282af..1c12c6445 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7fe74b089c3b90a426d1988d3d49632890c904456da1e2a2ed9f7c04e4a8c5dd -size 9479 +oid sha256:b520a5d24cf3269872221ece0c9018044de596ae837a142eeebb973744fc91bd +size 9480 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx index 8b7d31df5..1c9916af5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7c8a8ff5d822a7a6cff559c7a70a8d69aaadea6a661096d3c313ad9c232bd3a5 -size 22060 +oid sha256:fdc19861e06e37f3876f0203fa70bad848076948da32444c621b6c77889f3c28 +size 24268 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_MRO.png new file mode 100644 index 000000000..59ba0c00b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_N.png new file mode 100644 index 000000000..9d000651a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/DummyPlane/New Piskel_N.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Aguamenti_WaterProj.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Aguamenti_WaterProj.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Aguamenti_WaterProj_LowRes.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Aguamenti_WaterProj_LowRes.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralIn01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralIn01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralOut02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralOut02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralOut02_Fat.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_ApparitionSpiralOut02_Fat.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_AuroraRing_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_AuroraRing_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_AuroraRing_Dist.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_AuroraRing_Dist.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_BubbleMesh.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_BubbleMesh.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Bubble_DEMO.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Bubble_DEMO.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Circle_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Circle_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_CurvedPlane.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_CurvedPlane.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Cylinder.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Cylinder.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Depulso_AOE.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Depulso_AOE.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Dome.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Dome.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Dome2.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Dome2.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_03.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_03.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_04.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_DungeonTile_04.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_EropioAttach2.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_EropioAttach2.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Coil_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Coil_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Coil_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Coil_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Proj.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Eropio_Proj.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Expell_Circle_inv.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Expell_Circle_inv.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_FX_Fan_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_FX_Fan_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Fan_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Fan_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Fan_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Fan_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_FlatPlane.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_FlatPlane.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_LMagic_Wave1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_LMagic_Wave1.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_LMagic_Wave1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_LMagic_Wave1.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_MagicTaco.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_MagicTaco.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Mesh_Plane.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Mesh_Plane.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Mesh_VFX_fan_2.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Mesh_VFX_fan_2.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RectangleMesh.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RectangleMesh.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingHollow.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingHollow.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingNarrow_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingNarrow_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingPartial_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingPartial_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingPartial_Thickness_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingPartial_Thickness_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingWide_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_RingWide_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Ring_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Ring_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Rock01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Rock01.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveInvertedNormals_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_SpherePrimitiveInvertedNormals_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveInvertedNormals_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_SpherePrimitiveInvertedNormals_01.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveRegularNormals_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_SpherePrimitiveRegularNormals_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveRegularNormals_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_SpherePrimitiveRegularNormals_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_TeleportMeshSpiral_Fat.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_TeleportMeshSpiral_Fat.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_TeleportMeshSpiral_Thin.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_TeleportMeshSpiral_Thin.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Transmute_Swirl.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_Transmute_Swirl.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_WaveA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_WaveA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_WoodChunk_A.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/SM_WoodChunk_A.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/Splesh_Mesh/Splesh_Mesh1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/Splesh_Mesh1.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/Splesh_Mesh/Splesh_Mesh1.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/Splesh_Mesh1.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_CabbageLeaf.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_CabbageLeaf.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_PlaneMesh.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_PlaneMesh.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_Sphere.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_PM_Sphere.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_P_SplashMesh1.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_P_SplashMesh1.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_AncMag_BubbleA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_AncMag_BubbleA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_Full.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_Full.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_SM.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Fat_SM.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Thin_Half.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ApparationSpiral_Thin_Half.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ArouraRing_XAxis.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ArouraRing_XAxis.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_AttackIndicator_Pointer_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_AttackIndicator_Pointer_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_AttackIndicator_Pointer_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_AttackIndicator_Pointer_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere_HiRes.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere_HiRes.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere_low.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlobbySphere_low.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlurCone_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlurCone_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlurSphere_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_BlurSphere_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cairn_RockSm_LoRes.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cairn_RockSm_LoRes.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cauldron_Surface_Default.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cauldron_Surface_Default.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ChompCabbage_Leaf.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ChompCabbage_Leaf.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_CircleHole_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_CircleHole_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Circle_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Circle_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ConeSlopedA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ConeSlopedA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cone_2UVs_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cone_2UVs_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cone_2UVs_Thin_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cone_2UVs_Thin_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_01.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_02.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_03.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_03.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_03.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_04.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_04.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Corrupt_Spike_Helix_04.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_A.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_A.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_B.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_B.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_C.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cotton_Candy_C.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cube_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cube_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cube_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cube_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Curved_Debris_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Curved_Debris_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Curved_Debris_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Curved_Debris_02.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cylinder_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cylinder_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cylinder_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Cylinder_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DW_FireTornado_V3.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DW_FireTornado_V3.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Blade.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Blade.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Ring.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Ring.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diricawl_Feather1.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Diricawl_Feather1.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_DiscFlat1m01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DiscFlat1m01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_DiscFlat1m01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DiscFlat1m01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish_1meter.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish_1meter.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Dish_FlatUV.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish_FlatUV.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Dish_FlatUV.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Dish_FlatUV.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DoorLockFlash.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DoorLockFlash.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DoorOpenFlash.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DoorOpenFlash.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DownTheStair_Swirl.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_DownTheStair_Swirl.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Eropio_LowerPoly_Replace.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Eropio_LowerPoly_Replace.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Eropio_Proj_LowPoly.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Eropio_Proj_LowPoly.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Fan45_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Fan45_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FlameRing.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FlameRing.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FlyingPaper.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FlyingPaper.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FunnelB_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FunnelB_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FunnelShape_A.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_FunnelShape_A.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Funnel_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Funnel_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Funnel_Thin_Noise_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Funnel_Thin_Noise_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Funnel_Thin_Noise_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Funnel_Thin_Noise_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GenericLeaf.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GenericLeaf.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GiantCloud.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GiantCloud.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Glow_Ring_Torus.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Glow_Ring_Torus.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus_Floor.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Glow_Ring_Torus_Floor.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus_Floor.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Glow_Ring_Torus_Floor.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GoblinSniper_Bolt.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GoblinSniper_Bolt.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GoblinSniper_Bolt.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_GoblinSniper_Bolt.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Goo_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Goo_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HW_Food_Singles_Toast1.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HW_Food_Singles_Toast1.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HemiSphere1m_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HemiSphere1m_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HemiSphere1m_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_HemiSphere1m_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ParticlePlane_1cm.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ParticlePlane_1cm.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_01_geo1.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_01_geo1.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_03.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_03.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_04.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_04.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_05.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_05.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_06.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_06.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_07.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_PlankChunk_07.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Raindrop_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Raindrop_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingHollow_XAxis_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingHollow_XAxis_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RingNarrower.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingNarrower.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RingNarrower.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingNarrower.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingPartial_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingPartial_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingVertColor_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RingVertColor_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RockA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_RockA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingB_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingB_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingB_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingC_SkirtB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingC_SkirtB_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingC_SkirtB_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingC_SkirtB_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingD_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingD_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingD_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingD_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingPartial_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingPartial_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingPartial_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRingPartial_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing_2UVs_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing_2UVs_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRing_XAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing_XAxis_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRing_XAxis_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockRing_XAxis_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SlashA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SlashA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Slash_Rounded_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Slash_Rounded_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereCap_1meter.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereCap_1meter.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereHiRes_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereHiRes_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereHitDisc_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereHitDisc_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereLoRes_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereLoRes_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereMedRes_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereMedRes_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereRays1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereRays1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SphereRing_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereRing_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SphereRing_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SphereRing_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Sphere_WireTest_1meter.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Sphere_WireTest_1meter.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SpiderWeb_TwistedPlane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SpiderWeb_TwistedPlane.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SpiderWeb_TwistedPlane.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SpiderWeb_TwistedPlane.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_03.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_03.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_04.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Spiral_04.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SwirlSegment02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SwirlSegment02.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SwirlSegment02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_SwirlSegment02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Swirl_Arresto.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Swirl_Arresto.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Swirl_Wingardium.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Swirl_Wingardium.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_01.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_01.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_02.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_02.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_03.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_03.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_04.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TMBG_Death_Shard_04.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TaperedCylinderA_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TaperedCylinderA_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TaperedCylinderB_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TaperedCylinderB_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TentaculaLeaf.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TentaculaLeaf.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TentaculaTwig.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TentaculaTwig.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TorchCap_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TorchCap_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Tube90_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Tube90_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TubeFlared_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TubeFlared_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TubeFlared_SquashUV_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_TubeFlared_SquashUV_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01b.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01b.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01b.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01b.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01c.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01c.001.fbx similarity index 100% rename from Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01c.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexRing01c.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexSpiral_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexSpiral_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexSpiral_1m_Thin.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_VortexSpiral_1m_Thin.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_WakeWave.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_WakeWave.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Wave_Circular.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Wave_Circular.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_WindSection_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_WindSection_1m.001.fbx diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Zap01_1m.001.fbx similarity index 100% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.fbx rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/FBX/VFX_SM_Zap01_1m.001.fbx diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_GooSpiralA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_GooSpiralA_1m.001.bin new file mode 100644 index 000000000..e8ff02068 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_GooSpiralA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aace83b3b6a9b9a4646dc27b31496cbc10190ed50832bce01f673d12b743c67 +size 69353 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Pickup_GooSwirl_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Pickup_GooSwirl_01.001.bin new file mode 100644 index 000000000..a8ee1f2c8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Pickup_GooSwirl_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e099d322538c782e04ca9ea71071a636559100f712f4ba9b481b71d57d8332a +size 266342 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_01.001.bin new file mode 100644 index 000000000..6c372c129 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c71f411fc304843a0dd70bf4da4dec1e2772a8283043e52bf832bdaf86b15ef +size 105612 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_02.001.bin new file mode 100644 index 000000000..360ddf115 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SK_Wand_GooSwirl_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:318b519e23108fc999df32e7c5be0dae648a2ff4b7b5b19da9a0cae3126224f4 +size 100088 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_AM_SpiralD.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_AM_SpiralD.002.bin new file mode 100644 index 000000000..59984c3a4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_AM_SpiralD.002.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90cc0e89699309023ff11a810a23e53e6d891ff56babe0f2fd854511dcfd846d +size 163890 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooMesh_SwirlAroundA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooMesh_SwirlAroundA_1m.001.bin new file mode 100644 index 000000000..3fcdf8c99 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooMesh_SwirlAroundA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db5c0d05207403c4ee9b9f42795e19c6a75d501e4bca3e912cd307f857345145 +size 194335 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpiral_B.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpiral_B.001.bin new file mode 100644 index 000000000..a5a93e490 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpiral_B.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b58bb52ffe6a2a027bdb6eed564969dffe6089581a3beee92801b7052d37182 +size 104867 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_2m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_2m.001.bin new file mode 100644 index 000000000..862db5f2c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_2m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f620b66239f8f80d0af96810e4abf315cc27e52e782149513eea708fa66693e +size 77740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_01_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_01_CIN.001.bin new file mode 100644 index 000000000..f959fbcfc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_01_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a32e2e4d41be0fee1f2e5b543f56a570ca81ff9c8f56e29aeb193c480a7acdb2 +size 103598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_02_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_02_CIN.001.bin new file mode 100644 index 000000000..99e28d4ab --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_02_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:842888809c5d21eac0952edd93d98436d9850fae621d5d468de851f6902c52ee +size 62398 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_03_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_03_CIN.001.bin new file mode 100644 index 000000000..b93cb0a43 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_03_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7e3594acf2a3770e06d31c9acc9f56dbe0b2ff4a26409a05e24729cd3370e06 +size 32590 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_04_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_04_CIN.001.bin new file mode 100644 index 000000000..4417c21fe --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_04_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:287321085ff5de4a99103785f59c991af6d7764a96ce540e3354d6c2bd5aca06 +size 88002 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_05_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_05_CIN.001.bin new file mode 100644 index 000000000..c5130444b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_05_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c15f05dc2cf82b5f5ff6822c6d369a3e91e80b03944892ffe396afca313df6e6 +size 58378 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_06_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_06_CIN.001.bin new file mode 100644 index 000000000..1a7c4c5bc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_GooSpline_TMB_Sword_06_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b03280740c7070418e104417dba5b3851a52fe028e5e276e2cf57eeaf445e3d4 +size 55530 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_Wand_GooSwirl_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_Wand_GooSwirl_02.001.bin new file mode 100644 index 000000000..2fab6853f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Goo/VFX_SM_Wand_GooSwirl_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3408ccad3d1fc12f35243be5fc27d7d8e96c8183d5b7a0647616c75a99961868 +size 103128 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_LMagic_Wave1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_LMagic_Wave1.001.bin new file mode 100644 index 000000000..d1e7405b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_LMagic_Wave1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc128b75772fe26cdeeb178ca831c2899e1f2733a69ceb6051b201fb0d30d624 +size 22736 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveInvertedNormals_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveInvertedNormals_01.001.bin new file mode 100644 index 000000000..1ce95268f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveInvertedNormals_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce901e6c473653137483a966362db9f2591e3a0368f3db85f554f7c5974ed5c8 +size 63005 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveRegularNormals_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveRegularNormals_01.001.bin new file mode 100644 index 000000000..99fb1fa64 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/SM_SpherePrimitiveRegularNormals_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aff78098f00b5c0dabaca5c1b8bbe76ae38a621086648a71602e613a8bc215a +size 63000 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_AttackIndicator_Pointer_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_AttackIndicator_Pointer_1m.001.bin new file mode 100644 index 000000000..3aa3164de --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_AttackIndicator_Pointer_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8feedce2f010ecf5cbcd1fcfd52a235400c8a7027015abf58675f8ecc3e10105 +size 10778 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_01.001.bin new file mode 100644 index 000000000..7e98119ea --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f351e53829b79343d6cddafb468ae9c73ecdd2dc472eb7090ee4c13f5de734a2 +size 71718 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_02.001.bin new file mode 100644 index 000000000..57d5eee6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89d2448d40c872085eed60269dfd956b89a555ebe91dfe6f549056bfe48903cd +size 60694 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_03.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_03.001.bin new file mode 100644 index 000000000..3dc29085e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_03.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd44188e2b6fe9bfcc297e60dbf828cccabbf58942226f45f440d1daa90ff707 +size 34606 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_04.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_04.001.bin new file mode 100644 index 000000000..00720cfb3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Corrupt_Spike_Helix_04.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a1ac4e1b503eb3e3461692abd586fbadbaf4268dfe3376eacd729220b8c7efc +size 95226 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cube_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cube_1m.001.bin new file mode 100644 index 000000000..7240f4756 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cube_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:faa0dac0751fed53e3b6e324ddf65f8e15f7a955dc1fd7f0bb274fa55346a2ef +size 2383 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cylinder_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cylinder_1m.001.bin new file mode 100644 index 000000000..cab0258c7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Cylinder_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1af2483f560d23224b965b9a3230d373fd5bb4afcecee250eddacbc55015b27 +size 16243 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_DiscFlat1m01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_DiscFlat1m01.001.bin new file mode 100644 index 000000000..cb4edddbc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_DiscFlat1m01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89d39ee628809cb6e6ae48ef5c87524d1302991a0654a5e390ce77bce0ef4846 +size 13760 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Dish_FlatUV.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Dish_FlatUV.001.bin new file mode 100644 index 000000000..384631153 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Dish_FlatUV.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:455a2b84e1aec546c043308eaf7c7778ec61da3250469d67af9dc78d123ff6dc +size 6243 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Funnel_Thin_Noise_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Funnel_Thin_Noise_1m.001.bin new file mode 100644 index 000000000..fd73704b6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Funnel_Thin_Noise_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cff7d4da618187135316e91127e7631981e893665af4c46fe8d7bdd346bdbbc +size 21632 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus.001.bin new file mode 100644 index 000000000..2110c75b8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f91b0441150adcb7d2b43c755a730f455a683500432b81dfa278dc0e7d814f93 +size 179999 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus_Floor.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus_Floor.001.bin new file mode 100644 index 000000000..435cb2486 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Glow_Ring_Torus_Floor.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d703c8eb23d1a5e63a9eddd51f4d954a93a295240cbab3ecb27425a41c30c75d +size 110353 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Yellow_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GoblinSniper_Bolt.001.bin similarity index 81% rename from Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Yellow_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GoblinSniper_Bolt.001.bin index 26c791a94..d6f7fc2e9 100644 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Textures/Effect/Diffuse/VFX_T_Flare_Yellow_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GoblinSniper_Bolt.001.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.bin new file mode 100644 index 000000000..1a194f9a1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HavenPortraitDissolve_Plane_CIN.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:097aa7892eb49a35cc5516d7256d48a6f55ad784d92ba73449e159f28c6b39ff +size 8655 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HemiSphere1m_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HemiSphere1m_01.001.bin new file mode 100644 index 000000000..1dd75c3b2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_HemiSphere1m_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b9402de521c8c4b7ab8583238ee234e28971b5989327baa87aaea691d92357a +size 32207 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RingNarrower.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RingNarrower.001.bin new file mode 100644 index 000000000..ea0acd275 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RingNarrower.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca6ef5e80c754461fa1c125653cf70670becc4eab10b45c07270b141ace274bb +size 4288 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingB_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingB_1m.001.bin new file mode 100644 index 000000000..fbba76f1e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingB_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:282a3549174f68b4277e636d9c4bd76348469fa7ff3fba66daa59f55b366d1fd +size 22745 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingC_SkirtB_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingC_SkirtB_1m.001.bin new file mode 100644 index 000000000..ed321a9d6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingC_SkirtB_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18c41e24852514fe0838c8ff0139cbcbd56492e82d17dd530c6ba9cf36152469 +size 44816 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingD_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingD_1m.001.bin new file mode 100644 index 000000000..9eb7aee05 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingD_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a6ec909ccc9d018b99342b4f6d568addc04a106810b1a26262c9f57db6bab7a +size 38609 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingPartial_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingPartial_1m.001.bin new file mode 100644 index 000000000..9e1775441 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRingPartial_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9975323f7b43910d0a1a556ffe38ef9b9a50ce0e8d94eb9a69f2ce8b487c2b8 +size 15151 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRing_XAxis_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRing_XAxis_1m.001.bin new file mode 100644 index 000000000..c09865fff --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_ShockRing_XAxis_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ce6153dd3fbd9d3c4a596ee3c2e2d39c7675797673a51adea7b3d335e80c1d4 +size 22754 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SphereRing_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SphereRing_01.001.bin new file mode 100644 index 000000000..2177081aa --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SphereRing_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4c0d9e834cacdcd5c0691b7bfbca43f9b53d62fd78b262c3807e24ed1a522a5 +size 42617 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SpiderWeb_TwistedPlane.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SpiderWeb_TwistedPlane.001.bin new file mode 100644 index 000000000..2ebad41b6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SpiderWeb_TwistedPlane.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9618597361974ce31c59c7a14e70002e2ab28aa232d844a1e577469656e21655 +size 155246 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SwirlSegment02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SwirlSegment02.001.bin new file mode 100644 index 000000000..ee1d01eaa --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SwirlSegment02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f123f1261ef45a079eecc5cd369baab7b585fc94f5e24e549d25bffb4e9934d6 +size 12274 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01.001.bin new file mode 100644 index 000000000..e4907755b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24bba215cc42890e927b75d172dc549be902a1a47f723f0a71456fb40aa2cb00 +size 52524 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01b.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01b.001.bin new file mode 100644 index 000000000..20ae05c08 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01b.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4216ae0de1a793994a011efdcfbc5ea673420c2e4cd3d46de0bdd32f719bd7cd +size 41117 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01c.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01c.001.bin new file mode 100644 index 000000000..5771ff0ac --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_VortexRing01c.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c3af3c0c6ef5f50b4e0c77cc6e0f335e4b367b6792cd3d1cf379d65974a4d44 +size 41117 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.bin new file mode 100644 index 000000000..2d552b254 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:955b9fcb39809a6dcca503b35a8316057d78657b38001ffb01e42bbdf99a3e15 +size 107051 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.fbx deleted file mode 100644 index a86504a2d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a811c61227c207be00816fb93c51b817953207b3a5b2b9efa1291a9f77e9bcd4 -size 57628 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.bin new file mode 100644 index 000000000..1be891522 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e9706a35be1dfe1b994bfb5db06d05da22bf8f85b136f372cd2d12b97e61ff3 +size 107058 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.fbx deleted file mode 100644 index 4d31e57eb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Aguamenti_WaterProj_LowRes.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4870f5db69cfdfdac12412835669c23f5f67bb6de6060d825250729757bbc84b -size 57644 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.bin new file mode 100644 index 000000000..d1e808e8a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44f6a0ef313171c32601c74934be2975394bf1eb02a4df17bc0311bd4c5b1050 +size 38500 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.fbx deleted file mode 100644 index 963515fb1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralIn01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d70fe50c37ac5d210b5ed541888bcfd3e9ccaf3e6597aced72b01fe1814edd8 -size 30508 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.bin new file mode 100644 index 000000000..c2e6b648f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7b112f52d9b5933df9315dfc21694ad4de3afdc2700d7fe7924f6e9bffd77c0 +size 43825 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.fbx deleted file mode 100644 index 306c52bad..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7f6db63836fb3fa156e6d4ea28ecab42780f7178014dddcb6be418029e3c5ad -size 32204 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.bin new file mode 100644 index 000000000..4768a914b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4b6d7dc8ef25b68aee91cdde554dbc1db20477250f969d8444ef67af2ac2961 +size 40277 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.fbx deleted file mode 100644 index 0712a3ae4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_ApparitionSpiralOut02_Fat.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e5ff006904ac2ed207b39c3fddf9e1f4d48ba4408ce3bc2585b97bd84956275 -size 31916 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.bin new file mode 100644 index 000000000..4e61edac4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04fe7d6945ee3c765331d2984bb3a34d4ed78ee09fdd2e191aad377ff0ff7854 +size 21953 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.fbx deleted file mode 100644 index ac8adcb0d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f1baaac2b1cf1cfbdda899609df9aa77c63bf1cf100721c0bda4c574cdf3317 -size 26108 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.bin new file mode 100644 index 000000000..db2b4ca7c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc337299261f14d283f9d518b07e45c770a1b56689dafc2dfeff66b7d0de4950 +size 9611 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.fbx deleted file mode 100644 index 836c76eaa..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_AuroraRing_Dist.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ab9bcf7116f7e1688e35c72e38f891646964f90aac79b78656288461a0d17ef1 -size 18300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.bin new file mode 100644 index 000000000..89de58213 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24d0e03a0feecff3adf74ebf90b6dd95d1d47d794b81134e3c2b28d99108a15c +size 28054 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.fbx deleted file mode 100644 index f28fab6df..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_BubbleMesh.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96a2300f56f668e32b07a6cd9a11946b2b23d87b1c8168a05d8f065180729d18 -size 27948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.bin new file mode 100644 index 000000000..cb5daaed0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20c56091f606b1b131e219755696ca466fa281e80e3cec4fefd5b7572ce7fdbb +size 79339 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.fbx deleted file mode 100644 index 5dee2dee5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Bubble_DEMO.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f72b2e3bc5ba21daef181f1a3e717f63128a29122a9b2d4240b31f5ad5dd968d -size 57644 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.bin new file mode 100644 index 000000000..c7348707b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec942c4c6c40780479aec00b2ede50441307b6e5662d1c34043760730c884894 +size 9933 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.fbx deleted file mode 100644 index b39f9673a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Circle_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aabcb8c89e1b9dff5b7eb36d3c5b3c5e99c0288f0e18cdfea0dd32b73589d7f4 -size 18796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.bin new file mode 100644 index 000000000..f77b6aaa0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ac462a6a98f44d1114d15dc74fc9bf112a752ea07cd3ab5e988746cc2e7b33e +size 9019 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.fbx deleted file mode 100644 index d3ce9beb8..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_CurvedPlane.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b77b6f90da3ff4e3b0455a7c47b42f9dc3c876324c80cfe9185b7c5f9040771 -size 19292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.bin new file mode 100644 index 000000000..68880bbe8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:022a52b1f01730196f1500d97a0b9256126a1259124b1f73cae369e5a7e2a541 +size 11608 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.fbx deleted file mode 100644 index 54dab298f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Cylinder.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:869e7f98036e8028ae59c627675a13005e598b33349c108cb0b19d4a3210718e -size 18588 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.bin new file mode 100644 index 000000000..48338c3a1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:005c5a4d4607d6aa43979839f31a50719bcdf6cf07139b03d4c05fa108cd2db0 +size 25343 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.fbx deleted file mode 100644 index 9f92fadea..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Depulso_AOE.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25878d189a3a3a99837c1baf4eacbe4a9e28e025005312470a2386b2addf3555 -size 23964 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.bin new file mode 100644 index 000000000..57b593148 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fdee38726b406704489b9f11c4c8b912c5a8644a445014f8e20b26a21e34399 +size 20924 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.fbx deleted file mode 100644 index 98c7c6c16..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:921ff8de0389a3a3262cf10d22a771e526b12020fc198613ae0d198e9569cce0 -size 23516 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.bin new file mode 100644 index 000000000..fb2895d7a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e6cb6f9e41ab2994f4e37ce44248a82723346937a711b7c704b8dd8d94e00b7 +size 20921 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.fbx deleted file mode 100644 index 7013347fa..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Dome2.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f452d7af3b80721beaa73446239d2fa1427aa89beef288de8b82b4b253de3fe6 -size 23516 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.bin new file mode 100644 index 000000000..93a258bc4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:219a5601e85ac439f446173558b32d3b3da6f4284d2f55ca8d3081d2445c5da0 +size 8830 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.fbx deleted file mode 100644 index e152d27e0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa15329e46b30388290b1a8f319edc84d3c2f096b013e94716abe3a94c5286ef -size 18844 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.bin new file mode 100644 index 000000000..2be936754 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f976abd52cc2f88ceed6baab0266e8eebe91be3b5d91567a33c12c2f30d5177b +size 8090 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.fbx deleted file mode 100644 index 8718de079..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_03.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3172494c1ea7727833b59f40bbc866df6fd855c1235fe5d17476406288ea5af6 -size 18492 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.bin new file mode 100644 index 000000000..b7561d964 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bdfea558e4ad0f01b502868fcb793a46090aacb1179488b8f515296058fa398 +size 7694 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.fbx deleted file mode 100644 index 6496cfd93..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_DungeonTile_04.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:40420306a879e996deae7b4dbf480e46be12dc750f53921f6ac000ee417c680d -size 19356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.bin new file mode 100644 index 000000000..a3c63c947 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acd43a2dcdc63be5bad43548db76d57e4ea7bbbe544878b74171abae9603bb73 +size 27325 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.fbx deleted file mode 100644 index 5916036d1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_EropioAttach2.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7433d1a3955bf36b1ab283d2bd01899a0d543a3fd0a5b89c00051682dcf44c54 -size 24780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.bin new file mode 100644 index 000000000..8785fc65c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83c57d27e452b1e14100902b118f0cd7c84cb6bfa4bc16b7404bba5de90f88a4 +size 32350 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.fbx deleted file mode 100644 index a1061ac58..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbd66f52e685f36e9eb723c24963ed544bc789998801e4abb70576aff3fa2234 -size 27036 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.bin new file mode 100644 index 000000000..8befbf60e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e8a20bf44e9d2ef1e95c12deebc0bdf0802f01b0ace9f5a6f2f10f95e3aa22a +size 25798 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.fbx deleted file mode 100644 index 626ac66f2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Coil_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a305368ddbc2ccd9c782108df902ee37cdeb0c1b93d5974a99a3b8b279d46a3e -size 24908 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.bin new file mode 100644 index 000000000..0e95261d3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:656676a3974d122dca408d5730c30a56559dbb698db48e755a71ceeda953d10b +size 107039 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.fbx deleted file mode 100644 index a14ab37f4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Eropio_Proj.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e824e0b404814980ba82ba37f0e8c8ef4ee0d012fc3f40d2ea5e987bfb7ef336 -size 57628 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.bin new file mode 100644 index 000000000..b00865bfc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8edde552df6cb7d065dde516353e4dad94e1b50d33cb5b30cf370dff13adff2a +size 31477 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.fbx deleted file mode 100644 index 382c3ebce..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Expell_Circle_inv.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07cea2c232994c54445ee7d3d9dd5a7ee189bf4c90fd835d443369efc20cc800 -size 25676 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.bin new file mode 100644 index 000000000..71a8cf6aa --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c9184a254e55e961db6fc6078608609d1eedd4611b680672ddc52834634a75c +size 8825 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.fbx deleted file mode 100644 index 3448eae42..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FX_Fan_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a70d8ce715d9e24903a85527cddc9ce089086de266bc341f34098670b56ba7d -size 18540 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.bin new file mode 100644 index 000000000..f6e159bb2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ecda807efc6df52ed1cd4dcfe883ca023207f65c871a8f4736f675b9f993878 +size 4610 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.fbx deleted file mode 100644 index d00a55076..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a59db92f9f22223b7d71d421b469eed0aef3c4cb12dff3cccbc2cbd4b3e5de4c -size 16956 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.bin new file mode 100644 index 000000000..122a4361a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e988ad0974c5a3901e9e9452cba4a0cd9b4cd3cd01c638fce342623c905d0a9f +size 8270 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.fbx deleted file mode 100644 index afca5ba38..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Fan_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f87022ed93f672cec3061129a77352ed307f52457330b43bdf78addde85c129 -size 18812 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.bin new file mode 100644 index 000000000..86fe26792 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:430540381e0dc4cc83bfec61f22db119f4f9afd7068b182bbe58154321129e38 +size 1717 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.fbx deleted file mode 100644 index 7ed453e01..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_FlatPlane.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e26ccd5a112d7b92d5700a6acad2d9ecefb879e5b4eb050f3da776b302cda4f -size 15276 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.bin new file mode 100644 index 000000000..36e5c4c0b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3f7da068ee1268c0c23129687c8b0f6f20be215162116aa6b4bd3f5d23f2e33 +size 13561 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.fbx deleted file mode 100644 index f7df15d4c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_MagicTaco.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c0a1046282f198d9f14e94b92c323a36312ac1a15f5b6c1af21cba703e0e1a7 -size 21116 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.bin new file mode 100644 index 000000000..5f11c1b7b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2615bb260c087cdb8480bd4280f23aba5f510f5cd962647cc3c98236a04f7a +size 422 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.fbx deleted file mode 100644 index 556c5d7ee..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_Plane.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f5cd80ece7958fdb4e4e8fbc41015d81bc87029a5115a77d8f9e29352c53409a -size 14908 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.bin new file mode 100644 index 000000000..699532fff --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f65a9502fd4b9db0e901ca927302e03cb8cfebb8b3a13775cf59254bb5882b56 +size 2902 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.fbx deleted file mode 100644 index f143b72bc..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Mesh_VFX_fan_2.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:904c88f939b13741999b809e1ca5a70e6e2e504e95997dcd5aca050a0780648e -size 15852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.bin new file mode 100644 index 000000000..b0bd72eba --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e5130bcccc9c3dc9f4b86a017f8b7188a362c3b19ab16f0692d335e7bf179f8 +size 6804 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx deleted file mode 100644 index 6c2525f73..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Pm_Stupify_IMpact_StickyWrap.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8fd9b5fc35dee246f2077dbb2c71927bc6706b5c48e9139243c7e075846265ab -size 18588 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.bin new file mode 100644 index 000000000..f3d9e96cb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a64a531288a3531e8368409be5c60e5b2c36494ceb63918443cb3a77ca30d24 +size 1721 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.fbx deleted file mode 100644 index daff832dd..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RectangleMesh.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:412badcb490350a53f8860cdc1a84fc4b63a57f5f3cab3c90c175cf264772fbd -size 15228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.bin new file mode 100644 index 000000000..8aee59a03 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2277ea1a1ce7937871a1147a08cc56107d90ac99fe18a7e0c8964e2ff1723e05 +size 27466 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.fbx deleted file mode 100644 index 421c28975..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingHollow.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:129fdc5534fb83322400b460af6389eb96fa3d342781c6951a4edbf4021a9683 -size 27148 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.bin new file mode 100644 index 000000000..3fc316f5e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de2feb443937a0def74be862df0bc5ba77997e37fdb4325e612e1dab49920086 +size 9201 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.fbx deleted file mode 100644 index 6c9bbd69f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingNarrow_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98e34b1bfdb54e708bb35b1c184bdc68e5b0e3f3b4bb646e99b3d1cfcea41445 -size 19740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.bin new file mode 100644 index 000000000..84cb8cdeb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d7df6431eb374b74b280d4ee54954354123b1b2e7be47401eeb77ed7dd04738 +size 5682 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.fbx deleted file mode 100644 index 7b7d29671..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2cc7838e3bab882a17f26a93b7ea75d64610030e24879133be36c696b010af3 -size 16860 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.bin new file mode 100644 index 000000000..19d698855 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a88392def28f40899bfbad9bbb415c396edcb8559a5fb7ddaaf62d98894fc86 +size 11340 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.fbx deleted file mode 100644 index ac3211220..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingPartial_Thickness_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5008aafb427805c626ca962430f49f2571276e70fa61a8a960854375dc24d3fe -size 18796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.bin new file mode 100644 index 000000000..96d432341 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a55ca36e7404ea57c4fc65822b41cac29f0209e84d40b01273cf6db2858dcdd8 +size 9199 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.fbx deleted file mode 100644 index 4db64057f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_RingWide_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bad2244b787efc6c65a3ddd9ac5441c1664975b9a3ed3cf732ac9af958851e0e -size 18892 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.bin new file mode 100644 index 000000000..6e600659b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9afb056d82217d8dd3b09267dececd3eb8c87ee4e4b1e3806acf0e483afbd2c7 +size 9195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.fbx deleted file mode 100644 index d4ff186d1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Ring_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89d7cc89e6962238d986b0c6aa70fb8bc201f546ed785a57f4d90f094adfcb71 -size 18844 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.bin new file mode 100644 index 000000000..4f66cb1b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:451c79ecff2ac79968ba7cf5bc6e6850a72f4cab93bbffd7dd7b14f7ccd6436e +size 73182 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.fbx deleted file mode 100644 index 4e2488eeb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Rock01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:100c9646a3c386928ef82903daa2b33be42ce6e62f205ef6e06952b7fc3fb92e -size 32108 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.bin new file mode 100644 index 000000000..669ac7a1e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7c298c68d8d594ce5d5f86d2dd115241cc8029d8a66f53b455f410f38c1d3be +size 40274 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.fbx deleted file mode 100644 index 1fb7a2455..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Fat.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:979fcd457375b5e84728d36627243980ae4330588912c166f95dc0f1cac10602 -size 31916 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.bin new file mode 100644 index 000000000..edbfc65ba --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7c9d9350e0497f4d2fdcbac49e447a2e57190b9acf0e4902f6f1f22369bf6f3 +size 26463 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.fbx deleted file mode 100644 index 988baf4f4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_TeleportMeshSpiral_Thin.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ea914d205ec6510b1f4bf37347f9ced16a2b0e732b0261d615556c9a34fb709 -size 26124 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.bin new file mode 100644 index 000000000..6b6a02fc8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d19dea9bb95f4f907a28e33d0aca120b5bdc6c27d25677e8444bf2beaafe2add +size 15495 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.fbx deleted file mode 100644 index be387ece7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_Transmute_Swirl.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d6a4a1b618e3f3eac08139fad076f69f80624b1055930759213c85488af7cb9 -size 22092 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.bin new file mode 100644 index 000000000..5baf884c5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e925a7b540fd049341d154c4f5e8e9e5149c0088001c76a10563432667af75e7 +size 5956 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.fbx deleted file mode 100644 index 9985e7975..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WaveA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8d9da8e9c68d69542fa5afa94a33577658db2f67a80b9a7b04438c555741ae8 -size 18028 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.bin new file mode 100644 index 000000000..b4539ffe7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0892ec904184081b1c35490b7984b375f249eee8a370f21e122b47470b550b3 +size 4063 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.fbx deleted file mode 100644 index 9bc9b8420..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/SM_WoodChunk_A.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b01c61b713d7df0b3d8e9550112ed2036cdf718e4ed590b0896987ba74e3068 -size 15788 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.bin new file mode 100644 index 000000000..881c7c9f9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddadb7dd845ed5b5bb963da46618399152e5eaa876b45bac862d2ca4c63e4294 +size 382678 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.fbx deleted file mode 100644 index cb603fa99..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/Splesh_Mesh1.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f42fdff2eb45676f0e587c1e41bf2dbf9672443ef79c1557cd5962b00a887392 -size 72988 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.bin new file mode 100644 index 000000000..2f683bbe0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e74947a019c8731b614d9cc5f8c3be595e68110c391696fb7c7a9e99d4314bfc +size 18659 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.fbx deleted file mode 100644 index b9dc21d66..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_CabbageLeaf.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee1f852e29e27fa4ccc3cb3509d3c4bffe3fd3347a2abfc2c4a32e58495b0a79 -size 25788 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.bin new file mode 100644 index 000000000..c7ba280bb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:501e12c7e8b31565a4a078eea9d21c96ddfa14e39327fb3d01e0df8863c41138 +size 9021 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.fbx deleted file mode 100644 index 4e45df8bc..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_PlaneMesh.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db2d04c043e5df419a97bbeee89347961012f2ad88f4dbd266e768b7514df27c -size 17052 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.bin new file mode 100644 index 000000000..d98ebd611 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e59bb5518b0f972fd7a1f58b45e562fafca49b729046bfd336655975a6d29285 +size 62978 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.fbx deleted file mode 100644 index 9843a3a19..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_PM_Sphere.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:acf63c2a7e08a3fe08029ea1eaecfea473c35c2910acfe80f835808cc45314f5 -size 44108 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.bin new file mode 100644 index 000000000..a08b23843 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df26d1c5cb3a0a57118f0e4a40ea8a9ca4f382ac035aaf85d00c2aaaa2c8b0d8 +size 382678 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.fbx deleted file mode 100644 index d207dc6b8..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_P_SplashMesh1.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b37f86d6aa086078b80ca50f03f32ca6d55467f7d846465ae8929cc6addc980 -size 71948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.bin new file mode 100644 index 000000000..607eb5f9c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d277e4d23942f6f0d878c48967cd56c676a864733528f4a23c264a28d10029bc +size 15637 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.fbx deleted file mode 100644 index 079314f92..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_AncMag_BubbleA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:787cf9b6e5c976b334c6bf85eff1ab3329ce6734ed6a610f28e664adab9a43eb -size 23708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.bin new file mode 100644 index 000000000..76f12fad9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0433f04cf9e2314151b9815d497baf9927ceb19cd617029060960ac64b22ab75 +size 34135 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx deleted file mode 100644 index 7ee7efac2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thL.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e2c32fc1fa296f3439fecac3b85f26619df11d55bafc1abb9496e3b3714d449 -size 29516 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.bin new file mode 100644 index 000000000..c168c9dda --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69e82cec0cd8c3307ec72ebbc45d45f0f1ddcc7af2ca37f6801a74252f8e70a1 +size 33947 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx deleted file mode 100644 index 5a155711c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_3_4thR.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e375001692351d822481d1153b91fa7c9eeb29eba4e85fe0e4669a9c2fffb93 -size 29324 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.bin new file mode 100644 index 000000000..965789418 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddf9fbf819c804800e48c47283d1a80faf0d45ad75a9114c0daff776a8e799b2 +size 40557 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.fbx deleted file mode 100644 index d1f162eb2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_Full.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:857ea95b009d8513aa3ecda9ca417d6926678483d74bcaf8afacddf68213d06a -size 33148 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.bin new file mode 100644 index 000000000..008ae763b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5f7ebc646ecd90d6007f38862fea26f6be6b0e53118c7b9506a6005bd41eb4f +size 19275 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.fbx deleted file mode 100644 index 1e3f81272..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Fat_SM.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1e22124b653f6f1d4e49dad36a1a5db67f1685ab31bb9591d244dad417e3ea7 -size 25500 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.bin new file mode 100644 index 000000000..39dc2c9bc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:219ae2e4ddfb9eb0b0f6897ab268c58eec26bdfc4773d06404974772b2626326 +size 12834 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.fbx deleted file mode 100644 index 7d6bda115..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ApparationSpiral_Thin_Half.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3194154e5d5afacc1f21f9443905cd31662c9e6173de14e68eaa8f993920ecab -size 22236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.bin new file mode 100644 index 000000000..7047a6b9e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db4619a34e793ba944ac6c0f7c4f5b0d9152a38c057e5642ba6c102b1c08a60a +size 21960 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.fbx deleted file mode 100644 index 44c68ccb5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ArouraRing_XAxis.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0683b04d65f4e6df8993edd5006482f9f89f8ad7ddd6aeef46af792cb30a927 -size 26092 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.bin new file mode 100644 index 000000000..2d85b6e51 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baa5bfe5198fc53f9e9b682dc8439e2cf04147b9f4f255162adc27d342c785cd +size 31556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.fbx deleted file mode 100644 index f5f8584ad..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5aae3092df257852386e2128dd03b1fe8097d840abcae7bfefff92fc7b6110d -size 29564 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.bin new file mode 100644 index 000000000..15c78bb6d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c41447147f1c26b80a49982729f55e26d7374137cef339952e2dcaab5dbd31be +size 76210 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.fbx deleted file mode 100644 index 336728ca9..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_HiRes.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dcde2437985b43036f7252f997eaf07cd933770d057f0d0f4eacde09a7731fc7 -size 50332 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.bin new file mode 100644 index 000000000..c83b12c8f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df602ac82c10c7e8a04da4d65e98b08c32341564defd98ee93403433e3ffbb07 +size 12472 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.fbx deleted file mode 100644 index 83e6a7c67..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlobbySphere_low.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebe786a4ea6ce620ab5c8a2e674d4ffde30fddc161980e8fb3b60c6587388382 -size 18556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.bin new file mode 100644 index 000000000..3cc6b744d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73d523dd1e5e91c066c2d2c60f5526d2b13fcc9d875ec74894aa1870f823757a +size 16899 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.fbx deleted file mode 100644 index a3586cbdb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurCone_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:237878fdb79e2776687156da84a11c5e23d52d813805d3fca24854dfdf08aedb -size 21692 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.bin new file mode 100644 index 000000000..17e3672eb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6786a442e9670c3d70cc0d071f791bbc611d4b3ddb33a503925c0b0a4df6d15c +size 20513 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.fbx deleted file mode 100644 index 1badbe879..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_BlurSphere_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f04c667e5ccde7fbf3be5fae55b7a37f2bf71a94e25cfa9379968cc3f66aed94 -size 21772 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.bin new file mode 100644 index 000000000..e0db2902a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6af227e001533c9cc674081b526b5786804222a22a6ddfcb44fcfba9ca959298 +size 14422 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.fbx deleted file mode 100644 index faf805df8..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cairn_RockSm_LoRes.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a3dc015a62549cba26d3c32866014181d598f62d6b5c1c6ef8104320d9553ab2 -size 21756 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.bin new file mode 100644 index 000000000..86c6266c3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91b0f86870c14387f86b99e65933e3c211c43b0304e4e87dcde8417b02761864 +size 58876 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.fbx deleted file mode 100644 index f093848d6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cauldron_Surface_Default.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9922c0ce71e688f85d223d65b367291b2208394bc3d3cb8c4521f6659654e2f -size 37852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.bin new file mode 100644 index 000000000..5ad8e0fa2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb67501c5514162135a6865d9e3dd4fe50f54f93419d0bdff12ab3354d926920 +size 19125 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.fbx deleted file mode 100644 index cea9f9865..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ChompCabbage_Leaf.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21760ec9671e258433861eb7d8f4e71ae2badfb4aee3a26fa72c7b8fd3da3819 -size 24012 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.bin new file mode 100644 index 000000000..92706a611 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b08ab10784a0bb5c11cda3d2246eed393368d75e16dfa6e67be919e704cd364a +size 2533 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.fbx deleted file mode 100644 index c852060ec..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_CircleHole_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f669669338477068cfff5d1fd154457cb4cc31108ba65296864817bc305f74a2 -size 15356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.bin new file mode 100644 index 000000000..732fa0004 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c29f3ba25a9935a2eba4a5ab0af2fcfaf6e15985e2594a651888a326d75bb86 +size 1257 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.fbx deleted file mode 100644 index a62dd651a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Circle_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6729444bf8500769a7d4bda79e8703afb2b64f235dada7cf24fc8957dfc4aca5 -size 15292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.bin new file mode 100644 index 000000000..42745762c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9f921351db00896c7566a3b541d4bdeb44cd1cdadbf1089d2cae5abd5621413 +size 82958 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.fbx deleted file mode 100644 index 37007384e..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ConeSlopedA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2cfbf4e35ff2baff3116b062ccaa00b8209963d18591e5fb771670f747ed06f7 -size 53868 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.bin new file mode 100644 index 000000000..98ac38792 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:982c58deaa233aa3f69657902c878e0328dc3c0bcb4cfe8754015ea3102fec59 +size 44868 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.fbx deleted file mode 100644 index 2e1f55ac7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:582e3b979692e5f3cb69c7e5b2c9580e408b099215392a917820d920f5767222 -size 38220 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.bin new file mode 100644 index 000000000..ba5f47638 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b89af8fa5ce53f5599aa63475623b1c645a2917dc7a45dceb6c448bcc39c9d2 +size 44873 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.fbx deleted file mode 100644 index 36a791507..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cone_2UVs_Thin_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96ac23786aef9e274e65f16e6e3f519cecf1a89a8e108550420925017c420146 -size 38060 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.bin new file mode 100644 index 000000000..e22316003 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:032e520b657c51512aa5fb2bb132982314dd5ff3352938d6c5264ca6fe559e87 +size 49546 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.fbx deleted file mode 100644 index b34c35f4c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_A.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:61d38810b41597dff8b24c163bc45bef33c95a481d995db2ca33754086676583 -size 32924 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.bin new file mode 100644 index 000000000..35114f07b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1690650ab1598a7985f8be09ee7c15cf04d5f5c0c78d3292254d092f291a8b95 +size 49546 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.fbx deleted file mode 100644 index 56154699b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_B.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1fcc23e3e6959cb2dd07cddc3f9bd5b8bd7c10cc2491b530b6a0996fc052e305 -size 34556 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.bin new file mode 100644 index 000000000..515527fbf --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ca569a6cf474fce9da50cc22f5dfe5d98ab3562f7b99914970a51e2b7ab04f9 +size 49638 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.fbx deleted file mode 100644 index 02e551c65..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Cotton_Candy_C.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cdee588739378dd5cc93efdf07717e42d1bd6a7fd918c4e5a24b37107066faf -size 36508 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.bin new file mode 100644 index 000000000..ca1519d77 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6f9893a7a95c9640a3cc497f5d2ce0c8960fc2ddfcc3f70ef698746154c9591 +size 18336 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.fbx deleted file mode 100644 index 93515677b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00da15a0774869df725fbf50a8c24c32689d7676d44288b20406137b44cbfae0 -size 20940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.bin new file mode 100644 index 000000000..cebd2939a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2200a175e905b41cc9f17994032e501db7ce55d03abc1ae0187a1f3205966b0f +size 24712 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.fbx deleted file mode 100644 index a38abd5b7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Curved_Debris_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:376062199a931576c9b1a54cb1540f2eab43ceabee922ce9c613ad054bc2788e -size 22508 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.bin new file mode 100644 index 000000000..87128279e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe10e0bcff6e8cbea4e9189b8a29cf30b285242bb23f5164a49b8594d05ba1e9 +size 71593 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.fbx deleted file mode 100644 index acade4621..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DW_FireTornado_V3.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c973f0d9eda0d70de3b4b056a36c563bb61f6834744c8b08f0584124a94f21d -size 44252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.bin new file mode 100644 index 000000000..a41ee75ab --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:359ab260b2ca8e71ab589eedeaf1f4cbdb69458796372a0558213bff4150d579 +size 2399 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx deleted file mode 100644 index 986e63c2f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Decal3DNiagara_Cube_1cm.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:237503ed2073bb4117dbdfaa0c8ea4ae583fd7ea216b7e98a1c8798d9ff44c44 -size 15148 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.bin new file mode 100644 index 000000000..5615c54ff --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce0a13cef25d8987343ae2441e8f35f18d190de2bdd5136cfcf5221d51c14a0e +size 27610 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.fbx deleted file mode 100644 index 83709da53..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Blade.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:223c910d687db40630d2d805260b4edc792f65ac6e8931b9584a2653beafb306 -size 26796 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.bin new file mode 100644 index 000000000..9ce3fe193 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55689c58811e31b2967df64d3bb85ccddb80972f970c31b774520154a1a8b997 +size 44921 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.fbx deleted file mode 100644 index 2f601e1fb..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac7c38a8c2bd70de4e2b5bf1619283c8e63f421fe605bea2ad699523b3fb89b9 -size 35068 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.bin new file mode 100644 index 000000000..91ab659b1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e0f5635f0c33cf2551bd94126026ccaafb8ecef2eb3c86eef42f2f25a1c47b4 +size 44930 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx deleted file mode 100644 index 47e609087..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diffindo_AOE_Ring_Centered.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3fbe6a80116e5da92a2b7690a959f446dcf3c5c5a05face3f6031ed839df8752 -size 34076 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.bin new file mode 100644 index 000000000..992d86594 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21355441b7548360d48272cd05d63ef3eaa7529513da987929b96b9e611763b9 +size 3557 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.fbx deleted file mode 100644 index 7cb6628a0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Diricawl_Feather1.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:387634ef0011e35903a04cc3804468da228a4d6ab56632a977b808405566845e -size 16908 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.bin new file mode 100644 index 000000000..58a7bb430 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2046172b1e1bed41c165d1f1af7c6ec962daa176dfafdb35e8586bf74f28864 +size 18440 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.fbx deleted file mode 100644 index 22b7822a7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3f62bf6ea9905934f8aa28e17e307f2469060df79a95e5aaca18c7ce613690b6 -size 22684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.bin new file mode 100644 index 000000000..91603d3ab --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e63a8c54d46c7a4ae520af875435f7ef2a074c76ad84da810b4d31aa8bf93e4 +size 24963 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.fbx deleted file mode 100644 index d8e5ab01a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Dish_1meter.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10e2a42deaaa6b56d822984ea9491d3cd4f4ba25da17c60f0c51831c4d13b21a -size 27260 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.bin new file mode 100644 index 000000000..523aaaf1a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:657c902bc9eaef2db1dd9f2ebf5baa6e39d02241f84e4176c16740f643ca5eef +size 32228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx deleted file mode 100644 index 4df75a264..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DomeSoftFalloff_Diffindo.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a562664f5740ab923e54524dab41fd842e32ece8a4f44abd63d24de1f92dcd4 -size 27116 diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.bin similarity index 80% rename from Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png rename to Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.bin index 2fe1ffc6f..fc1eac24e 100644 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/Goblin/T_GOL_TombProtector_1_D.png and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.fbx deleted file mode 100644 index bbc6b0cff..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorLockFlash.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5c3557b5d07b9a245e1d6c658da5c1e14b49540bd934dd5c9b798075c4c71e98 -size 21084 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.bin new file mode 100644 index 000000000..bbb383f6c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfb56728403b822603d79f3ce79c8f258eb7c1a64c3d694630e89cf8478c0d45 +size 20221 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.fbx deleted file mode 100644 index df640ca7b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DoorOpenFlash.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f228cd4a7d43fd725cac0851b68460c75c39070335fb399710f548ede896fc7 -size 22780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.bin new file mode 100644 index 000000000..c3d31e49c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e67cec2d2702d97f82e40a1f11393e07965a07867c21c01ee64051f0b4b4fd0b +size 87402 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.fbx deleted file mode 100644 index 1e79d2f0d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_DownTheStair_Swirl.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1561b1da1a26141c30313dce06d9340490b456a060849cc3e6a89bf04ba42590 -size 59004 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.bin new file mode 100644 index 000000000..5d2e650e6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e246a2c9c4707ec6ae73319ae3bfd383b921b2941d60fa50c265f4be28d786a4 +size 6380 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.fbx deleted file mode 100644 index 899984108..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_LowerPoly_Replace.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bc3be91c5f35d5661419b181f4f11b3b63314b1317804cb2fe8d3920886fe239 -size 16476 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.bin new file mode 100644 index 000000000..cc10ae5a1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a76e86da966a35bce6f2ffa1356d8c545ac6398fada7b79dc830333d0014033d +size 19311 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.fbx deleted file mode 100644 index ba326052c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Eropio_Proj_LowPoly.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c44fa0ecf6636b2b7786b2f166dd3abb7ab9eedffea2b60d60ddede0094f84e -size 21372 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.bin new file mode 100644 index 000000000..5a5a7085d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d782df7a4dc31a2dc55839fffd77eff4ac4b3813d78ab11032fae8e8d52482b0 +size 9020 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.fbx deleted file mode 100644 index c3173e5d6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Fan45_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60abb30f47b670ae8ab775308df1fef4c5215c4b263d7e2239ced15dba7916c3 -size 18220 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.bin new file mode 100644 index 000000000..2eeaa7320 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:281a168155b126b704b3e458c58c7b3f2420f8a58fccd8bcda78b2370a81450b +size 21261 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.fbx deleted file mode 100644 index 9cae42408..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlameRing.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6ecee8943df4f85ba09b3d24a9effca8bfbdde4196bab81014509c3a198baf0 -size 24620 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.bin new file mode 100644 index 000000000..aa7ea9c6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6d4b85c5f86134811ad8f59221d67583f451704dc2421cb0b98d11dbb95d587 +size 11179 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.fbx deleted file mode 100644 index c7670358e..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FlyingPaper.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97b62b6fe620d4b3ef8b7aef79c2d2e9fa1a239dd2a6bc0f6162b9514befd40a -size 17548 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.bin new file mode 100644 index 000000000..c597efef6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0d11474675cb73078d28f21e40eaa0f1196d6be7efa572c6b113287ae50afe8 +size 42598 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.fbx deleted file mode 100644 index de65aa664..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelB_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15d09f15f5f6dba291cddbeec2a6779ee9c1e5d1e53fc3568292e796d16a589c -size 33708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.bin new file mode 100644 index 000000000..5c5da50b3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8bb54483c5db545c360a567d2f7bec10b599cf824102c1363c6662610f466c4e +size 14029 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.fbx deleted file mode 100644 index 0b0502b5c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_FunnelShape_A.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90ca103a40c2a3cefbf08baeda4a1f69996f143ae01f0be3aaf667d115342c2c -size 20684 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.bin new file mode 100644 index 000000000..d73818827 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acacc859a25f08dfe386c82641abbbbe7bcd80686d775292d3b68b59bd3e2d9f +size 14025 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.fbx deleted file mode 100644 index 3e6b3c959..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Funnel_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:79e76f0d1d76a630df039dec0751683ef3d2138ca6ccbee5fc9b887f8cf557a8 -size 20876 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.bin new file mode 100644 index 000000000..26c479b68 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ace108c076f4beeef60a244c35ca49e029078c88b40c7dc5b319e1e42d5738a +size 18659 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.fbx deleted file mode 100644 index 2eae8731b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GenericLeaf.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce83c52348ad5319e7c75ad123406a8a625a16bfd2a21af5cc0974bc5400f22a -size 24108 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.bin new file mode 100644 index 000000000..e9afa9d97 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d664d3c811ebe6ed6fa061158e7f7e8624fe0ad2f1c859597f522793229c0c7a +size 239254 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.fbx deleted file mode 100644 index 087cdf512..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_GiantCloud.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9bbdd7be8df7cc58720c9151e7e1c3968ec7372402566fd58c4e9683ac06746b -size 80300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.bin new file mode 100644 index 000000000..3c35219b4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:452c01400ec72c2fd22e312952fbc781d32834ae3a2364739689f3e4820a7012 +size 80942 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.fbx deleted file mode 100644 index 3fdc2614d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Goo_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a93c1a788751c71a0eb97e2fffe629630211e2dfd47623e60aadfee5c3d543f -size 36940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.bin new file mode 100644 index 000000000..890005552 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:372eeec44296a8c12a4818e04caf784f95be49c4bce57b0d109916bc761915b6 +size 3278 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.fbx deleted file mode 100644 index f729ca82f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_HW_Food_Singles_Toast1.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8320b339383d7a383d4f30e8b8c8ce69bedcb3bfc9d7fa69da57a80ff3e70b3 -size 15916 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.bin new file mode 100644 index 000000000..6da166781 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c5455c89e6a5af5ea65efeb674fba94331e55ef27de4e2d45a2c5d4561a2260 +size 1729 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.fbx deleted file mode 100644 index b66d764c2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ParticlePlane_1cm.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2deaba1592c208e47634dda179d48335a605ea720ebda6339749057567d3951d -size 15292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.bin new file mode 100644 index 000000000..72812531c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc4e0e97a3747582586f63569e7edcd006f29a20469d33b2a055b08f798376fa +size 2142 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.fbx deleted file mode 100644 index e7a95d379..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_01_geo1.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:451f416c0c391bdd3685d00d802f9f6df24370e2d283510278f5f4111adaa55e -size 16188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.bin new file mode 100644 index 000000000..809ad2600 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3128b5d5ab9011037eb7aa8eb22d437896fe5fb1f6be3a4df037cbb574f6793 +size 16525 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.fbx deleted file mode 100644 index 508765f79..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_03.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f052a48098b81abc5e02c13b48021d605f8c8cfea87bc1c7a07a82c1c75d2c6a -size 19372 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.bin new file mode 100644 index 000000000..250de43f8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21ddc105e9dc2d311ae8bb76b2c9067dfd896e246f399e0e084d26ce8ad55e16 +size 13273 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.fbx deleted file mode 100644 index 37cba48ff..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_04.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5387cc52e6091ff6b1f5250a5be6cef795215282100734d77b721ea98dd03e4c -size 18252 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.bin new file mode 100644 index 000000000..9ca0b5425 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f029d563764b077cb378af7b1d8cfc4dc5749e613b81468f2337e524cfce1fee +size 6237 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.fbx deleted file mode 100644 index 47e1313b4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_05.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0bfa39458af6f1e7f21842e60db8d00da69b7b4f16e815b3e4b808ba5955700 -size 16412 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.bin new file mode 100644 index 000000000..3f432e0b4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e88b7f521030c51d81d8a4e89d2f03ed6bea0ba5b3fe8808ec7e717ad177c5e +size 16585 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.fbx deleted file mode 100644 index 34756a36c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_06.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72bf97c9d52b199c37dac30a6e018f23286f713b0c5537d933f3bdb68acc3d14 -size 18924 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.bin new file mode 100644 index 000000000..6b8a2e365 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c3d3cf20247c8c9f41fcabd319711f48a20a0bbc96bb74f173dd4121b997d84 +size 12121 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.fbx deleted file mode 100644 index b17dec4c1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_PlankChunk_07.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5a09ad9669511d52582d978ed58da6b6d23c8a7e10cfb891cc42a282b32afe02 -size 18060 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.bin new file mode 100644 index 000000000..8269186ce --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46eac319e3dbf9aa18754e1181a5137c06d383435fc222598ec9976c143465c7 +size 9643 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.fbx deleted file mode 100644 index 5daf068d2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Raindrop_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6068c2460e746a4b41ce56fd39973a78f6f434b464d4544dafbf02e471f571a -size 18812 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.bin new file mode 100644 index 000000000..cbbf6f86b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1db7b8d40ca5fe74210568d9a79f2eb498c9d90a8cdaa2e021bfb5ad702846e8 +size 27479 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.fbx deleted file mode 100644 index 4999055d0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingHollow_XAxis_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b9610602858186962c7d7e44062cf0a1593d2ea4df48133e80f2584d32802820 -size 27228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.bin new file mode 100644 index 000000000..f471eea17 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03ecda4490e03cd20fb90312e194a3c3e2854510ea376dcf1d9dbdb5e6f0790c +size 39098 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.fbx deleted file mode 100644 index e63d1125c..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingPartial_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c597411a78fb90354cbe8655f83e050ad9495ded40a1d3be00b9b5f14cf54451 -size 35596 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.bin new file mode 100644 index 000000000..ce0e7a0d8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2662660b5649d3c1038198a73b2e7b3966b1ae012687f4945f2407ed942bf31c +size 31100 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.fbx deleted file mode 100644 index 7f9076791..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RingVertColor_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60c6c275710b7d7e73e18b22458f48d7343cc71e97b55c0ca915ad774069a155 -size 27708 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.bin new file mode 100644 index 000000000..7debad6f9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b76a381a1a21ba73ea4d210ea093f4179331e377e1b5e87be1b647ce99a71e15 +size 35128 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.fbx deleted file mode 100644 index ffe5883b4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_RockA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebeecb0bcc7aa80de4c89390c208fc72e23be437f3b18d043fd0895d6db6b09e -size 31132 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.bin new file mode 100644 index 000000000..ce7fc3dd2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64e81f5fde6325a8e1c79313922759630d26657779ee0a955d5fb868b77171c9 +size 44913 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.fbx deleted file mode 100644 index afb6848ca..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09c362bc7579e281b1add96f1def050cef2b3f5088b0dcc369e632a7cab7d9f7 -size 32732 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.bin new file mode 100644 index 000000000..d446c4f8e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6ae8846ff58fd3e193c75ad3ebc9436ebb75662f7e36cc9aee96a9ac06eecbc +size 74793 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.fbx deleted file mode 100644 index c15112807..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockRing_2UVs_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3366ea76a21e21ba49184704663ee84a046cecb0529097012beb4152808b1c65 -size 57468 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.bin new file mode 100644 index 000000000..64a2ecaac --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:209cd9dcd9a983baeb9de9fff3c9b6a0940de648aa5aee9cd4f7a7fa1e4ee0ee +size 40641 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx deleted file mode 100644 index 87861cebe..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_1m_Lod1.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d4a98512b0d275cc86b011f8051c2464e4cd9797ab415c0ce132476b40f15cc -size 34748 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.bin new file mode 100644 index 000000000..f3565716d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c88dfb33db256ed505e37ec7f6de1cdd192b8007e376ebe65974f9993cc3fc7 +size 38595 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx deleted file mode 100644 index 7307920c7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_Thin_ZAxis_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96841b0ce100607469bcf131c449f416a5de035a0be1f9dd92974d9156facdce -size 26348 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.bin new file mode 100644 index 000000000..fa2dd4eb9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5bb06e7214a01dd65cc5a3be4ce7e8d0e49ce8f97362bc8fba5da1f2e55d6fc +size 110794 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx deleted file mode 100644 index 7494b33a0..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_ShockwaveRing_XAxis_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d0a000566bf7c749d81a381a87d96575bc0f6a272d6add42a8399ee7f1caeca -size 62492 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.bin new file mode 100644 index 000000000..4da5b414a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9462a0691f7f8af7631208cfb5270642531eda48974fed330ffa372d00ed10b1 +size 18849 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.fbx deleted file mode 100644 index ce5f5566f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SlashA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96bff1d6b4f1dd201bc86041426636af81b51a337f45e79428767ddd83a6282d -size 25164 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.bin new file mode 100644 index 000000000..bc90d049c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17c816121e0a74e2cbb1f455e84759d6fafd4a46b8ea2b6d7a21222453ffca96 +size 13572 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.fbx deleted file mode 100644 index 1eb9dadb9..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Slash_Rounded_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:35ea03abfe81c15c29369541c9d752b8d108859bedd37b0a3d90796c9652af9a -size 22604 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.bin new file mode 100644 index 000000000..9e0b65134 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0b91732070858611a9516cc8ba4646c569a5b63a8b750d0ee453cee247ec015 +size 17528 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.fbx deleted file mode 100644 index f7bf7e02a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereCap_1meter.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d31c6073f26e72521d414877c291b6a326d415ba5c4c5b9309f6fde3bd99b189 -size 22492 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.bin new file mode 100644 index 000000000..8249549a8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03ec9ad7776376788c2798cae2ba2a038a3191edb24784ac64aa1baa0500c774 +size 268214 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.fbx deleted file mode 100644 index ff3b98e27..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHiRes_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0cc8ba15366bc01d39aacdb12e3e40acb4ae3486d077d99cff574af7a3183ea -size 133452 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.bin new file mode 100644 index 000000000..cd74f489b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d563f506c42f9a45800495cfb204c978550a8bbbafdf0d1e925a9f9f367f15ed +size 12904 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.fbx deleted file mode 100644 index e5b0fab66..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereHitDisc_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3d3018a087a5c07ec6d863230ff908c4ea077f0d6e3d9157b946f5011016d06b -size 17868 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.bin new file mode 100644 index 000000000..2f102a3d8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efeee387845a79e612c119cf1e4999b8afca4ccade2b183e2a12919a7b635211 +size 13790 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.fbx deleted file mode 100644 index c1f03b1fa..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereLoRes_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aeecb64e444b4a77a9cf94e4d4a1d030aeaa869d0d23ca9b93a8616997e8ef93 -size 22428 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.bin new file mode 100644 index 000000000..c29dbd8bb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca5160797622c2631bfd8860fe71e172a53279be8923a4e1d4e18ff866e1062d +size 46491 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.fbx deleted file mode 100644 index 6fc9c86fa..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereMedRes_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:263f919d871340e268d2a9043d4794a2609e1a3b0b69ff983564356fb582dad7 -size 34444 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.bin new file mode 100644 index 000000000..b1c0d2e4e --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:748675b8614e6d942bce65e213b6d0f38df340265bb5848d3c0a6ec1e7c9c38b +size 4740 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.fbx deleted file mode 100644 index 42a2e33a2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_SphereRays1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04678cd022e63e4c1b72e9ccfca3d96b8864d3a826869ffce32be5ac6fce6523 -size 16508 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.bin new file mode 100644 index 000000000..1eff508b1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21e68ac86933bb67fefc2a6d3809e57f97a30031bbc2bcc4952c009366f41c38 +size 162302 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.fbx deleted file mode 100644 index 4969291d1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Sphere_WireTest_1meter.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7aa68a4f99bf63162f554c924cca943d53f6ee10e8dc4981bd8ad802ba4348bd -size 45260 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.bin new file mode 100644 index 000000000..d6c0c2f64 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34f5f3ff286be5c266579fa9ed23d492df0d1988231d80bdf07150a36b372ea0 +size 13101 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.fbx deleted file mode 100644 index ae31bfbd5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a558b101fadac799c01a016bcab6fc2a62ad1bfabd526d33c19b17751a9fc8f -size 20652 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.bin new file mode 100644 index 000000000..c57da1127 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d9be8378e893d5f2cb335bfde9830137113845abec767c60b99845da31a16c6 +size 19129 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.fbx deleted file mode 100644 index 390ca2cd5..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_03.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:70f5e6ad2ff4ead450a148a0f46fb595935349f906bbcf678287279101b357d1 -size 23324 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.bin new file mode 100644 index 000000000..de7855fee --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb3e2c690c8f74fafc02b7f2dc243f14501abbcd855b2f5c82831a3820e1d243 +size 19129 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.fbx deleted file mode 100644 index 4a7ed6ff1..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Spiral_04.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:66963b8c0de09e737dd9c155e4ec3dfc000bbcef86ca2b5acfef9ee30a32db4c -size 23228 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.bin new file mode 100644 index 000000000..3f95a4ac7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5e989c1c263fd89cc23f754ede43bb6f22f0a618a54425364a38a6dd2ed38c2 +size 40757 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.fbx deleted file mode 100644 index e314862e2..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Arresto.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b219a36f547f27ae1c0f0e11543bfe5fe117edf27321e6d25a2d4885e5237bf6 -size 33100 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.bin new file mode 100644 index 000000000..33051d8c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3766c52ecaaed63ffb8fcaa35bc7610c3ec6610b6065057e8f33251c8e9f3ef +size 87308 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.fbx deleted file mode 100644 index 59f47da9d..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Swirl_Wingardium.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:050a6b6d1e10be0a3dc499af0f87c1e1bf8dafe16d2874fcb8e945f3247e0206 -size 59548 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.bin new file mode 100644 index 000000000..a89f392ee --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4dd53fa57715f0ba37ad14f8d865b0fd56215b77e461464821e197f5814474d +size 26963 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.fbx deleted file mode 100644 index f1fc0836a..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_01.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:998ff2afe73660dfdbd8469bda790af3e4b467eb5c3b58ebe63a757026035463 -size 25436 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.bin new file mode 100644 index 000000000..e02723fb8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:023bcd1b405e2f277991fc98c537d879e552520ea28da4a32ef4aeedab89338b +size 107511 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.fbx deleted file mode 100644 index e3e504322..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_02.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a33644fba333f360890e7a2f7941d4f570205afaa28865c6064691a66538819 -size 56572 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.bin new file mode 100644 index 000000000..236d93feb --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bb6c34fb1b000dcb1cf67c85f7cae3f573d03471abe710dec6fcaf98763c9ed +size 90095 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.fbx deleted file mode 100644 index 41823183b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_03.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30f5454acfcd59915096bb689b2fd8c92c42d8f22a7a40be1629454d942b806c -size 50012 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.bin new file mode 100644 index 000000000..91bc67f07 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f2382594ec952c195c091110c8a05c689a27735d8c84210885b2a9f191e0aff +size 56907 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.fbx deleted file mode 100644 index 3684f6e65..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TMBG_Death_Shard_04.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a84df677b994edf713cfd585b036bca2b902dc2bec5d909fb706343a1049af1 -size 35900 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.bin new file mode 100644 index 000000000..9e2a9f2da --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbb818f43fc7dfab998cdd088aed8537dfd5025d28dcd6e9d8d5e35681dee650 +size 13295 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.fbx deleted file mode 100644 index 058ad7c7b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderA_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b37f21fd3c583e7c12e8e9fe02796d262cbb8236956be6e2dd54671a481900d6 -size 20652 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.bin new file mode 100644 index 000000000..701f3d7c6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf435338f1f9476f347c900bc331d2b599b3330de050c0745d5b43157aa54467 +size 21271 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.fbx deleted file mode 100644 index 3e0dc1f84..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TaperedCylinderB_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0acd20f702ff330fbc0b103dd6330c96f4371820238d6224ecf2ef3f8f166ae0 -size 23852 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.bin new file mode 100644 index 000000000..a069468d6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d58ba49233613e2fef97b5af0cd1cd0572cac58c635e2578ede66b9d3fcf936a +size 1401 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.fbx deleted file mode 100644 index 194fd073b..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaLeaf.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24877b9667f73e8e3712816dee9a389332f11b69e909d21fe386ef9d25feddee -size 15964 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.bin new file mode 100644 index 000000000..e4fbb67a2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c826afa8ad2c9639edb34c783ab3e32cea1041a32c8dfa144a561ed5674326be +size 37453 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.fbx deleted file mode 100644 index 9dc78f1f3..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TentaculaTwig.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8234d9207b47eff5063d47c77865ab619371bc0c3156ea39f53c813c9a63f0c6 -size 28940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.bin new file mode 100644 index 000000000..9ad53b1be --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ccc73c872190e26f2cf4a4139d568b903e2548efb2be23880f53372f4ea74a3 +size 5963 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.fbx deleted file mode 100644 index 15914bbd7..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TorchCap_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d771af959549b1ea36abef34da5986590ee70e8a85db9d729b60ffba10c08c94 -size 17164 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.bin new file mode 100644 index 000000000..4305de08f --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36edd8eb5acd4df1659de4fa62b7ce8beb79690eaeca6ec0c363bec29b27c0a9 +size 24973 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.fbx deleted file mode 100644 index 53ee2bd33..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Tube90_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe01a00fb85d0ade33eba688748b71b62b1468796419e2a61875a5b1570b6b59 -size 26396 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.bin new file mode 100644 index 000000000..de3bc7832 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6abb0a52104f236dd03ee2064442ce883f9bdafbf953a830c2937f7dff656044 +size 94369 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.fbx deleted file mode 100644 index 3799bfdb4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b916c2f574965d3b9b74f5ccd0a9c3eca62fbb8c7aad4b9ee4e602adfb6c54f2 -size 56300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.bin new file mode 100644 index 000000000..d204263f0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55c3b0542bad38b17b3f33c00d1b7f3cc84d4472a7a55db6f4353bd5d708e1cf +size 94378 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.fbx deleted file mode 100644 index 8467ba3c4..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_TubeFlared_SquashUV_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6804dc30541be80922f7126ceb1b1d64dcbdd69119b6a4d515b3086d11dfd37b -size 56220 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.bin new file mode 100644 index 000000000..e06cc06f9 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d696dac5585eb71dce033f5b9d946ca9798029f95e9c2b6d77389c2b4b7ec34a +size 13287 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.fbx deleted file mode 100644 index c7967d46e..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34b1687cfcdf9513b3b8378b932e5ff9396a0d51a6beef5a07c3d7b7023d68ba -size 22268 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.bin new file mode 100644 index 000000000..d3aa779c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e6d91be7e96a0f58c5b09ad6b7190817f319629e4b78ba931a82b9c9ce0e9b7 +size 13292 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.fbx deleted file mode 100644 index 915a4c0ef..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_VortexSpiral_1m_Thin.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b38733fefdf43636a7ba54e70a21b020a89a2bc9566079c0d7589c76511662cc -size 21004 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.bin new file mode 100644 index 000000000..6d8997fa3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c045e1ec351f6271a98ed7cff8b572631ea7f107083cd328a3177b62d30d1a1 +size 12940 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.fbx deleted file mode 100644 index 772e6a1ab..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WakeWave.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:52ed7bc6f50d07282b54ff0336ca9da02afa33e65b9745929e8c1911b33cc27f -size 19948 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.bin new file mode 100644 index 000000000..59e930af4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9dc2910e9ae75a3f218a279ae6c3fd997269f9ce52457f09000256a39780bb4 +size 20933 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.fbx deleted file mode 100644 index 8429b1300..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Wave_Circular.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d9548c1befafecd5871ea4c4650062d472aaca7c85ac0425526859e404b48b4a -size 22716 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.bin new file mode 100644 index 000000000..f0b1e9c5d --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:889ec8484d4c53dbd11ee151fd2c6abbe9cc02d3a1a88a6b5c0e9cd081676d62 +size 13106 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.fbx deleted file mode 100644 index bfcc57e00..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_WindSection_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b03fc37f28e5cce0d881e414ab2301d535fd770b3f7e290b0970116c8011991 -size 21788 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.bin new file mode 100644 index 000000000..fcf81032c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b35c7881597ae9a97ffa41d51ddde816a6b25f7a8c1610add0550078997c6714 +size 33928 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.fbx deleted file mode 100644 index 9fe04e245..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/ParticleMesh/VFX_SM_Zap01_1m.001.fbx +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f25d2909fcf91cb8212b0a943c10e64e8f4a31d1cf790e9d1372db84fa1018d0 -size 31148 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin index 12f29295b..5ca18c2a5 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3f0e6a868bc07861d4cb0e0cd80ab163ac81805701331463b5401bf74c71e86d -size 29 +oid sha256:8b12395ad9cb7848a23935a1241595b4a1a2ffbcde890ba0d2e04a3d7fda7478 +size 43 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin new file mode 100644 index 000000000..cd2f53b0c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed60b97d375624913d511db6d165643e842748d3cd72e9ac39c74203514439b0 +size 1131818 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.fbx new file mode 100644 index 000000000..58b9c8f40 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12e51d7a9e6064e862bc5fb54e45e7d2a3a4970d6d5d37f104bdad4d18d53340 +size 457356 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_D.dds new file mode 100644 index 000000000..626aeb690 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_N.dds new file mode 100644 index 000000000..894aac4bc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_SROH.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_SROH.dds new file mode 100644 index 000000000..e304132e4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_BogTree_Oak_BarkA_SROH.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_D.dds new file mode 100644 index 000000000..a657fddc9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_N.dds new file mode 100644 index 000000000..75470e6b4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_SRO.dds new file mode 100644 index 000000000..5aebac0bd Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/InstanceProp/Textures/T_Oak_Leaves02_SRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin index 696dda5f1..0677063a7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b06d2487f0ccbed4c205d620a1fd703575de95a2f44a79dd02a86384f1532477 -size 2760173 +oid sha256:c3c63077144d6eaaf7689bfe372f1533c51f3fa70f34deff1f356827172f4269 +size 19831079 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx index b670355d7..320b93641 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/Goblin/Goblin_Anim.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:60e65ce871b01b870ccb2e58b865160599ca201bb01561abd8cd9dfcd15775f6 -size 2965692 +oid sha256:3a6b3c84007827d3b00905b78ca4de6a4a88a05d2996410b3677ad65530ef6ce +size 43823820 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin index 587cb6eb8..9352f16ea 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.bin differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx index 9bb677d77..1b2b3a395 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom.fbx @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2d071b22f597d86953d9e1751b79a9ae97fffdd2367856ee03f6bf3c500c7b40 -size 3138924 +oid sha256:3960d6a8980bd6332d69d85052d43a7ec1114b0c374b17217c4f7f65e8335e1f +size 3140380 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom1.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom1.fbx new file mode 100644 index 000000000..9bb677d77 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom1.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d071b22f597d86953d9e1751b79a9ae97fffdd2367856ee03f6bf3c500c7b40 +size 3138924 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom2.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom2.fbx new file mode 100644 index 000000000..097c78d1c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/Broom2.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f6b93e36368852a0fa56c73e6ec2d0d17a5339cc78961fb865b73c25da46e4e +size 3122780 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png new file mode 100644 index 000000000..c3a2ac1b8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Broom/T_FlightClassBroom_01_MRO.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.bin new file mode 100644 index 000000000..8bfee58f2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a474ee4079f2727f72b82ad260f074dd07eb4c1711f604b7ed9b4aff689f7933 +size 739778 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx new file mode 100644 index 000000000..3cb8313b1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04095b30fb71db8aa5a1f88b789368f538077f5310d3f087c68af30ebaaf418a +size 302236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_D.dds new file mode 100644 index 000000000..30a480528 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_MRO.dds new file mode 100644 index 000000000..fc183f014 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_N.dds new file mode 100644 index 000000000..2a74db500 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Base_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_D.dds new file mode 100644 index 000000000..020dc3728 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_D.dds new file mode 100644 index 000000000..dbd482408 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_MRO.dds new file mode 100644 index 000000000..81928a67b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_N.dds new file mode 100644 index 000000000..9e747644c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_Globe_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_MRO.dds new file mode 100644 index 000000000..87c321c86 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_N.dds new file mode 100644 index 000000000..7489e9c83 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe/T_DragonGlobe_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.bin new file mode 100644 index 000000000..2b31d4576 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30b8f2e0c9087c3be426ffbbbcebdb1aa409a06e1331e31670949692656ac716 +size 739787 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx new file mode 100644 index 000000000..3cb8313b1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04095b30fb71db8aa5a1f88b789368f538077f5310d3f087c68af30ebaaf418a +size 302236 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_D.dds new file mode 100644 index 000000000..30a480528 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_MRO.dds new file mode 100644 index 000000000..fc183f014 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_N.dds new file mode 100644 index 000000000..52859906c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Base_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_D.dds new file mode 100644 index 000000000..020dc3728 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_D.dds new file mode 100644 index 000000000..dbd482408 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_D.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_MRO.dds new file mode 100644 index 000000000..81928a67b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_N.dds new file mode 100644 index 000000000..35172d308 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_Globe_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_MRO.dds new file mode 100644 index 000000000..87c321c86 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_MRO.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_N.dds new file mode 100644 index 000000000..0ed625085 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/DragonGlobe2/T_DragonGlobe_N.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_D.png new file mode 100644 index 000000000..5f61579a5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_N.png new file mode 100644 index 000000000..2b8226301 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/T_Wands_Wand11_Var3_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin new file mode 100644 index 000000000..84c1732c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30c393a0dcbcf5b6d34f3e8643bb0d8859e56f93ed9252d6071c6cf83edabbc8 +size 68978 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx new file mode 100644 index 000000000..d56d7e953 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Object/Wand/Wand.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70aebae3fb159ea7acd1b8538427821827a7c6c011ed1921d09200707b431a1f +size 43612 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli new file mode 100644 index 000000000..372ecfae5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli @@ -0,0 +1,47 @@ +#ifndef ENGINE_SHADER_CONSTANTS_HLSLI +#define ENGINE_SHADER_CONSTANTS_HLSLI + +static const vector g_vMtrlDiffuse = 1.f; +static const vector g_vMtrlAmbient = 1.f; +static const vector g_vMtrlSpecular = 1.f; + +static const float PI = 3.14159265359; +static const float PI2 = 6.28318530718; + +static const float FLT_EPSILON7 = 1.192092896e-07; +static const float FLT_EPSILON5 = 1.192092896e-05; +static const float FLT_EPSILON3 = 1.192092896e-03; + + +static const float AI_TEXTURE_TYPE_NONE = 0.f / 27.f; +static const float AI_TEXTURE_TYPE_DIFFUSE = 1.f / 27.f; +static const float AI_TEXTURE_TYPE_SPECULAR = 2.f / 27.f; +static const float AI_TEXTURE_TYPE_AMBIENT = 3.f / 27.f; +static const float AI_TEXTURE_TYPE_EMISSIVE = 4.f / 27.f; +static const float AI_TEXTURE_TYPE_HEIGHT = 5.f / 27.f; +static const float AI_TEXTURE_TYPE_NORMALS = 6.f / 27.f; +static const float AI_TEXTURE_TYPE_SHININESS = 7.f / 27.f; +static const float AI_TEXTURE_TYPE_OPACITY = 8.f / 27.f; +static const float AI_TEXTURE_TYPE_DISPLACEMENT = 9.f / 27.f; +static const float AI_TEXTURE_TYPE_LIGHTMAP = 10.f / 27.f; +static const float AI_TEXTURE_TYPE_REFLECTION = 11.f / 27.f; +static const float AI_TEXTURE_TYPE_BASE_COLOR = 12.f / 27.f; +static const float AI_TEXTURE_TYPE_NORMAL_CAMERA = 13.f / 27.f; +static const float AI_TEXTURE_TYPE_EMISSION_COLOR = 14.f / 27.f; +static const float AI_TEXTURE_TYPE_METALNESS = 15.f / 27.f; +static const float AI_TEXTURE_TYPE_DIFFUSE_ROUGHNESS = 16.f / 27.f; +static const float AI_TEXTURE_TYPE_AMBIENT_OCCLUSION = 17.f / 27.f; +static const float AI_TEXTURE_TYPE_UNKNOWN = 18.f / 27.f; +static const float AI_TEXTURE_TYPE_SHEEN = 19.f / 27.f; +static const float AI_TEXTURE_TYPE_CLEARCOAT = 20.f / 27.f; +static const float AI_TEXTURE_TYPE_TRANSMISSION = 21.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_BASE = 22.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR = 23.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_COLOR = 24.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_ROUGHNESS = 25.f / 27.f; +static const float AI_TEXTURE_TYPE_ANISOTROPY = 26.f / 27.f; +static const float AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 27.f / 27.f; + + + +#endif // ENGINE_SHADER_CONSTANTS_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli index 3ddc2f1e7..3ce9b7364 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli @@ -1,258 +1,12 @@ +#ifndef ENGINE_SHADER_DEFINES_HLSLI +#define ENGINE_SHADER_DEFINES_HLSLI -vector g_vMtrlDiffuse = 1.f; -vector g_vMtrlAmbient = 1.f; -vector g_vMtrlSpecular = 1.f; - -float PI = 3.14592; - -sampler DefaultSampler = sampler_state -{ - Filter = MIN_MAG_MIP_LINEAR; - AddressU = wrap; - AddressV = wrap; -}; - -sampler ClampSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = clamp; - AddressV = clamp; -}; - -sampler MirrorSampler = sampler_state -{ - Filter = MIN_MAG_MIP_LINEAR; - AddressU = mirror; - AddressV = mirror; -}; - -sampler BorderZeroSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = Border; - AddressV = Border; - BorderColor = float4(0, 0, 0, 0); -}; - -sampler PointSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = wrap; - AddressV = wrap; -}; - -RasterizerState RS_Default -{ - FillMode = Solid; - CullMode = Back; -}; - -RasterizerState RS_Nocull -{ - FillMode = Solid; - CullMode = None; - FrontCounterClockwise = false; - DepthClipEnable = false; -}; - -RasterizerState RS_Nocull_Wireframe -{ - FillMode = Wireframe; - CullMode = None; - FrontCounterClockwise = false; - DepthBias = 0; - SlopeScaledDepthBias = 0.f; - DepthBiasClamp = 0.f; - DepthClipEnable = false; - ScissorEnable = false; - MultisampleEnable = false; - AntialiasedLineEnable = false; -}; - -RasterizerState RS_Scissor -{ - FillMode = Solid; - CullMode = Back; - FrontCounterClockwise = false; - ScissorEnable = true; -}; - -DepthStencilState DSS_Default -{ - DepthEnable = true; - DepthWriteMask = all; - DepthFunc = less_equal; -}; - -DepthStencilState DSS_None -{ - DepthEnable = false; - DepthWriteMask = zero; -}; - -DepthStencilState DSS_Effect -{ - DepthEnable = true; - DepthWriteMask = zero; - DepthFunc = less_equal; - StencilEnable = false; -}; - -BlendState BS_None -{ - BlendEnable[0] = false; -}; - -BlendState BS_AlphaBlend // ALPHA_BLEND -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - // Ac * Aa + Bc * (1 - Aa); - SrcBlend = Src_Alpha; - DestBlend = Inv_Src_Alpha; - BlendOp = Add; -}; - -BlendState BS_Blend // ADDITIVE_BLEND -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - // Ac * (1) + Bc * (1); - SrcBlend = one; - DestBlend = one; - BlendOp = Add; -}; - -BlendState BS_UIBlend -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - SrcBlend = Src_Alpha; - DestBlend = Inv_Src_Alpha; - BlendOp = Add; - - SrcBlendAlpha = One; - DestBlendAlpha = Zero; - BlendOpAlpha = Add; - - RenderTargetWriteMask[0] = 0x0F; // RGBA 모두 출력 -}; - -BlendState BS_WB_Acc -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - SrcBlend[0] = one; - DestBlend[0] = one; - BlendOp[0] = Add; - - SrcBlend[1] = Zero; - DestBlend[1] = Inv_Src_Alpha; - BlendOp[1] = Add; +#include "Engine_Shader_Constants.hlsli" +#include "Engine_Shader_Structures.hlsli" +#include "Engine_Shader_Samplers.hlsli" +#include "Engine_Shader_States.hlsli" +#include "Engine_Shader_Functions.hlsli" - SrcBlend[2] = one; - DestBlend[2] = one; - BlendOp[2] = Add; -}; +#endif // ENGINE_SHADER_DEFINES_HLSLI -BlendState BS_WeightBlend -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - - SrcBlend[0] = Src_Alpha; - DestBlend[0] = Inv_Src_Alpha; - - BlendOp[0] = Add; - - - -}; - -float ShadowVisibility_hwPCF(Texture2D ShadowMap, float4 vLightClip, float2 vShadowMapSize, float bias) -{ - float2 uv = float2(vLightClip.x / vLightClip.w, -vLightClip.y / vLightClip.w) * 0.5f + 0.5f; - float fDepthCenter = saturate(vLightClip.z / vLightClip.w); - float2 vTexel = 1.f / vShadowMapSize; - - float fVisibility = 0.f; - for (int v = -1; v <= 1; ++v) - { - for (int u = -1; u <= 1; ++u) - { - float2 vOffset = float2(u, v) * vTexel; - float fDepth = ShadowMap.Sample(DefaultSampler, uv + vOffset).x; - fVisibility += (fDepthCenter - bias > fDepth) ? 0.f : 1.f; - } - } - return fVisibility / 9.f; -} - -float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float fRimPower, float fRimStrength) -{ - float fRimLight = (1 - dot(normalize(vCamPosition - vPosition), vNormal)); - fRimLight = pow(fRimLight, fRimPower); - fRimLight = fRimLight * fRimStrength; - return fRimLight; -} - -float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV) -{ - float2 vDelta = float2(fDeltaU, fDeltaV); - float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV); - return vOriginalUV * vDelta + vOffset; -} - -float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame) -{ - float2 UV = vUV; // 이미지의 UV값 - - int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지) - - int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지) - int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지) - - float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다. - float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다. - - UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다. - UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다. - - return UV; -} diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli new file mode 100644 index 000000000..7037ecd28 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -0,0 +1,321 @@ +#ifndef ENGINE_SHADER_FUNCTIONS_HLSLI +#define ENGINE_SHADER_FUNCTIONS_HLSLI + +#include "Engine_Shader_Constants.hlsli" +#include "Engine_Shader_Structures.hlsli" +#include "Engine_Shader_Samplers.hlsli" + +bool AlmostEqual7(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON7; +} +bool AlmostEqual5(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON5; +} +bool AlmostEqual3(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON3; +} + +float ShadowVisibility_hwPCF(Texture2D ShadowMap, float4 vLightClip, float2 vShadowMapSize, float bias) +{ + float2 uv = float2(vLightClip.x / vLightClip.w, -vLightClip.y / vLightClip.w) * 0.5f + 0.5f; + float fDepthCenter = saturate(vLightClip.z / vLightClip.w); + float2 vTexel = 1.f / vShadowMapSize; + + float fVisibility = 0.f; + for (int v = -1; v <= 1; ++v) + { + for (int u = -1; u <= 1; ++u) + { + float2 vOffset = float2(u, v) * vTexel; + float fDepth = ShadowMap.Sample(DefaultSampler, uv + vOffset).x; + fVisibility += (fDepthCenter - bias > fDepth) ? 0.f : 1.f; + } + } + return fVisibility / 9.f; +} + +float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float fRimPower, float fRimStrength) +{ + float fRimLight = (1 - dot(normalize(vCamPosition - vPosition), vNormal)); + fRimLight = pow(fRimLight, fRimPower); + fRimLight = fRimLight * fRimStrength; + return fRimLight; +} + +float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV) +{ + float2 vDelta = float2(fDeltaU, fDeltaV); + float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV); + return vOriginalUV * vDelta + vOffset; +} + +float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame) +{ + float2 UV = vUV; // 이미지의 UV값 + + int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지) + + int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지) + int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지) + + float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다. + float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다. + + UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다. + UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다. + + return UV; +} + +// (Kd F(Lambert)) + (Ks F(cook-torrance)) + +//float LambertDiffuse(float c) +//{ +// return c / PI; +//} + +// F(cook-torrance) +// DFG / (4 (Wo dot N) (Wi dot N)) + +// D(distribution, NormalDistribution function), 표면의 거칠기에 영향을 받는 halfWay vector +// G(Geometry, GeometryFunc), 에너지 보존법칙 적용 +// F(Fresnel-Fresnel equation), 표면 각도에 따른 반사율 + +// F->D +float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDistributionGGXTR, (H, halfWay vector), (A, Roughness), (N, Normal) +{ + float a2 = fAlpha * fAlpha; + float NdotH = saturate(dot(vNormal, vHalfWayVector)); + float NdotH2 = NdotH * NdotH; + + float nom = a2; + float denom = (NdotH2 * (a2 - 1.f) + 1.f); + + denom = PI * denom * denom; + return (nom / denom); +} + +// F->G +// GschlickGGX(n, v, k) +// k는 이하 두개 조명 조건에 따라 가변적임 +// Direct // Kdir -> ((a + 1) * (a + 1)) / 8 // direct lighting 추천 +// IBL Lighting // Kibl -> a * a / 2 // 이미지 기반 조명기법 + +float Geometry_SchlickGGX(float NdotV, float fK) +{ + return NdotV / (NdotV * (1.0f - fK) + fK); +} + +float Geometry_Smith(float3 vNormal, float3 vFromView, float3 vFromLight, float k) +{ + // Geometry Obstruction + // 철이 있는, 주로 튀어나온 장애물 + float NdotV = saturate(dot(vNormal, vFromView)); + + // Geometry Shadowing + // 요가 있는, 주로 음푹 들어간 장애물 (그래서 셰도잉) + float NdotL = saturate(dot(vNormal, vFromLight)); + + // 요철이 골고루 있다고 가정하고 적당히 섞음 + return Geometry_SchlickGGX(NdotV, k) * Geometry_SchlickGGX(NdotL, k); +} + +// F -> F +float3 Fresnel_Schlick(float cosTheta, float3 F0) +{ + // 모서리 부분의 반사 + return F0 + (1.0f - F0) * pow(1.0f - cosTheta, 5.0f); +} + +PBR_LIGHT_OUT PBR_Lighting( + float3 vNormal, float3 vToView, float3 vToLight, + float3 vAlbedo, float fMetallic, float fRoughness, + float3 vLightColor, float fAttenuation, float3 vFO +) { + PBR_LIGHT_OUT Out; + Out.vShade = 0; + Out.vSpecular = 0; + + float3 vHalfVector = normalize(vToView + vToLight); + float NdotL = saturate(dot(vNormal, vToLight)); + float NdotV = saturate(dot(vNormal, vToView)); + if (NdotL <= 0 || NdotV <= 0) + { + return Out; + } + + float fAlpha = max(fRoughness * fRoughness, 0.04f); + float k = ((fRoughness + 1.f) * (fRoughness + 1.f)) / 8.f; + + float D = NDF_ggxtr(vNormal, vHalfVector, fAlpha); + float G = Geometry_Smith(vNormal, vToView, vToLight, k); + float3 F = Fresnel_Schlick(saturate(dot(vHalfVector, vToView)), vFO); + + float3 vNumerator = D * G * F; + float fDenominator = max(4.f * NdotL * NdotV, 1e-7); + float3 specularBRDF = vNumerator / fDenominator; + + float3 kS = F; + float3 kD = (1.f - kS) * (1.f -fMetallic); + + //Out.vShade = float(1.f, 1.f, 1. 1.f); + Out.vShade = (kD / PI) * (NdotL * fAttenuation) * vLightColor; + + Out.vSpecular = specularBRDF * vLightColor * fAttenuation * NdotL; + + return Out; +} +float GetBloomCurve(float x) +{ + float fResult = x; + float fThreshold = 0.68f * 2.f; + x *= 2.f; + + fResult = x * 0.05f // 최소 기본값 보장 + + max(0, x - fThreshold) // 밝기값 68 이하는 기본값으로하고 초과하면 그 값만큼 더해줌 + * 0.5f; // 0~2로 정규화 되어있기 때문에 강조 값 보정해줌 + + return fResult * 0.5f; +} + +// RG 노말맵에서 Z 벡터 복원 +float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv) +{ + float2 vSampledRG = (NormalMap.Sample(Samp, uv).rg * 2.f - 1.f); + + float z2 = 1.0f - saturate(dot(vSampledRG, vSampledRG)); + float z = sqrt(max(z2, 0.0f)); + + float3 n = float3(vSampledRG, z); + + return normalize(n); +} + +float4x4 RotateX(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateXMat = + { + 1, 0, 0, 0, + 0, fCos, -fSin, 0, + 0, fSin, fCos, 0, + 0, 0, 0, 1, + }; + + return RotateXMat; +} + +float4x4 RotateY(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateYMat = + { + fCos , 0, fSin, 0, + 0 , 1, 0, 0, + -fSin , 0, fCos, 0, + 0 , 0, 0, 1 + }; + + return RotateYMat; +} + +float4x4 RotateZ(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateZMat = + { + fCos, -fSin, 0, 0, + fSin, fCos, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1, + }; + + 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; + +} + +float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) +{ + if (iSelectOption < 0) + return float2(0, 0); + + float fRatio = _fRatio; + switch (iSelectOption) + { + case 0: + fRatio = fRatio; // Linear + break; + case 1: + fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 + break; + case 2: + fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 + break; + case 3: + fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 + break; + case 4: + fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 + break; + case 5: + fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 + break; + case 6: + fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로 + break; + case 7: + fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수 + break; + case 8: + fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적 + break; + } + + return fAmount * fRatio; + +} + +#endif // ENGINE_SHADER_FUNCTIONS_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli new file mode 100644 index 000000000..7b7ec1a3b --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli @@ -0,0 +1,40 @@ +#ifndef ENGINE_SHADER_SAMPLERS_HLSLI +#define ENGINE_SHADER_SAMPLERS_HLSLI + +sampler DefaultSampler = sampler_state +{ + Filter = MIN_MAG_MIP_LINEAR; + AddressU = wrap; + AddressV = wrap; +}; + +sampler ClampSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = clamp; + AddressV = clamp; +}; + +sampler MirrorSampler = sampler_state +{ + Filter = MIN_MAG_MIP_LINEAR; + AddressU = mirror; + AddressV = mirror; +}; + +sampler BorderZeroSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = Border; + AddressV = Border; + BorderColor = float4(0, 0, 0, 0); +}; + +sampler PointSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = wrap; + AddressV = wrap; +}; + +#endif // ENGINE_SHADER_SAMPLERS_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli new file mode 100644 index 000000000..3b37f3b2c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli @@ -0,0 +1,168 @@ +#ifndef ENGINE_SHADER_STATES_HLSLI +#define ENGINE_SHADER_STATES_HLSLI + +RasterizerState RS_Default +{ + FillMode = Solid; + CullMode = Back; +}; + +RasterizerState RS_Nocull +{ + FillMode = Solid; + CullMode = None; + FrontCounterClockwise = false; + DepthClipEnable = false; +}; + +RasterizerState RS_Nocull_Wireframe +{ + FillMode = Wireframe; + CullMode = None; + FrontCounterClockwise = false; + DepthBias = 0; + SlopeScaledDepthBias = 0.f; + DepthBiasClamp = 0.f; + DepthClipEnable = false; + ScissorEnable = false; + MultisampleEnable = false; + AntialiasedLineEnable = false; +}; + +RasterizerState RS_Scissor +{ + FillMode = Solid; + CullMode = Back; + FrontCounterClockwise = false; + ScissorEnable = true; +}; + +DepthStencilState DSS_Default +{ + DepthEnable = true; + DepthWriteMask = all; + DepthFunc = less_equal; +}; + +DepthStencilState DSS_None +{ + DepthEnable = false; + DepthWriteMask = zero; +}; + +DepthStencilState DSS_Effect +{ + DepthEnable = true; + DepthWriteMask = zero; + DepthFunc = less_equal; + StencilEnable = false; +}; + +BlendState BS_None +{ + BlendEnable[0] = false; +}; + +BlendState BS_AlphaBlend // ALPHA_BLEND +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + // Ac * Aa + Bc * (1 - Aa); + SrcBlend = Src_Alpha; + DestBlend = Inv_Src_Alpha; + BlendOp = Add; +}; + +BlendState BS_Blend // ADDITIVE_BLEND +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + // Ac * (1) + Bc * (1); + SrcBlend = one; + DestBlend = one; + BlendOp = Add; +}; + +BlendState BS_UIBlend +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + SrcBlend = Src_Alpha; + DestBlend = Inv_Src_Alpha; + BlendOp = Add; + + SrcBlendAlpha = One; + DestBlendAlpha = Zero; + BlendOpAlpha = Add; + + RenderTargetWriteMask[0] = 0x0F; // RGBA 모두 출력 +}; + +BlendState BS_WB_Acc +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + SrcBlend[0] = one; + DestBlend[0] = one; + BlendOp[0] = Add; + + SrcBlend[1] = Inv_Src_Alpha; + DestBlend[1] = zero; + BlendOp[1] = Add; + + + SrcBlend[2] = one; + DestBlend[2] = one; + BlendOp[2] = Add; +}; + +BlendState BS_WeightBlend +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + + SrcBlend[0] = Src_Alpha; + DestBlend[0] = Inv_Src_Alpha; + + BlendOp[0] = Add; + + + +}; + +#endif // ENGINE_SHADER_STATES_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli new file mode 100644 index 000000000..7dcb70724 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli @@ -0,0 +1,10 @@ +#ifndef ENGINE_SHADER_STRUCTURES_HLSLI +#define ENGINE_SHADER_STRUCTURES_HLSLI + +struct PBR_LIGHT_OUT +{ + float3 vShade; + float3 vSpecular; +}; + +#endif // ENGINE_SHADER_STRUCTURES_HLSLI diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 38eea62d7..eef8ea86c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -33,16 +33,17 @@ Texture2D g_ShadowTexture; Texture2D g_PreShadowTexture; Texture2D g_BlurTexture; Texture2D g_BlurXTexture; -Texture2D g_BlurWeightTexture; +Texture2D g_BlurWeightTexture; +Texture2D g_BlurWeightXTexture; + +Texture2D g_SurfaceTexture; vector g_vLightDiffuse; vector g_vLightAmbient; vector g_vLightSpecular; - - struct VS_IN { float3 vPosition : POSITION; @@ -56,9 +57,9 @@ struct VS_OUT }; VS_OUT VS_MAIN(VS_IN In) { - VS_OUT Out; + VS_OUT Out; - matrix matWV, matWVP; + matrix matWV, matWVP; matWV = mul(g_WorldMatrix, g_ViewMatrix); matWVP = mul(matWV, g_ProjMatrix); @@ -66,7 +67,18 @@ VS_OUT VS_MAIN(VS_IN In) Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); Out.vTexcoord = In.vTexcoord; - return Out; + return Out; +} +VS_OUT VS_CAPTURE(VS_IN In) +{ + VS_OUT Out; + + float2 vClipPos = In.vPosition.xy * 2.0f; // → -1.0 ~ +1.0 + + Out.vPosition = float4(vClipPos, 0.0f, 1.0f); + Out.vTexcoord = In.vTexcoord; + + return Out; } struct PS_IN @@ -99,41 +111,69 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.0f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir) * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient)); + float fViewZ = vDepth.y * g_fFar; - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } - float fViewZ = vDepthDesc.y * g_fFar; - - vector vPosition; + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; + float fOcclusion = 1.f; + float fAttenuation = 1.f; -{ // vDepthDesc과 vTexcoord.xy로부터 World Position의 추론 - /* 직육면체의 NDC */ - /* LocalPos * World * View * Proj * ( 1 / w ) */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로 - /* [* (1 / w)] 소거*/ - /* z나누기를 되돌림 */ - vPosition = vPosition * fViewZ; -// vPosition.x = In.vTexcoord.x * 2.f - 1.f * Far; -// vPosition.y = In.vTexcoord.y * -2.f + 1.f * Far; -// vPosition.z = vDepthDesc.x * Far; -// vPosition.w = Far; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); -} - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(normalize(g_vLightDir), vNormal); + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient)); + Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f); - Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f); + return Out; + } + + float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion); + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + PBR_Out.vShade *= fDiffuseAOStrength; + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -142,38 +182,70 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float fViewZ = vDepth.y * g_fFar; - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); - - vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + float fOcclusion = 1.f; + float fAttenuation = 1.f; - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로 + + { + float fDistance = length(vToLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) { discard; } + } + + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f)); + + return Out; + } + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -182,56 +254,105 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float fViewZ = vDepth.y * g_fFar; - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); - - vector vLightDir = vPosition - g_vLightPos; - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - vector vSpotDir = normalize(g_vLightDir); - float fCosAngle = dot(vLightDir, vSpotDir); - if (fCosAngle < g_fSpotOuterAngle) + + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; + float fOcclusion = 1.f; + float fAttenuation = 1.f; + + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로 + { - discard; + float fDistance = length(vToLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) { discard; } } - float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); + float fCosAngle = dot(vToView, g_vLightDir.xyz); + if (fCosAngle < g_fSpotOuterAngle) { discard; } + + float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); fAttenuation *= fSpotAttenenuation; - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f)); - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + return Out; + } - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } -float g_fWeights[32] = +//float g_fWeights[32] = +//{ +// 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000, +// 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800, +// 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200, +// 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200 +//}; + +float g_fWeights[128] = { - 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000, - 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800, - 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200, - 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200 + 0.000209902, 0.000241594, 0.000277451, 0.000317919, 0.000363477, 0.000414637, 0.000471944, 0.000535974, + 0.000607333, 0.000686659, 0.000774615, 0.000871889, 0.00097919, 0.00109725, 0.00122679, 0.00136858, + 0.00152334, 0.00169183, 0.00187477, 0.00207285, 0.00228675, 0.0025171, 0.00276448, 0.0030294, + 0.00331231, 0.00361356, 0.00393342, 0.00427205, 0.00462949, 0.00500564, 0.0054003, 0.00581308, + 0.00624346, 0.00669075, 0.00715411, 0.0076325, 0.00812472, 0.0086294, 0.009145, 0.0096698, + 0.0102019, 0.0107393, 0.0112798, 0.0118211, 0.0123608, 0.0128962, 0.0134249, 0.0139441, + 0.0144511, 0.0149431, 0.0154174, 0.0158713, 0.0163021, 0.0167073, 0.0170844, 0.0174311, + 0.0177452, 0.0180246, 0.0182676, 0.0184726, 0.0186383, 0.0187635, 0.0188474, 0.0188895, + + 0.0188895, 0.0188474, 0.0187635, 0.0186383, 0.0184726, 0.0182676, 0.0180246, 0.0177452, + 0.0174311, 0.0170844, 0.0167073, 0.0163021, 0.0158713, 0.0154174, 0.0149431, 0.0144511, + 0.0139441, 0.0134249, 0.0128962, 0.0123608, 0.0118211, 0.0112798, 0.0107393, 0.0102019, + 0.0096698, 0.009145, 0.0086294, 0.00812472, 0.0076325, 0.00715411, 0.00669076, 0.00624346, + 0.00581308, 0.0054003, 0.00500564, 0.00462948, 0.00427205, 0.00393342, 0.00361356, 0.00331231, + 0.0030294, 0.00276448, 0.0025171, 0.00228675, 0.00207285, 0.00187477, 0.00169183, 0.00152334, + 0.00136858, 0.00122679, 0.00109725, 0.000979191, 0.000871889, 0.000774615, 0.000686658, 0.000607333, + 0.000535973, 0.000471944, 0.000414637, 0.000363477, 0.000317919, 0.000277451, 0.000241594, 0.000209902 }; @@ -252,8 +373,8 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) Out.vBackBuffer = vDiffuse * vShade + vSpecular; - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); float fViewZ = vDepthDesc.y * g_fFar; @@ -271,6 +392,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); vPreShadowPosition = vPosition; + /* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */ vPosition = mul(vPosition, g_LightViewMatrix); vPosition = mul(vPosition, g_LightProjMatrix); @@ -289,6 +411,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.0005f); Out.vBackBuffer.rgb *= lerp(0.5f, 1.f, min(fVisibility_Dynamic, fVisibility_Static)); + //float fShadowDepth = g_ShadowTexture.Sample(DefaultSampler, vTexcoord).x; //float fPreShadowDepth = g_PreShadowTexture.Sample(DefaultSampler, vPreShadowTexcoord).x; //bool IsShadow = { false }; @@ -306,29 +429,25 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) //} float4 vColor = 0.f; - //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; - //int iBlurMin; - //int iBlurMax; - //if (iBlurWeight % 2 == 0) - //{ - // iBlurMin = -1 * iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2; - //} - //else - //{ - // iBlurMin = -iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2 + 1; - //} + int iBlurWeight = (int)(round(g_BlurWeightXTexture.Sample(ClampSampler, In.vTexcoord).r) * 128.f); - //[loop] // 변수로 루프돌리려면 반드시 필요함 - for (int i = -15; i < 16; ++i) + int iBlurMin; + int iBlurMax; + + iBlurMin = -1 * (iBlurWeight / 2) + 1; + iBlurMax = iBlurWeight / 2; + + // // 변수로 루프돌리려면 반드시 필요함 + + + for (int i = -63; i < 64; ++i) { vTexcoord.x = In.vTexcoord.x; vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; - vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord); + vColor += g_fWeights[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord); } Out.vBackBuffer += vColor; @@ -336,11 +455,70 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) return Out; } +PS_OUT_BACKBUFFER PS_MAIN_REFIT(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + Out.vBackBuffer = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord); + + return Out; +} + +PS_OUT_BACKBUFFER PS_MAIN_EMBOSS(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + float3 vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord).xyz; + + // temp 이거 키면 겁나 빤짞빤짞 빛남 ㄷㄷ + //vColor *= 3.f; + // temp + + //float fIntensity = dot(vColor, float3(0.3333f, 0.3333f, 0.3333f)); // 대략적인 밝기 + float fIntensity = dot(vColor, float3(0.2126f, 0.7152f, 0.0722f)); // 대략적인 밝기 ( 인간적인 ) + if (fIntensity <= 1e-4f) + { + Out.vBackBuffer = 0; + return Out; + } + float fBloomIntensity = GetBloomCurve(fIntensity); + + float3 bloomColor = (vColor * fBloomIntensity) / fIntensity; + Out.vBackBuffer = float4(bloomColor, 1.f); + + return Out; +} + struct PS_OUT_BLUR_X { float4 vBlurX : SV_TARGET0; + float4 vBlurWeight : SV_TARGET1; }; +PS_OUT_BACKBUFFER PS_MAIN_BLOOM_ACCUM(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + float3 vColorSrcA = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord).xyz; + float3 vColorSrcB = g_BlurTexture.Sample(PointSampler, In.vTexcoord).xyz; + + Out.vBackBuffer = float4(saturate(vColorSrcA + vColorSrcB), 1.f); + + return Out; +} + +PS_OUT_BACKBUFFER PS_MAIN_BLOOM_FINISH(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + vector vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord); + float3 vBloom = g_BlurTexture.Sample(PointSampler, In.vTexcoord).xyz; + Out.vBackBuffer = vColor; + Out.vBackBuffer += float4(vBloom, 1.f); + + return Out; +} + PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) { @@ -349,35 +527,37 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) float2 vTexcoord; float4 vColor = 0.f; - //TODO 블러 조절 해보려햇는데 실패함.. - - //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; - - //int iBlurMin; - //int iBlurMax; - - //if (iBlurWeight % 2 == 0) - //{ - // iBlurMin = -1 * iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2; - //} - //else - //{ - // iBlurMin = -iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2 + 1; - //} - - //[loop] // 변수로 루프돌리려면 반드시 필요함 - - for (int i = -15; i < 16; ++i) + for (int i = -63; i < 64; ++i) { vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x; vTexcoord.y = In.vTexcoord.y; - vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord); + vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } - Out.vBlurX = vColor; + Out.vBlurX = vColor; + Out.vBlurWeight = 0.f; + + return Out; +} + +PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In) +{ + PS_OUT_BLUR_X Out; + + float2 vTexcoord; + float4 vColor = 0.f; + + for (int i = -63; i < 64; ++i) + { + vTexcoord.x = In.vTexcoord.x; + vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; + + vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); + } + + Out.vBlurX = vColor; + Out.vBlurWeight = 0.f; return Out; } @@ -385,7 +565,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) technique11 DefaultTechnique { - pass DebugPass + pass DebugPass // 0 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); @@ -395,7 +575,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DEBUG(); } - pass DirectionalPass + pass DirectionalPass // 1 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -405,7 +585,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DIRECTIONAL(); } - pass PointPass + pass PointPass // 2 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -415,7 +595,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_POINT(); } - pass CombinedPass + pass CombinedPass // 3 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -425,7 +605,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_COMBINED(); } - pass BlurPass + pass BlurPass // 4 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -435,7 +615,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); } - pass SpotPass + pass SpotPass // 5 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -444,4 +624,64 @@ technique11 DefaultTechnique GeometryShader = NULL; PixelShader = compile ps_5_0 PS_MAIN_SPOT(); } + + pass RefitPass // 6 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_REFIT(); + } + + pass EmbossingPass // 7 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_EMBOSS(); + } + + pass Bloom_BlurXPass // 8 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); + } + + pass Bloom_BlurYPass // 9 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLUR_Y(); + } + + pass Bloom_AccumPass // 10 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLOOM_ACCUM(); + } + + pass Bloom_FinishPass // 11 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLOOM_FINISH(); + } } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl index 5c8f5c81a..cb79ebc0b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl @@ -50,7 +50,7 @@ PS_OUT_BACKBUFFER PS_OUT_LASTCOLOR(PS_IN In) Out.vBackBuffer = float4(0.f, 0.f, 0.f, 0.f); - vector vColorTexture = g_ColorTexture.Sample(ClampSampler, In.vTexcoord); + vector vColorTexture = g_ColorTexture.Sample(DefaultSampler, In.vTexcoord); if (0.f == vColorTexture.a) { diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl new file mode 100644 index 000000000..645fd6d0c --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -0,0 +1,151 @@ +float PI = 3.141592; + +struct KeyFrame +{ + float3 vScale; + float4 vRotation; + float3 vTranslation; + float fTrackPosition; +}; + +struct Channel +{ + uint StartIndex; + uint KeyCount; + uint BoneIndex; +}; + +struct LocalPos +{ + float3 Scale; + float pad0; + + float4 Rotation; + + float3 Translation; + float pad1; +}; + + +StructuredBuffer g_KeyFrameBuffer : register(t0); +StructuredBuffer g_ChannelBuffer : register(t1); + +RWStructuredBuffer g_LocalPosOutput : register(u0); + + +cbuffer AnimCB : register(b0) +{ + float CurrentTime; + float Duration; + float Speed; + int BoneCount; + + row_major float4x4 PreTransformMatrix; +}; + +float4 quatSlerp(float4 q1, float4 q2, float t) +{ + float cosTheta = dot(q1, q2); + + if (cosTheta < 0.0f) + { + q2 = -q2; + cosTheta = -cosTheta; + } + + if (cosTheta > 0.9995f) + return normalize(lerp(q1, q2, t)); + + float theta = acos(cosTheta); + float sinTheta = sin(theta); + + float w1 = sin((1.0f - t) * theta) / sinTheta; + float w2 = sin(t * theta) / sinTheta; + + return q1 * w1 + q2 * w2; +} + + +[numthreads(256, 1, 1)] +void CS_LocalSRT(uint3 DTID : SV_DispatchThreadID) +{ + uint boneIndex = DTID.x; + if (boneIndex >= (uint) BoneCount) + return; + + float time = CurrentTime; + if (Duration > 0) + time = min(time, Duration); + + Channel channel = g_ChannelBuffer[boneIndex]; + + LocalPos result; + + if (channel.KeyCount == 0) + { + result.Scale = float3(1, 1, 1); + result.Rotation = float4(0, 0, 0, 1); + result.Translation = float3(0, 0, 0); + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + uint firstIndex = channel.StartIndex; + uint lastIndex = channel.StartIndex + channel.KeyCount - 1; + + KeyFrame keyframe1 = g_KeyFrameBuffer[firstIndex]; + KeyFrame keyframe2 = g_KeyFrameBuffer[lastIndex]; + + if (time <= keyframe1.fTrackPosition) + { + result.Scale = keyframe1.vScale; + result.Rotation = keyframe1.vRotation; + result.Translation = keyframe1.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + if (time >= keyframe2.fTrackPosition) + { + result.Scale = keyframe2.vScale; + result.Rotation = keyframe2.vRotation; + result.Translation = keyframe2.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + for (uint i = 0; i < channel.KeyCount - 1; ++i) + { + uint A = channel.StartIndex + i; + uint B = channel.StartIndex + i + 1; + + KeyFrame ka = g_KeyFrameBuffer[A]; + KeyFrame kb = g_KeyFrameBuffer[B]; + + if (time >= ka.fTrackPosition && time <= kb.fTrackPosition) + { + float t = (time - ka.fTrackPosition) / (kb.fTrackPosition - ka.fTrackPosition); + + result.Scale = lerp(ka.vScale, kb.vScale, t); + result.Rotation = quatSlerp(ka.vRotation, kb.vRotation, t); + result.Translation = lerp(ka.vTranslation, kb.vTranslation, t); + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + } + + result.Scale = keyframe2.vScale; + result.Rotation = keyframe2.vRotation; + result.Translation = keyframe2.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; +} diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_PBR.hlsl similarity index 59% rename from Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl rename to Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_PBR.hlsl index 38eea62d7..919c44c67 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_PBR.hlsl @@ -35,14 +35,14 @@ Texture2D g_BlurTexture; Texture2D g_BlurXTexture; Texture2D g_BlurWeightTexture; +Texture2D g_MROTexture; +Texture2D g_SROTexture; vector g_vLightDiffuse; vector g_vLightAmbient; vector g_vLightSpecular; - - struct VS_IN { float3 vPosition : POSITION; @@ -56,9 +56,9 @@ struct VS_OUT }; VS_OUT VS_MAIN(VS_IN In) { - VS_OUT Out; + VS_OUT Out; - matrix matWV, matWVP; + matrix matWV, matWVP; matWV = mul(g_WorldMatrix, g_ViewMatrix); matWVP = mul(matWV, g_ProjMatrix); @@ -66,7 +66,7 @@ VS_OUT VS_MAIN(VS_IN In) Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); Out.vTexcoord = In.vTexcoord; - return Out; + return Out; } struct PS_IN @@ -99,41 +99,69 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.0f); + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); - Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir) * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient)); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + float fViewZ = vDepth.y * g_fFar; - float fViewZ = vDepthDesc.y * g_fFar; + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } - vector vPosition; + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; -{ // vDepthDesc과 vTexcoord.xy로부터 World Position의 추론 - /* 직육면체의 NDC */ - /* LocalPos * World * View * Proj * ( 1 / w ) */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 - /* [* (1 / w)] 소거*/ - /* z나누기를 되돌림 */ - vPosition = vPosition * fViewZ; -// vPosition.x = In.vTexcoord.x * 2.f - 1.f * Far; -// vPosition.y = In.vTexcoord.y * -2.f + 1.f * Far; -// vPosition.z = vDepthDesc.x * Far; -// vPosition.w = Far; + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); -} - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(normalize(g_vLightDir), vNormal); + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } - Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f); + fAttenuation = 1.f; + + float fDiffuseAOStrength = lerp(0.3f, 1.f, fOcclusion); + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + PBR_Out.vShade *= fDiffuseAOStrength; + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -142,38 +170,74 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); + float fViewZ = vDepth.y * g_fFar; - vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + { + float fDistance = length(vFromLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) + { + discard; + } + } + + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, + vAlbedo, fMetallic, fRoughness, + g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -182,46 +246,78 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); + float fViewZ = vDepth.y * g_fFar; - vector vLightDir = vPosition - g_vLightPos; - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - vector vSpotDir = normalize(g_vLightDir); - float fCosAngle = dot(vLightDir, vSpotDir); + + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 + + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; + { + float fDistance = length(vFromLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) + { + discard; + } + } + float fCosAngle = dot(vFromLight, g_vLightDir.xyz); if (fCosAngle < g_fSpotOuterAngle) { discard; } - float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); + float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); fAttenuation *= fSpotAttenenuation; - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -271,6 +367,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); vPreShadowPosition = vPosition; + /* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */ vPosition = mul(vPosition, g_LightViewMatrix); vPosition = mul(vPosition, g_LightProjMatrix); @@ -377,7 +474,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } - Out.vBlurX = vColor; + Out.vBlurX = vColor; return Out; } @@ -385,7 +482,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) technique11 DefaultTechnique { - pass DebugPass + pass DebugPass // 0 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); @@ -395,7 +492,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DEBUG(); } - pass DirectionalPass + pass DirectionalPass // 1 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -405,7 +502,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DIRECTIONAL(); } - pass PointPass + pass PointPass // 2 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -415,7 +512,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_POINT(); } - pass CombinedPass + pass CombinedPass // 3 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -425,7 +522,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_COMBINED(); } - pass BlurPass + pass BlurPass // 4 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -435,7 +532,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); } - pass SpotPass + pass SpotPass // 5 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); 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 0dea26c43..91a72f9db 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -1,5 +1,4 @@ - -float PI = 3.141592; +#include "Engine_Shader_Functions.hlsli" struct Particle { @@ -30,7 +29,16 @@ struct ParticleValue float2 vAniIndex; float fGravity; - float3 vSinAmount; + float3 vSinAmount; + float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; + float2 vDelay; }; @@ -42,12 +50,22 @@ RWStructuredBuffer g_ParticleValueOutput : register(u1); cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함 { - row_major matrix CamViewInvMatrix; + row_major matrix WorldMatrix; bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라 bool isDrop; bool isMoveForward; bool isSinWave; + + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; + + bool isNoWorld; + bool isPadding0; + bool isPadding1; + bool isPadding2; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -67,18 +85,42 @@ void CS_MAIN( ParticleValue particleValue = g_ParticleValueBufferInput[iIndex]; - // 라이프타임 움직임 + particleValue.vDelay.x += fTimeDelta; + + if (particleValue.vDelay.x < particleValue.vDelay.y) + { + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return; + } + + if (particle.vLifeTime.x <= FLT_EPSILON5) + { + if (isNoWorld) + { + float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation }; + + + CurMat = mul(CurMat, WorldMatrix); + + particle.vRight = CurMat[0].xyzw; + particle.vUp = CurMat[1].xyzw; + particle.vLook = CurMat[2].xyzw; + particle.vTranslation = CurMat[3].xyzw; + } + } + // 라이프타임 움직임 particle.vLifeTime.x += fTimeDelta; if (particle.vLifeTime.x >= particle.vLifeTime.y) { if (isLoop == false) { - - - return; + return ; } - //초기화 particle.vRight = particleValue.vOriginRight; particle.vUp = particleValue.vOriginUp; @@ -86,15 +128,47 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; - + particleValue.vAniIndex.x = 0.f; + particleValue.vDelay.x = 0.f; + + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { - float4 vVelocity = vector(normalize(particleValue.vOriginLook.xyz) * particleValue.fSpeed, 1.f); + 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) @@ -107,6 +181,87 @@ void CS_MAIN( { particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } + + if (isTurn == true) + { + /* ROTATE */ + float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); + float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta); + float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat)); + + float4x4 CurRotatemat = {particle.vRight, particle.vUp, particle.vLook, vector(0.f , 0.f, 0.f, 1.f)}; + + + + CurRotatemat = mul(CombinedRotMat, CurRotatemat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + 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_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl index 760622fc7..067d90c1d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl @@ -23,15 +23,24 @@ float g_fOwnerAlpha; float g_fCanvasAlpha; float g_fAngle; float g_fCoolTime; +float g_fHp; float2 g_fOrigin_Size; float2 g_fCurrent_Size; +float2 g_fHpBG; float4 g_fNine_Slice; +float4 g_fImageUV; +float4 g_fImageUV1; + +float2 g_fPosition[4]; +float4 g_fImagesUV[4]; Texture2D g_Texture; Texture2D g_Texture1; Texture2D g_Texture2; +Texture2D g_Texture3; +Texture2D g_Texture4; Texture2D g_DiffuseTexture; Texture2D g_MaskingTexture; @@ -95,6 +104,8 @@ PS_OUT PS_AlphaBlend(PS_IN In) float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord); + Color.rgb *= 1.5f; + Color.a *= Alpha; Out.vColor = Color; @@ -222,7 +233,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In) int iTotalFrame = g_iImageCountX * g_iImageCountY; - int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame; + uint iCurrentFrame = uint(floor(g_fTime / g_fFrame)) % iTotalFrame; int iFrameX = iCurrentFrame % g_iImageCountX; int iFrameY = iCurrentFrame / g_iImageCountX; @@ -285,46 +296,63 @@ PS_OUT PS_NineSlice(PS_IN In) { PS_OUT Out; float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float Left = g_fNine_Slice.x / g_fOrigin_Size.x; - float Right = (g_fOrigin_Size.x - g_fNine_Slice.y) / g_fOrigin_Size.x; - float Top = g_fNine_Slice.z / g_fOrigin_Size.y; - float Bottom = (g_fOrigin_Size.y - g_fNine_Slice.w) / g_fOrigin_Size.y; + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 uv = In.vTexcoord; + float2 CurrentPixelPosition = uv * g_fCurrent_Size; + float OriginLeft = g_fNine_Slice.x; + float OriginRight = g_fNine_Slice.y; + float OriginTop = g_fNine_Slice.z; + float OriginBottom = g_fNine_Slice.w; - float2 ratio = g_fCurrent_Size / g_fOrigin_Size; + float CurrentLeft = OriginLeft; + float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); + float CurrentTop = OriginTop; + float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); - float2 UV = In.vTexcoord * 0.5f + 0.5f; - float2 ScaledUV = UV; - - if (UV.x < Left) + float2 Finaluv = In.vTexcoord; + + if (CurrentPixelPosition.x < CurrentLeft) { - ScaledUV.x = UV.x; + Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; } - else if (UV.x > Right) + else if (CurrentPixelPosition.x > CurrentRight) { - ScaledUV.x = 1.0f - ((1.0f - UV.x) / ratio.x); + float dist = CurrentPixelPosition.x - CurrentRight; + Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; } else { - ScaledUV.x = Left + (UV.x - Left) / ratio.x; + float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); + Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); } - if (UV.y < Top) + if (CurrentPixelPosition.y < CurrentTop) { - ScaledUV.y = UV.y; + Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; } - else if (UV.y > Bottom) + else if (CurrentPixelPosition.y > CurrentBottom) { - ScaledUV.y = 1.0f - ((1.0f - UV.y) / ratio.y); + float dist = CurrentPixelPosition.y - CurrentBottom; + Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; } else { - ScaledUV.y = Top + (UV.y - Top) / ratio.y; + float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); + Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); } - float4 color = g_Texture.Sample(ClampSampler, ScaledUV); + float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); + float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); - color.a *= Alpha; - Out.vColor = color; + tex1.a *= 0.5f; + + if (tex1.a >= 0.f) + Color = tex1; + + Color = lerp(Color, tex2, tex2.a); + + Color.a *= Alpha; + Out.vColor = Color; return Out; } @@ -343,82 +371,21 @@ PS_OUT PS_Rotation(PS_IN In) Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); Rotation += center; - if (g_iSpellType == 0) - { - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - - tex1.rgb *= 0.4f; - color = tex1; - tex2.rgb *= 0.3f; - - if (tex2.a >= 0.9f) - color = tex2; - - color.a *= Alpha; - - Out.vColor = color; - return Out; - } - //int iTotalFrame = g_iImageCountX * g_iImageCountY; - //int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame; - //int iFrameX = iCurrentFrame % g_iImageCountX; - //int iFrameY = iCurrentFrame / g_iImageCountX; - //float fFreamWidth = 1.0 / g_iImageCountX; - //float fFreamHeight = 1.0 / g_iImageCountY; - - //float2 UV = In.vTexcoord; - //UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; - //UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; - - //float4 tex3 = g_Texture2.Sample(DefaultSampler, UV); - //if (tex3.r <= 0.5f) - // discard; - float3 BGColor = float3(1.f, 1.f, 1.f); - - switch (g_iSpellType) - { - case 1: - BGColor = float3(208.f, 179.f, 54.f) / 255.f; - break; - case 2: - BGColor = float3(89.f, 32.f, 215.f) / 255.f; - break; - case 3: - BGColor = float3(190.f, 46., 34.f) / 255.f; - break; - case 4: - BGColor = float3(37.f, 129.f, 162.f) / 255.f; - break; - case 5: - BGColor = float3(134.f, 171.f, 78.f) / 255.f; - break; - case 6: - BGColor = float3(0.f, 80.f, 55.f) / 255.f; - break; - case 7: - BGColor = float3(0.f, 0.f, 0.f); - break; - } - float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); - tex1.rgb *= BGColor; float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); - if (tex2.a >= 0.9f) - tex1 = tex2; + + tex1.rgb *= 0.4f; color = tex1; - //color = tex3; - - float CoolTime = 1.f - g_fDeltaV; - if (In.vTexcoord.y <= CoolTime) - { - color.a = 0.f; - } - - + tex2.rgb *= 0.3f; + + if (tex2.a >= 0.9f) + color = tex2; + color.a *= Alpha; + Out.vColor = color; return Out; + } PS_OUT PS_Slot(PS_IN In) @@ -446,21 +413,265 @@ PS_OUT PS_Slot(PS_IN In) PS_OUT PS_SpellAnim(PS_IN In) { PS_OUT Out; - //float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - //float2 center = float2(0.5f, 0.5f); - //float2 uv = In.vTexcoord - center; - //uv *= sqrt(2.0f); - //float2 Rotation = In.vTexcoord; - //Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); - //Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); - //Rotation += center; + float4 color = float4(1.f, 1.f, 1.f, 1.f); + + float3 BGColor = float3(1.f, 1.f, 1.f); - //float4 color = g_Texture.Sample(ClampSampler, Rotation); + switch (g_iSpellType) + { + case 0: + BGColor = float3(208.f, 179.f, 54.f) / 255.f; + break; + case 1: + BGColor = float3(89.f, 32.f, 215.f) / 255.f; + break; + case 2: + BGColor = float3(190.f, 46., 34.f) / 255.f; + break; + case 3: + BGColor = float3(37.f, 129.f, 162.f) / 255.f; + break; + case 4: + BGColor = float3(134.f, 171.f, 78.f) / 255.f; + break; + case 5: + BGColor = float3(0.f, 80.f, 55.f) / 255.f; + break; + case 6: + BGColor = float3(0.f, 0.f, 0.f); + break; + } - //color.a *= Alpha; + float2 uv = In.vTexcoord; + float CoolTime = 1.f - g_fDeltaV; + float CoolTime2 = 1.f - g_fDeltaV + 0.05; + + float4 tex1 = g_Texture.Sample(ClampSampler, uv); + tex1.rgb *= BGColor; + float4 tex2 = g_Texture1.Sample(DefaultSampler, uv); + + if (tex2.a >= 0.9f) + tex1 = tex2; + + color = tex1; + + float wave1 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; + float wave2 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; + + float waveThreshold1 = CoolTime + wave1; + float waveThreshold2 = CoolTime2 + wave2; - //Out.vColor = color; + if (g_fDeltaV <= 1.f) + { + if (uv.y >= waveThreshold1 && uv.y <= waveThreshold2) + { + color.rgb = float3(1.f, 1.f, 1.f); + } + } + + if (uv.y <= CoolTime) + { + color.a = 0.f; + } + + color.a *= Alpha; + + Out.vColor = color; + return Out; +} + +PS_OUT PS_HpBar(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 uv = In.vTexcoord; + float2 CurrentPixelPosition = uv * g_fCurrent_Size; + float OriginLeft = g_fNine_Slice.x; + float OriginRight = g_fNine_Slice.y; + float OriginTop = g_fNine_Slice.z; + float OriginBottom = g_fNine_Slice.w; + + float CurrentLeft = OriginLeft; + float CurrentRight = g_fCurrent_Size.x - (g_fOrigin_Size.x - OriginRight); + float CurrentTop = OriginTop; + float CurrentBottom = g_fCurrent_Size.y - (g_fOrigin_Size.y - OriginBottom); + + float2 Finaluv = In.vTexcoord; + + if (CurrentPixelPosition.x < CurrentLeft) + { + Finaluv.x = CurrentPixelPosition.x / g_fOrigin_Size.x; + } + else if (CurrentPixelPosition.x > CurrentRight) + { + float dist = CurrentPixelPosition.x - CurrentRight; + Finaluv.x = (OriginRight + dist) / g_fOrigin_Size.x; + } + else + { + float scale = (CurrentPixelPosition.x - CurrentLeft) / (CurrentRight - CurrentLeft); + Finaluv.x = (OriginLeft / g_fOrigin_Size.x) + scale * ((OriginRight - OriginLeft) / g_fOrigin_Size.x); + } + + if (CurrentPixelPosition.y < CurrentTop) + { + Finaluv.y = CurrentPixelPosition.y / g_fOrigin_Size.y; + } + else if (CurrentPixelPosition.y > CurrentBottom) + { + float dist = CurrentPixelPosition.y - CurrentBottom; + Finaluv.y = (OriginBottom + dist) / g_fOrigin_Size.y; + } + else + { + float scale = (CurrentPixelPosition.y - CurrentTop) / (CurrentBottom - CurrentTop); + Finaluv.y = (OriginTop / g_fOrigin_Size.y) + scale * ((OriginBottom - OriginTop) / g_fOrigin_Size.y); + } + + float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); + Color = tex1; + float2 reversuv = In.vTexcoord; + + reversuv.x = 1.0f - Finaluv; + + float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); + + if (reversuv.x >= g_fHp) + { + tex2.rgb = float3(0.f, 0.f, 0.f); + } + + float3 Green = float3(112.f, 241.f, 31.f) / 255.f; + Green *= 1.2f; + tex2.rgb *= Green; + + if (all(Color.rgb >= float3(70.f / 255.f, 70.f / 255.f, 70.f / 255.f))) + Color = tex2; + + Color.a *= Alpha; + Out.vColor = Color; + return Out; +} + +PS_OUT PS_Magic_Meter(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float3 Blue = float3(41.f, 165.f, 255.f) / 255.f; + + float4 color = float4(1.f, 1.f, 1.f, 1.f); + float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord); + float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord); + + float2 reverseuv = 1.f - In.vTexcoord; + + color = tex1; + tex2.rgb *= Blue * 1.5f; + + if (reverseuv.x >= g_fHp) + { + tex2.rgb = float3(0.f, 0.f, 0.f); + } + + if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f))) + color = tex2; + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + + +PS_OUT PS_Magic_Icon(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + + float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; + float2 center = float2(0.5, 0.5); + float scale = 1.2; + + uv = (uv - center) * scale + center; + float4 tex2 = g_Texture1.Sample(ClampSampler, uv); + + Color = tex1; + + Color = tex1 * (1 - tex2.a) + tex2; + + + Color.a *= Alpha; + Out.vColor = Color; + + return Out; +} + +PS_OUT PS_RemapUV(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + + + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + + float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + float4 tex1 = g_Texture.Sample(DefaultSampler, atlasUV); + + Color = tex1; + + Color.a *= Alpha; + Out.vColor = Color; + + return Out; +} + +PS_OUT PS_Revelio(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 Color = float4(1.f, 1.f, 1.f, 1.f); + float2 UV = In.vTexcoord; + + float2 Position[4]; + float2 startUV[4]; + float2 endUV[4]; + + float2 Atlases[4]; + + for (int i = 0; i < 4; ++i) + { + Position[i] = g_fPosition[i]; + startUV[i] = g_fImagesUV[i].xy; + endUV[i] = g_fImagesUV[i].zw; + + Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]); + } + + float4 tex1 = g_Texture.Sample(DefaultSampler, UV); + float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]); + float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]); + float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]); + float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]); + + + + //float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + Color.a *= Alpha; + Out.vColor = Color; return Out; } @@ -596,4 +807,53 @@ technique11 PosTexTechnique11 GeometryShader = NULL; PixelShader = compile ps_5_0 PS_SpellAnim(); } + pass HpBar + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_HpBar(); + } + pass Magic_Meter + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Magic_Meter(); + } + + pass Magic_Icon + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Magic_Icon(); + } + + pass RemapUV + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_RemapUV(); + } + + pass Revelio + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Revelio(); + } + } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl new file mode 100644 index 000000000..d6b238656 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl @@ -0,0 +1,161 @@ +#include "Engine_Shader_Defines.hlsli" + +matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; + +Texture2D g_Texture; +Texture2D g_Texture1; + +float g_fAlpha; +float g_fOwnerAlpha; +float g_fCanvasAlpha; +float g_fAngle; +float g_fFar; + +struct VS_IN +{ + float3 vPosition : POSITION; + float2 vTexcoord : TEXCOORD0; + + float2 vSize : TEXCOORD1; + float2 vPos : TEXCOORD2; + float2 vUVStart : TEXCOORD3; + float2 vUVEnd: TEXCOORD4; +}; + +struct VS_OUT +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; +}; + +VS_OUT VS_MAIN(VS_IN In) +{ + VS_OUT Out; + + matrix matVP = mul(g_ViewMatrix, g_ProjMatrix); + float3 vLocalPos = In.vPosition; + vLocalPos.xy *= In.vSize; + vLocalPos.xy += In.vPos; + float2 StartUV = In.vUVStart; + float2 EndUV = In.vUVEnd; + float3 vParentPos = float3(g_WorldMatrix._41, g_WorldMatrix._42, g_WorldMatrix._43); + + float3 vFinalWorldPos = vLocalPos + vParentPos; + + Out.vPosition = mul(float4(vFinalWorldPos, 1.f), matVP); + Out.vTexcoord = StartUV + In.vTexcoord * (EndUV - StartUV); + + return Out; +} + +struct PS_IN +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; +}; + +struct PS_OUT +{ + float4 vColor : SV_TARGET0; +}; + +PS_OUT PS_MAIN(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float4 color = g_Texture.Sample(ClampSampler, Rotation); + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + +PS_OUT PS_Alpha_Blend(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + + float4 color = g_Texture.Sample(ClampSampler, In.vTexcoord); + + if(color.a <= 0.4f) + discard; + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + +PS_OUT PS_Megic_Meter(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float3 Blue = float3(41.f, 165.f, 255.f) / 255.f; + + float4 color = float4(1.f, 1.f, 1.f, 1.f); + float4 tex1 = g_Texture.Sample(ClampSampler, In.vTexcoord); + float4 tex2 = g_Texture1.Sample(ClampSampler, In.vTexcoord); + + color = tex1; + tex2.rgb *= Blue * 1.5f; + + if (all(color.rgb >= float3(65.f / 255.f, 65.f / 255.f, 65.f / 255.f))) + color = tex2; + + //if(color.a <= 0.4f) + // discard; + + color.a *= Alpha; + + Out.vColor = color; + + return Out; +} + +technique11 PosTexTechnique11 +{ + pass Default + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN(); + } + + pass AlphaBlend + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Alpha_Blend(); + } + + pass Megic_Meter + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_Megic_Meter(); + } +} diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl index bbb47719c..5b21faa0f 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl @@ -1,5 +1,5 @@ -#include "Engine_Shader_Defines.hlsli" +#include "Engine_Shader_Defines.hlsli" matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; @@ -18,6 +18,8 @@ Texture2D g_DiffuseTexture; Texture2D g_NormalTexture; Texture2D g_DAOTexture; Texture2D g_THVTexture; +Texture2D g_SurfaceParamsTexture; + float3 g_RootColor; float3 g_TipColor; @@ -25,6 +27,7 @@ float3 g_DyeColor; float g_DyeOpacity; float g_HairRoughness; +float g_fUsingSurfaceParams; matrix g_BoneMatrices[512]; @@ -103,10 +106,10 @@ VS_OUT_CAPTUREDMODEL VS_CAPTUREDMODEL(VS_IN In) float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - matrix BoneMatrix = - mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x ) + - mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y ) + - mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z ) + + matrix BoneMatrix = + mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + + mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + + mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); @@ -156,10 +159,10 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In) float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z); - matrix BoneMatrix = g_BoneMatrices[In.vBlendIndex.x] * In.vBlendWeight.x + - g_BoneMatrices[In.vBlendIndex.y] * In.vBlendWeight.y + - g_BoneMatrices[In.vBlendIndex.z] * In.vBlendWeight.z + - g_BoneMatrices[In.vBlendIndex.w] * fWeightW; + matrix BoneMatrix = mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) + + mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) + + mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) + + mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW); /* ?ㅽ궎??*/ vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix); @@ -188,9 +191,11 @@ struct PS_IN struct PS_OUT { - float4 vDiffuse : SV_TARGET0; + float4 vAlbedo : SV_TARGET0; float4 vNormal : SV_TARGET1; float4 vDepth : SV_TARGET2; + float4 vColor : SV_Target3; + float4 vSurface : SV_Target4; }; PS_OUT PS_MAIN(PS_IN In) @@ -198,15 +203,16 @@ PS_OUT PS_MAIN(PS_IN In) PS_OUT Out; vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.4f) + vector vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord); + if (vMtrlDiffuse.a < 0.2f) { discard; } - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); if (true == g_bRimLight) { @@ -214,11 +220,14 @@ PS_OUT PS_MAIN(PS_IN In) vMtrlDiffuse.xyz = (vMtrlDiffuse.xyz * (1 - fRimLight)) + g_vRimColor * fRimLight; } - - Out.vDiffuse = vMtrlDiffuse; + Out.vAlbedo = vMtrlDiffuse; Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); - + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + g_fUsingSurfaceParams, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = vSurface; return Out; } @@ -313,7 +322,7 @@ PS_OUT PS_HAIR(PS_IN In) baseColor = lerp(baseColor, g_vRimColor.rgb, fRim); } - Out.vDiffuse = float4(baseColor, alpha); + Out.vAlbedo = float4(baseColor, alpha); Out.vNormal = float4(normal * 0.5f + 0.5f, 0.f); Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); @@ -342,7 +351,7 @@ PS_OUT PS_EYELASH(PS_IN In) } - Out.vDiffuse = float4(vMtrlDiffuse.rgb, vMtrlDiffuse.g); + Out.vAlbedo = float4(vMtrlDiffuse.rgb, vMtrlDiffuse.g); Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl index 37ae44db6..1c0cd858a 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl @@ -5,6 +5,7 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; bool g_bUVTargetDiffuse; bool g_bAdditiveDisolve; + float g_LifeRatio; float g_fFar; float g_fTime; @@ -14,6 +15,7 @@ uint g_iIndexU; uint g_iIndexV; float g_fDisolveRatio; +float g_fUsingSurfaceParams; float2 g_vClipBoxSize; float2 g_vClipBoxLTPos; @@ -24,6 +26,7 @@ Texture2D g_ClippingTexture; Texture2D g_DisolveTexture; Texture2D g_NormalTexture; Texture2D g_GlowTexture; +Texture2D g_SurfaceParamsTexture; struct VS_IN { @@ -155,32 +158,37 @@ struct PS_IN struct PS_OUT { - float4 vDiffuse : SV_TARGET0; + float4 vAlbedo : SV_TARGET0; float4 vNormal : SV_TARGET1; float4 vDepth : SV_TARGET2; - + float4 vColor : SV_Target3; + float4 vSurface : SV_Target4; }; PS_OUT PS_MAIN(PS_IN In) { PS_OUT Out; vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - if (vMtrlDiffuse.a < 0.2f) - { - discard; - } + vector vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord); + if (vMtrlDiffuse.a < 0.2f) { discard; } - vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord); + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal); - float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); - Out.vDiffuse = vMtrlDiffuse; + Out.vAlbedo = vMtrlDiffuse; Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + g_fUsingSurfaceParams, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = vSurface; return Out; } + PS_OUT PS_MAIN_SELECT(PS_IN In) { PS_OUT Out; @@ -196,7 +204,7 @@ PS_OUT PS_MAIN_SELECT(PS_IN In) float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - Out.vDiffuse = vMtrlDiffuse * float4(0.f, 1.f, 1.f, 0.3f); + Out.vAlbedo = vMtrlDiffuse * float4(0.f, 1.f, 1.f, 0.3f); Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); return Out; @@ -213,7 +221,7 @@ PS_OUT PS_GLASS(PS_IN In) float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix); - Out.vDiffuse = lerp(vMtrlDiffuse, float4(1.f, 1.f, 1.f, 1.f), 0.5f); + Out.vAlbedo = lerp(vMtrlDiffuse, float4(1.f, 1.f, 1.f, 1.f), 0.5f); float4(vMtrlDiffuse.xyz, 1.f); Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f); @@ -356,7 +364,7 @@ technique11 MeshTechnique11 { pass MeshPass // 0 { - SetRasterizerState(RS_Nocull); + SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_MAIN(); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index 61c092ba3..95be0d4d2 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -1,4 +1,5 @@ #include "Engine_Shader_Defines.hlsli" +#include "Engine_Shader_Functions.hlsli" struct ParticleValue { @@ -17,6 +18,18 @@ struct ParticleValue float2 vAniTime; float2 vAniIndex; + float fGravity; + + float3 vSinAmount; + float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; + float2 vDelay; }; @@ -54,6 +67,7 @@ int g_iNoiseMoveLerpOption; float2 g_vDiffuseDistortionUVGainAmount; float2 g_vMaskDistortionUVGainAmount; + int g_iMaskDistortionMoveLerpOption; int g_iDiffuseDistortionMoveLerpOption; // @@ -68,7 +82,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; @@ -83,48 +106,19 @@ bool g_isNoiseUVMove; bool g_isReverseDissolve; +bool g_isEmissiveDissolve; +bool g_isEmissiveDissolveReverse; + +bool g_isMaskClampSample; + +bool g_isNoiseColor; +bool g_isNoiseAlpha; +bool g_isNomalDissolve; + + float g_fFar; -float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) -{ - if (iSelectOption < 0) - return float2(0 , 0); - - float fRatio = _fRatio; - switch (iSelectOption) - { - case 0: - fRatio = fRatio; // Linear - break; - case 1: - fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 - break; - case 2: - fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 - break; - case 3: - fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 - break; - case 4: - fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 - break; - case 5: - fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 - break; - case 6: - fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로 - break; - case 7: - fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수 - break; - case 8: - fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적 - break; - } - - return fAmount * fRatio; -} struct VS_IN { @@ -158,11 +152,11 @@ VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID) { VS_OUT Out = (VS_OUT) 0; - row_major matrix matW, matWV, matWVP; + matrix matW, matWV, matWVP; row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); - matW = mul(g_WorldMatrix, TransformMatrix); + matW = mul(TransformMatrix, g_WorldMatrix); matWV = mul(matW, g_ViewMatrix); matWVP = mul(matWV, g_ProjMatrix); @@ -183,6 +177,36 @@ VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID) return Out; } +VS_OUT VS_NOWORLD(VS_IN In, uint iGPUIndex : SV_InstanceID) +{ + VS_OUT Out = (VS_OUT) 0; + + matrix matW, matWV, matWVP; + + row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); + + matW = TransformMatrix; + matWV = mul(matW, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + + Out.vPosition = vPosition; + Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), matW)); + Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), matW)).xyz; + Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), matW)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vLifeTime = In.vLifeTime; + Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW); + Out.iGPUIndex = iGPUIndex; + Out.vProjPos = vPosition; + + return Out; +} + + struct PS_IN { float4 vPosition : SV_POSITION; @@ -229,6 +253,7 @@ PS_OUT BlendedWeight(vector fDiffuse, float fLinearZ) float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f); + Out.vDiffuse = vector(vColor.rgb * fAlpha, fAlpha) * fWeight; @@ -276,17 +301,23 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) vector vMtrlDissolve; vector vMtrlDistortion; - float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; + float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime; + float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay; + + if (vDelay.x < vDelay.y) + { + discard; + } if (g_isDiffuse == true) { float2 UV; // 이미지의 UV값 - UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x)); + UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex)); if (g_isDiffuseUVMove) { @@ -319,6 +350,298 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) + if (g_vColor.a > 0) + vMtrlDiffuse = saturate(g_vColor + vMtrlDiffuse); + + } + else + { + vMtrlDiffuse = g_vColor; + } + + + /* 노이즈 */ + + if(g_isNoise) + { + float2 vNoiseUV = In.vTexcoord; + + if (g_isNoiseUVMove == true) + vNoiseUV = In.vTexcoord + SelectLerpUV(g_vNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iNoiseMoveLerpOption); + + vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); + + if (g_isNoiseAlpha) + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r); + + if (g_isNoiseColor) + vMtrlDiffuse.rgb *= vMtrlNoise.rgb; + + } + + /* 마스크 */ + if (g_isMasking == true) + { + float2 vMaskTexcoord = In.vTexcoord; + + vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex)); + + // 마스크 디스토션 + if (g_isDistortion == true) + { + + float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity; + } + + if (g_isMaskUVMove) + { + if (vMaskingTime.y > 0) + vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); + } + + if (g_isMaskClampSample == true) + vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord); + else + vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord); + + + float fSoftMask; + + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask); + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); + + } + else + { + vMtrlMask.r = 1.f; + } + + + vMtrlDiffuse.a *= g_fDiffuseAlpha; + + if (vMtrlDiffuse.a <= FLT_EPSILON5) + discard; + + if (g_isDissolve == true) + { + if (g_isNomalDissolve) + { + vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y); + } + else + { + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); + + if (g_isReverseDissolve == true) + { + if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) + discard; + } + else + { + if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) + discard; + } + } + } + + + + int2 iTexel = int2(In.vPosition.xy); + + float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r; + + float fbias = 0.000005f; + + if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias) + discard; + + 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 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); + } + else + { + vEmissiveMtrl = g_vEmissive; + } + + float fEmissiveStrength = g_fEmissiveStrength; + + if (g_isEmissiveDissolve == true) + { + fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y); + + if (fEmissiveStrength <= 0.05f) + fEmissiveStrength = 0; + + } + + if (g_isEmissiveDissolveReverse == true) + { + fEmissiveStrength *= (In.vLifeTime.x / In.vLifeTime.y); + + } + + Out.vColorTarget = vEmissiveMtrl * fEmissive * fEmissiveStrength; // 이미시브 스트랭스 + + return Out; +} + +struct VS_BLUR_OUT +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; + float2 vLifeTime : TEXCOORD1; + uint iGPUIndex : TEXCOORD2; + float4 vProjPos : TEXCOORD3; +}; + +VS_BLUR_OUT VS_BLUR(VS_IN In, uint iGPUIndex : SV_InstanceID) +{ + VS_BLUR_OUT Out = (VS_BLUR_OUT) 0; + + row_major matrix matW, matWV, matWVP; + + row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); + + matW = mul(TransformMatrix, g_WorldMatrix); + matWV = mul(matW, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + + Out.vPosition = vPosition; + Out.vTexcoord = In.vTexcoord; + Out.vLifeTime = In.vLifeTime; + Out.iGPUIndex = iGPUIndex; + Out.vProjPos = vPosition; + + return Out; +} + +VS_BLUR_OUT VS_BLUR_NOWORLD(VS_IN In, uint iGPUIndex : SV_InstanceID) +{ + VS_BLUR_OUT Out = (VS_BLUR_OUT) 0; + + row_major matrix matW, matWV, matWVP; + + row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); + + matW = TransformMatrix; + matWV = mul(matW, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + + Out.vPosition = vPosition; + Out.vTexcoord = In.vTexcoord; + Out.vLifeTime = In.vLifeTime; + Out.iGPUIndex = iGPUIndex; + Out.vProjPos = vPosition; + + return Out; +} + +struct PS_BLUR_IN +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; + float2 vLifeTime : TEXCOORD1; + uint iGPUIndex : TEXCOORD2; + float4 vProjPos : TEXCOORD3; +}; + +struct PS_BLUR_OUT +{ + float4 vDiffuse : SV_TARGET0; + float4 vBlurWeight : SV_TARGET1; +}; + + +PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In) +{ + + PS_BLUR_OUT Out; + vector vMtrlDiffuse; + vector vMtrlMask; + vector vMtrlNoise; + vector vMtrlDissolve; + vector vMtrlDistortion; + + float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; + float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; + float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; + float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; + float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime; + float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay; + + if (vDelay.x < vDelay.y) + { + discard; + } + + if (g_isDiffuse == true) + { + float2 UV; // 이미지의 UV값 + + UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex)); + + if (g_isDiffuseUVMove) + { + UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption); + } + + /* 디퓨즈 디스토션 */ + if (g_isDistortion == true) + { + + float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iDiffuseDistortionMoveLerpOption); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion); + + //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. + vMtrlDistortion.rg -= 0.5f; + + //아마 분할되었다면 noise도 분할해야할듯 + vMtrlDistortion.rg /= g_vUVCutting; + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + + UV = UV + (vMtrlDistortion).rg * g_fNoiseDistortionIntensity; + + } + + + /* 최종 색깔 */ + vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV); + + + if (g_vColor.a > 0) vMtrlDiffuse += g_vColor; @@ -331,23 +654,28 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) /* 노이즈 */ - if(g_isNoise) + if (g_isNoise) { + float2 vNoiseUV = In.vTexcoord; - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord); + if (g_isNoiseUVMove == true) + vNoiseUV = In.vTexcoord + SelectLerpUV(g_vNoiseUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iNoiseMoveLerpOption); - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r); + vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV); - vMtrlDiffuse *= vMtrlNoise; + if (g_isNoiseAlpha) + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r); + if (g_isNoiseColor) + vMtrlDiffuse *= vMtrlNoise; } + /* 마스크 */ if (g_isMasking == true) { float2 vMaskTexcoord = In.vTexcoord; - vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex.x)); + vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex)); // 마스크 디스토션 if (g_isDistortion == true) @@ -359,10 +687,8 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 - vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity; + vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity; - - } if (g_isMaskUVMove) @@ -371,53 +697,57 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); } - vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord); - + if (g_isMaskClampSample == true) + vMtrlMask = g_MaskingTexture.Sample(ClampSampler, vMaskTexcoord); + else + vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord); + + + float fSoftMask; + + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask); + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); + } else { vMtrlMask.r = 1.f; } - - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); - - + if (vMtrlDiffuse.a <= 0.f) discard; + vMtrlDiffuse.a *= g_fDiffuseAlpha; + if (g_isDissolve == true) { - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - if(g_isReverseDissolve == true) + if (g_isNomalDissolve) { - if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) - discard; + vMtrlDiffuse.a *= (0.95f - In.vLifeTime.x / In.vLifeTime.y); } else { - if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) - discard; + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); + + if (g_isReverseDissolve == true) + { + if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) + discard; + } + else + { + if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) + discard; + } } - - - } - vMtrlDiffuse.a *= g_fDiffuseAlpha; - // 색깔 추가할 처리 (이미시브) - - float4 vEmissiveMtrl = vector(0.f ,0.f ,0.f ,0.f); - - if (g_isEmissive == true) - { - vEmissiveMtrl = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord); - } - + // 색깔 추가할 처리 (이미시브) int2 iTexel = int2(In.vPosition.xy); @@ -427,216 +757,53 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In) if (fDepthStencilValue <= In.vProjPos.z / In.vProjPos.w + fbias) discard; + - Out = BlendedWeight(vMtrlDiffuse, In.vProjPos.w); - - if (vMtrlDiffuse.a / g_fDiffuseAlpha > g_fEmissiveCutAlpha) - { - float3 vEmissiveColor= g_vEmissive.rgb * g_vEmissive.a + vEmissiveMtrl.rgb * (1 - g_vEmissive.a); - Out.vColorTarget = vector(vEmissiveColor, vMtrlDiffuse.a); - } - - else - Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f); - - return Out; -} - -struct VS_BLUR_OUT -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - uint iGPUIndex : TEXCOORD2; -}; - -VS_BLUR_OUT VS_BLUR(VS_IN In, uint iGPUIndex : SV_InstanceID) -{ - VS_BLUR_OUT Out = (VS_BLUR_OUT) 0; - - row_major matrix matW, matWV, matWVP; - - row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); - - matW = mul(g_WorldMatrix, TransformMatrix); - matWV = mul(matW, g_ViewMatrix); - matWVP = mul(matWV, g_ProjMatrix); - - vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); - - Out.vPosition = vPosition; - Out.vTexcoord = In.vTexcoord; - Out.vLifeTime = In.vLifeTime; - Out.iGPUIndex = iGPUIndex; - - - return Out; -} - -struct PS_BLUR_IN -{ - float4 vPosition : SV_POSITION; - float2 vTexcoord : TEXCOORD0; - float2 vLifeTime : TEXCOORD1; - uint iGPUIndex : TEXCOORD2; - -}; - -struct PS_BLUR_OUT -{ - float4 vDiffuse : SV_TARGET0; - float4 vBlurWeight : SV_TARGET1; -}; - - -PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In) -{ - - PS_BLUR_OUT Out; - - - vector vMtrlDiffuse; - vector vMtrlMask; - vector vMtrlNoise; - vector vMtrlDissolve; - vector vMtrlDistortion; - - float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x; - float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime; - float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime; - float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime; - float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime; - - if (g_isDiffuse == true) - { - float2 UV; // 이미지의 UV값 - - UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x)); - - if (g_isDiffuseUVMove) - { - UV += SelectLerpUV((g_vDiffuseUVGainAmount / g_vUVCutting), (vDiffuseTime.x / vDiffuseTime.y), g_iDiffuseMoveLerpOption); - } - - /* 디퓨즈 디스토션 */ - if (g_isDistortion == true) - { - - float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iDiffuseDistortionMoveLerpOption); - - vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion); - - //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. - vMtrlDistortion.rg -= 0.5f; - - ////아마 분할되었다면 noise도 분할해야할듯 - //vMtrlDistortion.rg /= g_vUVCutting; - - //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 - - UV = UV + (vMtrlDistortion).rg * g_fNoiseDistortionIntensity; - } - - /* 최종 색깔 */ - vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV); - - - if (g_vColor.a > 0) - vMtrlDiffuse += g_vColor; - - } - else - { - vMtrlDiffuse = g_vColor; - } - - - /* 노이즈 */ - - if (g_isNoise) - { - vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord); - - vMtrlDiffuse *= vMtrlNoise; - - } - - if (g_isMasking == true) - { - float2 vMaskTexcoord = In.vTexcoord; - - vMaskTexcoord = UV_Cutting(In.vTexcoord, g_vUVMaskCutting, int(fAnimIndex.x)); - - // 마스크 디스토션 - if (g_isDistortion == true) - { - float2 UV; // 이미지의 UV값 - - float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vDistortionUVMoveTime.x / vDistortionUVMoveTime.y), g_iMaskDistortionMoveLerpOption); - - vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); - - //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 - vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity; - - - } - - if (g_isMaskUVMove) - { - if (vMaskingTime.y > 0) - vMaskTexcoord += SelectLerpUV(g_vMaskingUVGainAmount / g_vUVMaskCutting, (vMaskingTime.x / vMaskingTime.y), g_iMaskMoveLerpOption); - } - - vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord); - - } - else - { - vMtrlMask.r = 1.f; - } - - - - vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r); - - - - if (vMtrlDiffuse.a <= 0.f) - discard; - - if (g_isDissolve == true) - { - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - - if(g_isReverseDissolve == true) - { - if (vMtrlDissolve.r >= (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - else - { - if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y)) - discard; - } - - } - - vMtrlDiffuse.a *= g_fDiffuseAlpha; - - // 색깔 추가할 처리 (이미시브) - 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); } - + else + { + vEmissiveMtrl = g_vEmissive; + } - Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity; - Out.vBlurWeight.r = g_iBlurWeight / 32.f; + float fEmissiveStrength = g_fEmissiveStrength; + + if (g_isEmissiveDissolve == true) + { + fEmissiveStrength *= (1.f - In.vLifeTime.x / In.vLifeTime.y); + + if (fEmissiveStrength <= 0) + fEmissiveStrength = 0; + + } + + if (g_isEmissiveDissolveReverse == true) + { + fEmissiveStrength *= (In.vLifeTime.x / In.vLifeTime.y); + + } + + + Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity + vEmissiveMtrl.rgb, vMtrlDiffuse.a); /** vector(vEmissiveColor * fSmoothAlpha, vMtrlDiffuse.a);*/ + Out.vBlurWeight = g_iBlurWeight / 128.f; return Out; } @@ -667,14 +834,42 @@ technique11 DefaultTechnique pass Blur { SetRasterizerState(RS_Nocull); - SetDepthStencilState(DSS_Effect, 0); + SetDepthStencilState(DSS_None, 0); SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); VertexShader = compile vs_5_0 VS_BLUR(); GeometryShader = NULL; PixelShader = compile ps_5_0 PS_BLUR(); } + pass WEIGHTBLEND + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_WB_Acc, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); + } + pass NO_WORLD + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_NOWORLD(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_NON_NORMALMAP(); + } + + pass BLUR_NO_WORLD + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_BLUR_NOWORLD(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_BLUR(); + } } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl index 8e8ba0f5d..bcdd26cb6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxNorTex.hlsl @@ -4,8 +4,15 @@ matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; float g_fFar; +float g_fUsingSurfaceParams; Texture2D g_DiffuseTexture; +Texture2D g_NormalTexture; +Texture2D g_SurfaceParamsTexture; +Texture2D g_DiffuseTextures[4]; +Texture2D g_NormalTextures[4]; +Texture2D g_SurfaceParamsTextures[4]; +Texture2D g_MaskTexture; struct VS_IN { @@ -51,24 +58,68 @@ struct PS_IN struct PS_OUT { - float4 vDiffuse : SV_TARGET0; - float4 vNormal : SV_TARGET1; - float4 vDepth : SV_TARGET2; + float4 vAlbedo : SV_TARGET0; + float4 vNormal : SV_TARGET1; + float4 vDepth : SV_TARGET2; + float4 vColor : SV_Target3; + float4 vSurface : SV_Target4; }; PS_OUT PS_MAIN(PS_IN In) { PS_OUT Out; + + float2 tileUV = In.vWorldPos.xz / 16.f; - vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord * 30.f); - if (vMtrlDiffuse.a < 0.4f) - { - discard; - } - Out.vDiffuse = vMtrlDiffuse; + vector vMask = g_MaskTexture.Sample(DefaultSampler, In.vTexcoord); + + vector vMtrlDiffuse_0 = g_DiffuseTextures[0].Sample(DefaultSampler, tileUV); + vector vMtrlDiffuse_1 = g_DiffuseTextures[1].Sample(DefaultSampler, tileUV); + vector vMtrlDiffuse_2 = g_DiffuseTextures[2].Sample(DefaultSampler, tileUV); + vector vMtrlDiffuse_3 = g_DiffuseTextures[3].Sample(DefaultSampler, tileUV); + + vector vMtrlDiffuse = float4(float3(vMtrlDiffuse_0.xyz * vMask.r + + vMtrlDiffuse_1.xyz * vMask.g + + vMtrlDiffuse_2.xyz * vMask.b + + vMtrlDiffuse_3.xyz * vMask.a), 1.f); + + vector vSurface_0 = g_SurfaceParamsTextures[0].Sample(DefaultSampler, tileUV); + vector vSurface_1 = g_SurfaceParamsTextures[1].Sample(DefaultSampler, tileUV); + vector vSurface_2 = g_SurfaceParamsTextures[2].Sample(DefaultSampler, tileUV); + vector vSurface_3 = g_SurfaceParamsTextures[3].Sample(DefaultSampler, tileUV); + + vector vSurface = (vSurface_0 * vMask.r + + vSurface_1 * vMask.g + + vSurface_2 * vMask.b + + vSurface_3 * vMask.a); + + float3 vNormalDecoded_0 = DecodeNormalFromRG(g_NormalTextures[0], DefaultSampler, tileUV); + float3 vNormalDecoded_1 = DecodeNormalFromRG(g_NormalTextures[1], DefaultSampler, tileUV); + float3 vNormalDecoded_2 = DecodeNormalFromRG(g_NormalTextures[2], DefaultSampler, tileUV); + float3 vNormalDecoded_3 = DecodeNormalFromRG(g_NormalTextures[3], DefaultSampler, tileUV); + + float3 vNormalDecoded = normalize(vNormalDecoded_0.xyz * vMask.r + + vNormalDecoded_1.xyz * vMask.g + + vNormalDecoded_1.xyz * vMask.b + + vNormalDecoded_1.xyz * vMask.a); + + float3 vBinormal = cross(In.vNormal.xyz, float3(1.f, 0.f, 0.f)); + + float3 vTangent = cross(vBinormal, In.vNormal.xyz); + + float3x3 WorldMatrix = float3x3(vTangent, vBinormal, In.vNormal.xyz); + + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + Out.vAlbedo = vMtrlDiffuse; + Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f); + Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1) + (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z + g_fUsingSurfaceParams, // 서페이스 파라미터 + 1.f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = vSurface; - Out.vNormal = float4(In.vNormal.xyz * 0.5f + 0.5f, 0.f); - Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.0f); return Out; } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl index 6b9fcb9b8..c0c7d18d8 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxPosTex.hlsl @@ -1,5 +1,6 @@ #include "Engine_Shader_Defines.hlsli" +#include "Engine_Shader_Functions.hlsli" matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; Texture2D g_DepthTexture; @@ -13,7 +14,44 @@ uint g_iIndexV; Texture2D g_Texture; Texture2D g_DiffuseTexture; Texture2D g_MaskingTexture; +Texture2D g_NoiseTexture; +Texture2D g_DistortionTexture; +/* 디퓨즈 */ +bool g_isDiffuse; +float g_fDiffuseAlpha; +float4 g_vColor; + +/* 마스크 */ +bool g_isMask; +float g_fSoftMaskEdge; +float g_fSoftMask; + +/* 노이즈 */ +bool g_isNoise; +bool g_isNoiseColor; +bool g_isNoiseAlpha; +float g_fNoiseStrength; + +/* 디스토션 */ + +bool g_isDistortion; +float2 g_vDistortionTime; +float2 g_vDiffuseDistortionUVGainAmount; +float2 g_vMaskDistortionUVGainAmount; +float g_fDistortionIntensity; // 디스토션 왜곡 세기 + +/* 이미시브 */ +float4 g_vEmissive; +float g_fEmissiveStrength; +float g_fSoftenExp; +float g_fSoftStrength; +float g_fCoreBoost; +float g_fRadius; + +/* 블러 */ +float g_fBlurIntensity; +float g_iBlurWeight; struct VS_IN { @@ -25,27 +63,55 @@ struct VS_OUT { float4 vPosition : SV_Position; float2 vTexcoord : TEXCOORD0; + float4 vProjPos : TEXCOORD1; }; VS_OUT VS_MAIN(VS_IN In) { VS_OUT Out; - + + matrix matWV, matWVP; matWV = mul(g_WorldMatrix, g_ViewMatrix); matWVP = mul(matWV, g_ProjMatrix); + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); Out.vTexcoord = In.vTexcoord; + Out.vProjPos = vPosition; return Out; } +VS_OUT VS_TRAIL(VS_IN In) +{ + VS_OUT Out; + + + matrix matWVP; + + matWVP = mul(g_ViewMatrix , g_ProjMatrix); //월드행렬 곱해져서 오기때문에 월드 곱하지 않음 + + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + + Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); + Out.vTexcoord = In.vTexcoord; + Out.vProjPos = vPosition; + + + return Out; + +} + struct PS_IN { float4 vPosition : SV_Position; float2 vTexcoord : TEXCOORD0; + float4 vProjPos : TEXCOORD1; }; struct PS_OUT @@ -72,17 +138,278 @@ PS_OUT PS_UVMove(PS_IN In) return Out; } -PS_OUT PS_Trail(PS_IN In) + + +struct PS_TRAILOUT { - PS_OUT Out; + float4 vDiffuse : SV_TARGET0; + float4 vRevealage : SV_TARGET1; + float4 vColorTarget : SV_TARGET2; +}; + +PS_TRAILOUT PS_Trail(PS_IN In) +{ + PS_TRAILOUT Out; - vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); - vector vMasking = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord); + vector vMtrlDiffuse; + vector vMtrlMask; + vector vMtrlNoise; + vector vMtrlDistortion; + + /* 디퓨즈 */ + + if (g_isDiffuse == true) + { + float2 vDiffuseTexcoord = In.vTexcoord; + + /* 디퓨즈 디스토션 */ + if (g_isDistortion == true) + { + float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion); + + //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. + vMtrlDistortion.rg -= 0.5f; + + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + + vDiffuseTexcoord = vDiffuseTexcoord + (vMtrlDistortion).rg * g_fDistortionIntensity; + + } + + vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vDiffuseTexcoord); + + + vMtrlDiffuse.a *= g_fDiffuseAlpha; + + if (g_vColor.a > 0) + vMtrlDiffuse += g_vColor; + } + else + vMtrlDiffuse = g_vColor; + + /* 노이즈 */ + + if (g_isNoise == true) + { + vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (g_isNoiseAlpha) + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r) * g_fNoiseStrength; + + if (g_isNoiseColor) + vMtrlDiffuse.rgb *= vMtrlNoise.rgb * g_fNoiseStrength; + + } + + + /* 마스크 */ + + if (g_isMask == true) + { + float2 vMaskTexcoord = In.vTexcoord; + + // 마스크 디스토션 + if (g_isDistortion == true) + { + float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fDistortionIntensity; + + vMaskTexcoord = saturate(vMaskTexcoord); + } + + vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord); + + float fSoftMask; + + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask); + else + fSoftMask = vMtrlMask.r; + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); + } + else + vMtrlMask.r = 1.f; + + + + + /* 디퓨즈 알파 컷*/ + if (vMtrlDiffuse.a <= FLT_EPSILON5) + discard; + + + + + + /* 웨이트 블랜드 */ + + float fWeight = clamp(pow(In.vProjPos.w, -2.5f), 1.0f, 1000.0f); + + Out.vDiffuse = vector(vMtrlDiffuse.rgb, vMtrlDiffuse.a) * fWeight; + Out.vRevealage.r = vMtrlDiffuse.a; + + + /* 이미시브 */ + + 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; + + vEmissiveMtrl = g_vEmissive; + + Out.vColorTarget = vEmissiveMtrl * fEmissive * g_fEmissiveStrength; // 이미시브 스트랭스 + + return Out; +} + +struct PS_BLUR_IN +{ + float4 vPosition : SV_Position; + float2 vTexcoord : TEXCOORD0; +}; + +struct PS_BLUR_OUT +{ + float4 vDiffuse : SV_TARGET0; + float4 vBlurWeight : SV_TARGET1; +}; + +PS_BLUR_OUT PS_TRAIL_BLUR(PS_BLUR_IN In) +{ + PS_BLUR_OUT Out; + + vector vMtrlDiffuse; + vector vMtrlMask; + vector vMtrlNoise; + vector vMtrlDistortion; + + /* 디퓨즈 */ + + if (g_isDiffuse == true) + { + float2 vDiffuseTexcoord = In.vTexcoord; + + /* 디퓨즈 디스토션 */ + if (g_isDistortion == true) + { + float2 vDistortion = In.vTexcoord + SelectLerpUV(g_vDiffuseDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortion); + + //0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다. + vMtrlDistortion.rg -= 0.5f; + + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + + vDiffuseTexcoord = vDiffuseTexcoord + (vMtrlDistortion).rg * g_fDistortionIntensity; + + } + + vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vDiffuseTexcoord); + + + vMtrlDiffuse.a *= g_fDiffuseAlpha; + + if (g_vColor.a > 0) + vMtrlDiffuse += g_vColor; + } + else + vMtrlDiffuse = g_vColor; + + /* 노이즈 */ + + if (g_isNoise == true) + { + vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (g_isNoiseAlpha) + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlNoise.r) * g_fNoiseStrength; + + if (g_isNoiseColor) + vMtrlDiffuse.rgb *= vMtrlNoise.rgb * g_fNoiseStrength; + + } + + + /* 마스크 */ + + if (g_isMask == true) + { + float2 vMaskTexcoord = In.vTexcoord; + + // 마스크 디스토션 + if (g_isDistortion == true) + { + float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (g_vDistortionTime.x / g_vDistortionTime.y), 0); + + vMtrlDistortion = g_DistortionTexture.Sample(DefaultSampler, vDistortionUV); + + //디스토션(노이즈) 텍스쳐로 uv를 왜곡함 + vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fDistortionIntensity; + + vMaskTexcoord = saturate(vMaskTexcoord); + } + + vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vMaskTexcoord); + + float fSoftMask; + + if (g_fSoftMask > FLT_EPSILON5) + fSoftMask = saturate((vMtrlMask.r - g_fSoftMaskEdge) * g_fSoftMask); + else + fSoftMask = vMtrlMask.r; + + vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * fSoftMask); + } + else + vMtrlMask.r = 1.f; + + + /* 디퓨즈 알파 컷*/ + if (vMtrlDiffuse.a <= FLT_EPSILON5) + discard; + + + ///* 이미시브 */ + + //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; + + //vEmissiveMtrl = g_vEmissive; + + Out.vDiffuse = vector(vMtrlDiffuse.rgb * g_fBlurIntensity, vMtrlDiffuse.a); // 이미시브 스트랭스 + Out.vBlurWeight = g_iBlurWeight / 128.f; - vDiffuse.a = vDiffuse.a * vMasking.r; - Out.vColor = vDiffuse; - Out.vColor.a *= In.vTexcoord.x; - clip(Out.vColor.a - 0.01f); return Out; } @@ -139,4 +466,14 @@ technique11 PosTexTechnique11 PixelShader = compile ps_5_0 PS_Trail(); } + pass TrailBlur + { + SetRasterizerState(RS_Nocull); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_TRAIL_BLUR(); + } + } diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl new file mode 100644 index 000000000..3ebb7c071 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl @@ -0,0 +1,124 @@ +#include "Engine_Shader_Defines.hlsli" + +matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; + +Texture2D g_DiffuseTexture; +Texture2D g_NormalTexture; +Texture2D g_SurfaceParamsTexture; + +float4 g_vCamPosition; +float g_fFar; +float g_fUsingSurfaceParams; + + +struct VS_IN +{ + float3 vPosition : POSITION; + float3 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + + float4 vRight : TEXCOORD1; + float4 vUp : TEXCOORD2; + float4 vLook : TEXCOORD3; + float4 vTranslation : TEXCOORD4; +}; + +struct VS_OUT +{ + float4 vPosition : SV_POSITION; + float4 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD2; + float4 vProjPos : TEXCOORD3; +}; + +VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID) +{ + VS_OUT Out = (VS_OUT) 0; + + matrix matW, matWV, matWVP; + + row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation); + + matW = TransformMatrix; + matWV = mul(matW, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + vector vPosition = mul(vector(In.vPosition, 1.f), matWVP); + + Out.vPosition = vPosition; + Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), matW)); + Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), matW)).xyz; + Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), matW)).xyz; + Out.vTexcoord = In.vTexcoord; + Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW); + Out.vProjPos = vPosition; + + return Out; +} + +struct PS_IN +{ + float4 vPosition : SV_POSITION; + float4 vNormal : NORMAL; + float3 vTangent : TANGENT; + float3 vBinormal : BINORMAL; + float2 vTexcoord : TEXCOORD0; + float4 vWorldPos : TEXCOORD2; + float4 vProjPos : TEXCOORD3; +}; + +struct PS_OUT +{ + float4 vAlbedo : SV_TARGET0; + float4 vNormal : SV_TARGET1; + float4 vDepth : SV_TARGET2; + float4 vColor : SV_Target3; + float4 vSurface : SV_Target4; +}; + +PS_OUT PS_MAIN(PS_IN In) +{ + PS_OUT Out; + + vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (vMtrlDiffuse.a < 0.1f) + discard; + + vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + + float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord); + float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal.xyz); + + float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix)); + + Out.vAlbedo = vMtrlDiffuse; + Out.vNormal = float4(vNormal.xyz * 0.5f + 0.5f, 0.f); + Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.f, 0.0f); + Out.vColor = float4(0.f, 0.f, 0.f, 1.f); + Out.vSurface = g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord); + + return Out; +} + +technique11 DefaultTechnique +{ + pass Model + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN(); + } +} + + + + diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/HpBarBG.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/HpBarBG.png new file mode 100644 index 000000000..217244033 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/HpBarBG.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png new file mode 100644 index 000000000..7840c331e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter0.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png new file mode 100644 index 000000000..57671ce0e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png new file mode 100644 index 000000000..2ef2d73c7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Megic_Meter2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png new file mode 100644 index 000000000..f69d616ef Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png new file mode 100644 index 000000000..6b67605db Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Revelio_SpellSelectionGridIcon1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png new file mode 100644 index 000000000..d895b687f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/Transparent.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_AncientMagicFinisher.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_AncientMagicFinisher.png new file mode 100644 index 000000000..99e1c8e34 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_AncientMagicFinisher.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png deleted file mode 100644 index 7b5a3b9f2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Left.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png deleted file mode 100644 index 32fc77c96..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Middle.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png deleted file mode 100644 index a48b5723f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_FinisherMeterOutline_Right.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png new file mode 100644 index 000000000..b63ee71ec Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HUD_HealthMeterFill.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_LeftEnd_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_LeftEnd_4K.png deleted file mode 100644 index 600b313df..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_LeftEnd_4K.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_Middle_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_Middle_4K.png deleted file mode 100644 index e6c2ab4f6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_Middle_4K.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_RightEnd_4K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_RightEnd_4K.png deleted file mode 100644 index f9ac9de3c..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_HealthMeter_RightEnd_4K.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellDiamond_Red.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellDiamond_Red.png deleted file mode 100644 index 4f7dffb00..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellDiamond_Red.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeBack_Yellow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeBack_Yellow.png deleted file mode 100644 index 9518d2203..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeBack_Yellow.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeDiamond_Forceful.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeDiamond_Forceful.png deleted file mode 100644 index 0a10588a0..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Action/UI_T_SpellTypeDiamond_Forceful.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png new file mode 100644 index 000000000..b844b0e29 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_AncientMagicStreak_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png new file mode 100644 index 000000000..5d08cb14b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Confringo_FlameTrail_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png new file mode 100644 index 000000000..9bfd20f3a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrailSingle_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png new file mode 100644 index 000000000..9845da1d3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png new file mode 100644 index 000000000..1a6a5ff60 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_LightningTrail_02b_E.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png new file mode 100644 index 000000000..7e6cba4ad Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail03_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png new file mode 100644 index 000000000..c8ad97cf5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Trails/VFX_T_Trail04_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png new file mode 100644 index 000000000..d42695069 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoFlyIcon.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png new file mode 100644 index 000000000..1c80a93ba Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/HUD/UI_T_NoMountIcon.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png new file mode 100644 index 000000000..0ee96f06f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Keyboard.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Number.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Number.png new file mode 100644 index 000000000..f59fd8019 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Atlas_Number.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png deleted file mode 100644 index 469c9c486..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_A.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png deleted file mode 100644 index 11cff9696..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_B.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png deleted file mode 100644 index e7ddca263..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_C.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png deleted file mode 100644 index cd4f5acb3..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_D.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png deleted file mode 100644 index a8ab21dfc..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_E.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png deleted file mode 100644 index 6dd64fe76..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_F.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png deleted file mode 100644 index 75207f7d6..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_G.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png deleted file mode 100644 index a49dfe78f..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_H.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png deleted file mode 100644 index b05b733e4..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_I.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png deleted file mode 100644 index f5da4556d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_J.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png deleted file mode 100644 index 3891e4c47..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_K.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png deleted file mode 100644 index 2fbb9b04d..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_L.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png deleted file mode 100644 index e889e6250..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_M.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png deleted file mode 100644 index dfc6db30c..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_N.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png deleted file mode 100644 index be98fca22..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_O.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png deleted file mode 100644 index eea392902..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_P.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png deleted file mode 100644 index 963813ba0..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Q.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png deleted file mode 100644 index 29b4c96e1..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_R.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png deleted file mode 100644 index 47a62daa4..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_S.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png deleted file mode 100644 index 6b34eb61b..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_T.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png deleted file mode 100644 index 4bc7ecf7a..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_U.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png deleted file mode 100644 index 1cbda7ed2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_V.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png deleted file mode 100644 index 450c1da14..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_W.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png deleted file mode 100644 index f453b99ef..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_X.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png deleted file mode 100644 index 7f2544579..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Y.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png deleted file mode 100644 index b0a8e4bb2..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Keyboard/Keyboard_Z.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png new file mode 100644 index 000000000..600f0f7dc Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png new file mode 100644 index 000000000..43fb0e20e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png new file mode 100644 index 000000000..338839f98 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon3.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png new file mode 100644 index 000000000..cddd2e7ce Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon4.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png new file mode 100644 index 000000000..5fa9f592b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Dungeon5.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png new file mode 100644 index 000000000..b02760373 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Generic1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png new file mode 100644 index 000000000..5a35bb55e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png new file mode 100644 index 000000000..e2577da72 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade3.png new file mode 100644 index 000000000..7d488c1f2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade3.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png new file mode 100644 index 000000000..6b517cb51 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade4.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png new file mode 100644 index 000000000..db4ffab63 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogsmeade5.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png new file mode 100644 index 000000000..9ff845e51 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png new file mode 100644 index 000000000..6904d09eb Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png new file mode 100644 index 000000000..a836c1325 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts3.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png new file mode 100644 index 000000000..a40e52a7a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts4.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts5.png new file mode 100644 index 000000000..98ef35dc1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Hogwarts5.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png new file mode 100644 index 000000000..f4a2aa4a5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png new file mode 100644 index 000000000..a52b20c2a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png new file mode 100644 index 000000000..d3bb27e91 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland3.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png new file mode 100644 index 000000000..1735958a6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland4.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png new file mode 100644 index 000000000..f94edf1b1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Overland5.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png new file mode 100644 index 000000000..37fad41d3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary1.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png new file mode 100644 index 000000000..18942ce0f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary2.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png new file mode 100644 index 000000000..f7af17cc5 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary3.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png new file mode 100644 index 000000000..387a9ba87 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary4.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png new file mode 100644 index 000000000..33fd6f430 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/LoadingScreen/UI_T_LoadingScreen_Sanctuary5.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/MissionBanner_Border.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/MissionBanner_Border.png index ac93bf6ff..91853f4f7 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/MissionBanner_Border.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/MissionBanner_Border.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_DuelDivider.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_DuelDivider.png new file mode 100644 index 000000000..c5d079031 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_DuelDivider.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_Icon_InteractType_Straight.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_Icon_InteractType_Straight.png new file mode 100644 index 000000000..e1576dc61 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_Icon_InteractType_Straight.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png deleted file mode 100644 index 3cc37dc13..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Mission/UI_T_NotificationGoldLeaf_Divider.png and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_AMFillPotion.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_AMFillPotion.png new file mode 100644 index 000000000..835903409 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_AMFillPotion.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_BeastBliss.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_BeastBliss.png new file mode 100644 index 000000000..28b07a644 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_BeastBliss.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Edurus.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Edurus.png new file mode 100644 index 000000000..a66c8633e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Edurus.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_EssenceOfDittany.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_EssenceOfDittany.png new file mode 100644 index 000000000..90347927c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_EssenceOfDittany.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_FelixFelicis.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_FelixFelicis.png new file mode 100644 index 000000000..15a3e3857 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_FelixFelicis.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Girding.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Girding.png new file mode 100644 index 000000000..946c872f1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Girding.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_HorklumpJuice.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_HorklumpJuice.png new file mode 100644 index 000000000..1486cf649 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_HorklumpJuice.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_InvisibilityPotion.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_InvisibilityPotion.png new file mode 100644 index 000000000..6a0dc9b84 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_InvisibilityPotion.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Maxima.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Maxima.png new file mode 100644 index 000000000..647db47b6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Maxima.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Sun_Syrup.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Sun_Syrup.png new file mode 100644 index 000000000..c8368887b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_Sun_Syrup.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_WoundCleaning.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_WoundCleaning.png new file mode 100644 index 000000000..c971988e3 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Potions/UI_T_WoundCleaning.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_C_Dun_Moss_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_C_Dun_Moss_D.png new file mode 100644 index 000000000..1ebff01b1 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_C_Dun_Moss_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_LandscapeStreamingProxy_0_LOD1_Summer_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_LandscapeStreamingProxy_0_LOD1_Summer_D.png new file mode 100644 index 000000000..f30a54d4a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/T_LandscapeStreamingProxy_0_LOD1_Summer_D.png differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/TombProtector b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_0.dds similarity index 65% rename from Jusin154_Team3D/Client/Bin/Resources/SaveFile/TombProtector rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_0.dds index 6662964a2..c645b3637 100644 Binary files a/Jusin154_Team3D/Client/Bin/Resources/SaveFile/TombProtector and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_0.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_1.dds new file mode 100644 index 000000000..88834c5e7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_1.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_2.dds new file mode 100644 index 000000000..643bbff77 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_2.dds differ diff --git a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_3.dds similarity index 65% rename from Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector rename to Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_3.dds index 6662964a2..36017b3e1 100644 Binary files a/Jusin154_Team3D/Client/Bin/Resources/Models/TombProtector/TombProtector and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_D_3.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_0.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_0.dds new file mode 100644 index 000000000..a8a0ca4df Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_0.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_1.dds new file mode 100644 index 000000000..568c2ac58 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_1.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_2.dds new file mode 100644 index 000000000..125314b46 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_2.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_3.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_3.dds new file mode 100644 index 000000000..5a76d93a7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_MRO_3.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_0.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_0.dds new file mode 100644 index 000000000..61fbdcc36 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_0.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_1.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_1.dds new file mode 100644 index 000000000..43e598aa9 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_1.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_2.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_2.dds new file mode 100644 index 000000000..91751a6cf Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_2.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_3.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_3.dds new file mode 100644 index 000000000..e862b711c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Terrain/Terrain_N_3.dds differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png b/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png new file mode 100644 index 000000000..463670994 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/VFX/CurveAtlas/VFX_CA_CurveAtlasMaterialAnims.png differ 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/Default/.bin b/Jusin154_Team3D/Editor/Default/.bin deleted file mode 100644 index 052ff3eb0..000000000 Binary files a/Jusin154_Team3D/Editor/Default/.bin and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 5ed316e18..e1249ce7c 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -29,7 +29,7 @@ Application true - v145 + v143 Unicode @@ -164,15 +164,26 @@ + + + + + + + + + + + true true @@ -181,10 +192,14 @@ true true + true true + + true + false @@ -193,9 +208,16 @@ + + + + + + + - + false @@ -204,8 +226,8 @@ - + @@ -221,26 +243,25 @@ false false + - + + + + - - - - - - - + + @@ -272,6 +293,7 @@ + @@ -279,15 +301,26 @@ + + + + + + + + + + + true true @@ -296,10 +329,14 @@ true true + true true + + true + false @@ -308,9 +345,17 @@ + + + + + + + + - + false @@ -319,8 +364,8 @@ - + @@ -336,26 +381,26 @@ false false + - + + + + + - - - - - - - + + @@ -388,6 +433,7 @@ Create + @@ -402,6 +448,7 @@ Effect 5.0 + Effect 5.0 @@ -438,6 +485,7 @@ Effect 5.0 + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index c149e7351..254146203 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -16,9 +16,6 @@ {79dcc46a-5ae9-48bb-962b-8984b15e4f5a} - - {fc210c4d-b8a6-4ed4-b19c-4bd175232e5f} - {47a1f529-dd0e-4f37-9ada-5aa6731dea0b} @@ -43,9 +40,6 @@ {fb090860-8f24-4f71-9daf-7fd971a8f5c2} - - {0eeb6d5c-db23-4147-b981-8346c879a1eb} - {085e6bcb-1fe4-4857-bfc6-ed6fc0218358} @@ -226,12 +220,6 @@ {9c21aba5-00c1-4b4c-8a82-dac7a156fd9b} - - {d5681f71-af29-4418-bf3a-a1486c6ba171} - - - {904a7ae5-33fe-49a1-9f31-27443acc9e1a} - {680910fd-aee2-4f69-b644-12b36b0f635b} @@ -271,47 +259,131 @@ {83781d7f-b84d-45a3-8361-b6bed2722b74} - - {0b8cac41-419f-48ce-87bc-805b8962b4df} + + {19c5f600-e566-4903-ab74-448904dcbc99} + + + {04d044a9-3cab-4425-9adf-8eea436e71d4} {26e2dcaa-d94a-4c3d-ba39-2916f2a27bac} - - {dac78c4e-b898-45dc-8740-794899de0c69} + + {f5cd19e8-186b-418f-b7fa-af73046a80d1} - - {1cac1aa6-ea12-429e-8a84-ca2bf44c2be4} + + {a193f87a-e222-4dd8-9766-cb32bb368ccb} - - {43bc0f97-0b7d-406b-900c-0fae023023ec} + + {8882358e-c8eb-4222-a87e-01d902533b8f} + + + {a9862861-6eaa-4e04-b7f6-217a32db7db4} + + + {80f4e763-20bb-47c1-b1de-ac11bc28bad8} + + + {d35cf4c8-1838-4cf3-80ff-69ef27435792} + + + {1b1b3388-cfea-4d6a-b93d-aa174317f573} + + + {7b7439b1-f2e5-4233-bf26-4db2b41307b7} + + + {0db597d8-c4e7-479a-9b7e-9014b79a5e03} + + + {7e8b7123-11fb-4946-99fe-3265932d0536} + + + {072a4e85-ba07-4ffd-bdb1-ddac02558242} + + + {4982a8ed-d04a-4d4d-804f-3f45ca1d9dd2} + + + {1c11a2a1-ad0a-4f0b-8a86-5ab9fc68a69f} + + + {92110a48-81d0-4e98-be06-05dd078d0488} + + + {c81350c7-0edb-4e51-babf-09bf627414f1} {a56502cb-b0b8-4ea7-bc5e-5482b416fef9} - - {5f6e884b-3ab2-4354-b378-44e8221a4720} + + {8a70232d-f917-4ff6-b617-302e325996ae} - - {0aa8e406-d786-4e40-b825-54d5e3f691e2} + + {dac78c4e-b898-45dc-8740-794899de0c69} - - {eb7d24ee-d60e-4062-b974-264409436d81} + + {d5681f71-af29-4418-bf3a-a1486c6ba171} - + + {029a22c4-ab06-4db0-9527-4e3cfa1a2e0d} + + {b017e167-f48d-4417-a924-765ab802cff5} - - {3614836d-9988-4ec0-95a8-f8ebc25a9a13} + + {904a7ae5-33fe-49a1-9f31-27443acc9e1a} - - {98f012a4-2f13-456f-85ba-6929b1535de6} + + {0b8cac41-419f-48ce-87bc-805b8962b4df} - - {3ad2f4c4-95e6-47fa-9f4c-b9fcdbd77277} + + {7e8b7123-11fb-4946-99fe-3265932d0536} - - {a9862861-6eaa-4e04-b7f6-217a32db7db4} + + {54eef1b7-a5ee-444f-9577-44ffc8c3d8bc} + + + {a94e6a94-cc46-4c16-8518-5032bfdbd235} + + + {b4e1da25-c952-4ff4-92fd-7f1501d8c005} + + + {7683f642-58f7-4a79-a78c-b29540bdab10} + + + {b6ec3441-6b18-45d1-80ba-03aa6df7f9e2} + + + {ee7ebf3c-8798-41cb-a261-31ca5041909c} + + + {94ad00fa-52a1-4d53-b44e-5bb849a25201} + + + {0d5c1798-4922-498e-afed-d1778c8e77b9} + + + {b899b53a-c8cf-451a-ab5d-6945cac88276} + + + {1962eafc-d147-494f-8d09-d96b78014958} + + + {1c4860c7-bc8a-4bed-b545-ed3ef0b02748} + + + {27dd1f59-44a7-4ecf-ad44-d72b2b4f9d34} + + + {4967d007-a0d8-4d57-b259-7bb47b5cf9ea} + + + {d3738a31-9700-478a-9c93-3d35ae9012b5} + + + {93ae1d33-fb58-4793-9e7e-5b8d27e163d1} @@ -348,9 +420,6 @@ 01.Level\01.Logo - - 02.GameObjects\Dummys\DebugCamera - 02.GameObjects\Dummys\DummyRect @@ -507,9 +576,6 @@ 02.GameObjects\Dummys\DummySkyBox - - 03.Information - 02.GameObjects\MainLight @@ -526,19 +592,13 @@ 02.GameObjects\Dummys\DummyPhysX\PhysXWall - 80.State\State_Combat\State_Dodge + 80.State\Focus\State_Dodge - 80.State\State_Idle - - - 80.State\State_Move\State_Walk - - - 80.State\State_Move\State_Sprint + 80.State\Movement\State_Idle - 80.State\State_Jump + 80.State\Focus\State_Jump 02.GameObjects\Player @@ -582,39 +642,114 @@ 02.GameObjects\Dummys\DummyPhysX\00.Callback\Behavior\Playable - - 80.State\State_Combat\State_Skill + + 01.Level\65.BloomViewer - - 80.State\State_Combat\State_LightAttack + + 02.GameObjects\Dummys\DummyGlobe - 80.State\State_Land + 80.State\Focus\State_Land 02.GameObjects\Monster\Goblin - - 80.State\State_Combat\State_Cast - - 80.State\State_Move + 80.State\Movement\State_Move 80.State\State_Combat - - 80.State\State_Combat\State_Skill2 + + 02.GameObjects\Layer_Effect\Effect\03.TrailObject - - 80.State\State_Idle\State_Idle_Turn + + 02.GameObjects\Layer_Effect\Effect\04.Effect_Container - - 80.State\State_Move\State_Jog + + 02.GameObjects\Layer_Effect\Effect\05.NomalJap 02.GameObjects\Broom + + 02.GameObjects\Dummys\DummyPhysX\PhysXHitBox + + + 02.GameObjects\Dummys\DummyPhysX\00.Callback\HitReport\HitBox + + + 02.GameObjects\Dummys\DummyPhysX\00.Callback\Behavior\HitBox + + + 02.GameObjects\Dummys\DummyPhysX\PhysXEffectHitBox + + + 50.UI\GamePlay_Canvas\Action_Panel\Slot_Number + + + 50.UI\GamePlay_Canvas\Action_Panel\HpBarBG + + + 02.GameObjects\Camera\Camera_Gaze + + + 02.GameObjects\Camera\CameraPosition + + + 02.GameObjects\Wand + + + 02.GameObjects\Layer_Effect\Effect\06.Bombard + + + 80.State + + + 02.GameObjects\Wand + + + 02.GameObjects\Env\05.AlphaMap + + + 02.GameObjects\Layer_Effect\Effect\07.Decendo + + + 02.GameObjects\Camera\Debug + + + 02.GameObjects\Camera\CameraPosition\Arm + + + 02.GameObjects\Camera\CameraPosition\Socket + + + 02.GameObjects\Camera\CameraPosition\Player\Shoulder + + + 02.GameObjects\Camera\CameraPosition\Player\Target + + + 50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot_Preview + + + 50.UI\GamePlay_Canvas\Action_Panel\Potion + + + 50.UI\GamePlay_Canvas\Action_Panel\Magic_Meter + + + 02.GameObjects\Env\06.InstancedProp + + + 50.UI\GamePlay_Canvas\Action_Panel\Magic_Icon + + + 50.UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon + + + 50.UI\GamePlay_Canvas\Action_Panel\Spell_UI + @@ -637,9 +772,6 @@ 01.Level\01.Logo - - 02.GameObjects\Dummys\DebugCamera - 99.Define\DEFAULT @@ -805,9 +937,6 @@ 02.GameObjects\Dummys\DummySkyBox - - 03.Information - 02.GameObjects\MainLight @@ -833,22 +962,13 @@ 02.GameObjects\Dummys\DummyPhysX\PhysXDoorSet\PhysXDoorFrame - 80.State\State_Combat\State_Dodge + 80.State\Focus\State_Dodge - 80.State\State_Idle - - - 80.State\State_Move\State_Walk - - - 80.State\State_Move\State_Sprint + 80.State\Movement\State_Idle - 80.State\State_Jump - - - 02.GameObjects\Player + 80.State\Focus\State_Jump 02.GameObjects\Env\04.Land @@ -880,39 +1000,120 @@ 02.GameObjects\Dummys\DummyPhysX\00.Callback\Behavior\Playable - - 80.State\State_Combat\State_Skill + + 01.Level\65.BloomViewer - - 80.State\State_Combat\State_LightAttack + + 02.GameObjects\Dummys\DummyGlobe - 80.State\State_Land + 80.State\Focus\State_Land 02.GameObjects\Monster\Goblin - - 80.State\State_Combat\State_Cast - - 80.State\State_Move + 80.State\Movement\State_Move 80.State\State_Combat - - 80.State\State_Combat\State_Skill2 + + 02.GameObjects\Layer_Effect\Effect\03.TrailObject - - 80.State\State_Idle\State_Idle_Turn + + 02.GameObjects\Layer_Effect\Effect\04.Effect_Container - - 80.State\State_Move\State_Jog + + 02.GameObjects\Layer_Effect\Effect\05.NomalJap 02.GameObjects\Broom + + 02.GameObjects\Dummys\DummyPhysX\PhysXHitBox + + + 02.GameObjects\Dummys\DummyPhysX\00.Callback\HitReport\HitBox + + + 02.GameObjects\Dummys\DummyPhysX\00.Callback\Behavior\HitBox + + + 02.GameObjects\Dummys\DummyPhysX\PhysXEffectHitBox + + + 50.UI\GamePlay_Canvas\Action_Panel\Slot_Number + + + 50.UI\GamePlay_Canvas\Action_Panel\HpBarBG + + + 02.GameObjects\Camera\Camera_Gaze + + + 02.GameObjects\Camera\CameraPosition + + + 02.GameObjects\Wand + + + 80.State + + + 02.GameObjects\Player + + + 02.GameObjects\Layer_Effect\Effect\06.Bombard + + + 02.GameObjects\Env\05.AlphaMap + + + 02.GameObjects\Layer_Effect\Effect\07.Decendo + + + 50.UI\GamePlay_Canvas\Action_Panel\Spell_Slot_Preview + + + 50.UI\GamePlay_Canvas\Action_Panel\Potion + + + 50.UI\GamePlay_Canvas\Action_Panel\Magic_Meter + + + 02.GameObjects\Camera\Debug + + + 02.GameObjects\Camera\CameraPosition\Arm + + + 02.GameObjects\Camera\CameraPosition\Socket + + + 02.GameObjects\Camera\CameraPosition\Player\Shoulder + + + 02.GameObjects\Camera\CameraPosition\Player\Target + + + 02.GameObjects\Player + + + 02.GameObjects\Env\06.InstancedProp + + + 50.UI\GamePlay_Canvas\Action_Panel\Magic_Icon + + + 50.UI\GamePlay_Canvas\MiniMap_Panel\NoMountIcon + + + 50.UI\GamePlay_Canvas\Action_Panel\Spell_UI + + + 02.GameObjects\Monster\Goblin + @@ -941,5 +1142,11 @@ 99.Define\SHADER + + 99.Define\SHADER + + + 99.Define\SHADER + \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp index c58f2101c..c6a2b9ce9 100644 --- a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp @@ -4,6 +4,11 @@ #include "Spell_Slot.h" #include "Spell_Image.h" #include "Spell_Overlay.h" +#include "Slot_Number.h" +#include "HpBarBG.h" +#include "Magic_Meter.h" +#include "Magic_Icon.h" +#include "Spell_UI.h" CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CPanelObject(pDevice, pContext) @@ -24,10 +29,11 @@ HRESULT CAction_Panel::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = 1515.f; + Desc.fX = 1150.f; Desc.fY = 850.f; - Desc.fSizeX = 700.f; - Desc.fSizeY = 400.f; + Desc.fSizeX = 1650.f; + Desc.fSizeY = 450.f; + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; if (FAILED(__super::Initialize(&Desc))) @@ -43,7 +49,14 @@ HRESULT CAction_Panel::Initialize(void* pArg) return E_FAIL; } - m_bVisible = true; + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 3.f; + m_fOwnerAlpha = 1.f; + m_fCanvasAlpha = 1.f; + Magic_Meter_UV(); + Magic_Meter_Visible(1, true); + Magic_Meter_Visible(5, true); return S_OK; } @@ -63,6 +76,8 @@ void CAction_Panel::Update(_float fTimeDelta) return; } + Matic_Meter_Move(); + __super::Update(fTimeDelta); } @@ -74,6 +89,7 @@ void CAction_Panel::Late_Update(_float fTimeDelta) } if (m_bVisible) { + //m_pGameInstance->Add_RenderGroup(RENDER::UI, this); } __super::Late_Update(fTimeDelta); @@ -85,7 +101,7 @@ HRESULT CAction_Panel::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) { return E_FAIL; } if (FAILED(m_pVIBufferCom->Bind_Resources())) { @@ -103,6 +119,77 @@ _vector CAction_Panel::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +void CAction_Panel::Magic_Meter_Visible(_uint iIndex, _bool bVisible) +{ + switch (iIndex) + { + case 1: + static_cast(m_pMagic_Meter1)->Visible(bVisible); + break; + case 2: + static_cast(m_pMagic_Meter2)->Visible(bVisible); + break; + case 3: + static_cast(m_pMagic_Meter3)->Visible(bVisible); + break; + case 4: + static_cast(m_pMagic_Meter4)->Visible(bVisible); + break; + case 5: + static_cast(m_pMagic_Meter5)->Visible(bVisible); + break; + + default: + return; + } + if (bVisible) + m_iMagic_Meter_Count++; + else + m_iMagic_Meter_Count--; +} + +void CAction_Panel::Magic_Meter_UV() +{ + static_cast(m_pMagic_Meter1)->Meter_Index(2); + static_cast(m_pMagic_Meter2)->Meter_Index(1); + static_cast(m_pMagic_Meter3)->Meter_Index(1); + static_cast(m_pMagic_Meter4)->Meter_Index(1); + static_cast(m_pMagic_Meter5)->Meter_Index(0); + + for (_uint i = 0; i < 5; ++i) + { + m_vMagic_MeterUV[i].x = 570.f - (55.f * i); + m_vMagic_MeterUV[i].y = 145.f; + } +} + +void CAction_Panel::Matic_Meter_Move() +{ + + static_cast(m_pMagic_Meter1)->Move(m_vMagic_MeterUV[0].x, m_vMagic_MeterUV[0].y); + static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y); + + if (static_cast(m_pMagic_Meter2)->Get_Active() == true) + { + static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y); + static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y); + } + if (static_cast(m_pMagic_Meter3)->Get_Active() == true) + { + static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y); + static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y); + static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y); + } + if (static_cast(m_pMagic_Meter4)->Get_Active() == true) + { + static_cast(m_pMagic_Meter2)->Move(m_vMagic_MeterUV[1].x, m_vMagic_MeterUV[1].y); + static_cast(m_pMagic_Meter3)->Move(m_vMagic_MeterUV[2].x, m_vMagic_MeterUV[2].y); + static_cast(m_pMagic_Meter4)->Move(m_vMagic_MeterUV[3].x, m_vMagic_MeterUV[3].y); + static_cast(m_pMagic_Meter5)->Move(m_vMagic_MeterUV[4].x, m_vMagic_MeterUV[4].y); + } + +} + HRESULT CAction_Panel::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) @@ -125,7 +212,18 @@ HRESULT CAction_Panel::Bind_ShaderResources() { return E_FAIL; } - + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } return S_OK; } @@ -159,13 +257,58 @@ HRESULT CAction_Panel::Ready_Element(void* pArg) { return E_FAIL; } - Add_Element(TEXT("SpellImage"), m_pSpell_Image); + Add_Element(TEXT("Spell_Image"), m_pSpell_Image); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay)))) { return E_FAIL; } - Add_Element(TEXT("SpellOverlay"), m_pSpell_Overlay); + Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number)))) + { + return E_FAIL; + } + Add_Element(TEXT("Slot_Number"), m_pSlot_Number); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG)))) + { + return E_FAIL; + } + Add_Element(TEXT("HpBarBG"), m_pHpBarBG); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter1)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter1"), m_pMagic_Meter1); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter2)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter2"), m_pMagic_Meter2); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter3)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter3"), m_pMagic_Meter3); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter4)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter4"), m_pMagic_Meter4); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter5)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter5"), m_pMagic_Meter5); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Icon)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Icon"), m_pMagic_Icon); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_UI)))) + { + return E_FAIL; + } + Add_Element(TEXT("Spell_UI"), m_pSpell_UI); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Action_Panel.cpp.bak b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp.bak new file mode 100644 index 000000000..c91f89041 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Action_Panel.cpp.bak @@ -0,0 +1,193 @@ +#include "pch.h" +#include "Action_Panel.h" +#include "GameInstance.h" +#include "Spell_Slot.h" +#include "Spell_Image.h" +#include "Spell_Overlay.h" +#include "Slot_Number.h" +#include "HpBarBG.h" +#include "Magic_Meter.h + +CAction_Panel::CAction_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CPanelObject(pDevice, pContext) +{ +} + +CAction_Panel::CAction_Panel(const CAction_Panel& rhs) + :CPanelObject(rhs) +{ +} + +HRESULT CAction_Panel::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CAction_Panel::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 1515.f; + Desc.fY = 850.f; + Desc.fSizeX = 700.f; + Desc.fSizeY = 400.f; + + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + if (FAILED(Ready_Element(pArg))) + { + return E_FAIL; + } + + m_bVisible = true; + return S_OK; +} + +void CAction_Panel::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CAction_Panel::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + __super::Update(fTimeDelta); +} + +void CAction_Panel::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bVisible) { + + } + __super::Late_Update(fTimeDelta); + +} + +HRESULT CAction_Panel::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CAction_Panel::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CAction_Panel::Bind_ShaderResources() +{ + return S_OK; +} + +HRESULT CAction_Panel::Ready_Components(void* pArg) +{ + return S_OK; +} + +HRESULT CAction_Panel::Ready_Element(void* pArg) +{ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pSpell_Slot)))) + { + return E_FAIL; + } + Add_Element(TEXT("Spell_Slot"), m_pSpell_Slot); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Image)))) + { + return E_FAIL; + } + Add_Element(TEXT("Spell_Image"), m_pSpell_Image); + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpell_Overlay)))) + { + return E_FAIL; + } + Add_Element(TEXT("Spell_Overlay"), m_pSpell_Overlay); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSlot_Number)))) + { + return E_FAIL; + } + Add_Element(TEXT("Slot_Number"), m_pSlot_Number); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pHpBarBG)))) + { + return E_FAIL; + } + Add_Element(TEXT("HpBarBG"), m_pHpBarBG); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMagic_Meter)))) + { + return E_FAIL; + } + Add_Element(TEXT("Magic_Meter"), m_pMagic_Meter); + return S_OK; +} + +CAction_Panel* CAction_Panel::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CAction_Panel* pInstance = new CAction_Panel(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CAction_Panel"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CAction_Panel::Clone(void* pArg, CGameObject* pOwner) +{ + CAction_Panel* pInstance = new CAction_Panel(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CAction_Panel"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CAction_Panel::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CAction_Panel::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp index 106d5aa02..25432d584 100644 --- a/Jusin154_Team3D/Editor/Private/Active_Icon.cpp +++ b/Jusin154_Team3D/Editor/Private/Active_Icon.cpp @@ -110,9 +110,7 @@ void CActive_Icon::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/AlphaMap.cpp b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp new file mode 100644 index 000000000..1d339b681 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/AlphaMap.cpp @@ -0,0 +1,194 @@ +#include "pch.h" +#include "AlphaMap.h" +#include "GameInstance.h" + +CAlphaMap::CAlphaMap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CBase{} + , m_pDevice{ pDevice } + , m_pContext{ pContext } + , m_pGameInstance{ Engine::CGameInstance::GetInstance() } +{ + SAFE_ADDREF(m_pDevice); + SAFE_ADDREF(m_pContext); + SAFE_ADDREF(m_pGameInstance); +} + +void CAlphaMap::Update(_float3& vPosition, _uint iColorIndex, _float fValue, _uint iRange) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + return; + + _uint iPixelIndex = {}; + + _uint iStartX = (_uint)(vPosition.x / 0.25f) - (iRange / 2); + _uint iStartZ = (_uint)(vPosition.z / 0.25f) - (iRange / 2); + + for (_uint j = 0; j < iRange; ++j) + { + for (_uint i = 0; i < iRange; ++i) + { + _uint iCurrentX = iStartX + i; + _uint iCurrentZ = iStartZ + j; + + iPixelIndex = (iCurrentZ * m_iNumPixelW) + iCurrentX; + + if (m_iNumPixels <= iPixelIndex) + return; + + if (0 == iColorIndex) + { + m_pPixels[iPixelIndex].x += fValue; + } + else if (1 == iColorIndex) + { + m_pPixels[iPixelIndex].y += fValue; + } + else if (2 == iColorIndex) + { + m_pPixels[iPixelIndex].z += fValue; + } + else if (3 == iColorIndex) + { + m_pPixels[iPixelIndex].w += fValue; + } + else + return; + + _float fWeight = m_pPixels[iPixelIndex].x + m_pPixels[iPixelIndex].y + m_pPixels[iPixelIndex].z + m_pPixels[iPixelIndex].w; + + m_pPixels[iPixelIndex] = _float4(m_pPixels[iPixelIndex].x / fWeight, m_pPixels[iPixelIndex].y / fWeight, m_pPixels[iPixelIndex].z / fWeight, m_pPixels[iPixelIndex].w / fWeight); + } + } + + memcpy(SubResource.pData, m_pPixels, sizeof(_float4) * m_iNumPixels); + + m_pContext->Unmap(m_pTexture2D, 0); + +} + +void CAlphaMap::Save_ToFile(const _char* pFilePath) +{ + string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath); + + ofstream out(strFilePath, ios::binary); + + if (false == out.is_open()) + { + MSG_BOX("Failed to Save Binanry File"); + return; + } + for (_uint i = 0; i < m_iNumPixels; ++i) + { + out.write(reinterpret_cast(&m_pPixels[i]), sizeof(_float4)); + } + + out.close(); + + MSG_BOX("Success to Save Binanry File"); +} + +void CAlphaMap::Load_ToFile(const _char* pFilePath) +{ + string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath); + + ifstream in(strFilePath, ios::binary); + + if (false == in.is_open()) + { + MSG_BOX("Failed to Load Model Binanry File"); + return; + } + + for (_uint i = 0; i < m_iNumPixels; ++i) + { + in.read(reinterpret_cast<_char*>(&m_pPixels[i]), sizeof(_float4)); + } + + + in.close(); + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + return; + + //MSG_BOX("Success to Load Binanry File"); + + memcpy(SubResource.pData, m_pPixels, sizeof(_float4) * m_iNumPixels); + + m_pContext->Unmap(m_pTexture2D, 0); +} + +HRESULT CAlphaMap::Initialize(_uint iSizeX, _uint iSizeY) +{ + D3D11_TEXTURE2D_DESC TextureDesc{}; + + TextureDesc.Width = iSizeX; + TextureDesc.Height = iSizeY; + TextureDesc.MipLevels = 1; + TextureDesc.ArraySize = 1; + TextureDesc.Format = DXGI_FORMAT_R32G32B32A32_FLOAT; + + TextureDesc.SampleDesc.Quality = 0; + TextureDesc.SampleDesc.Count = 1; + + + TextureDesc.Usage = D3D11_USAGE_DYNAMIC; + TextureDesc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + TextureDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + TextureDesc.MiscFlags = 0; + + if (FAILED(m_pDevice->CreateTexture2D(&TextureDesc, nullptr, &m_pTexture2D))) + return E_FAIL; + + if (FAILED(m_pDevice->CreateShaderResourceView(m_pTexture2D, nullptr, &m_pSRV))) + return E_FAIL; + + m_iNumPixels = iSizeX * iSizeY; + m_pPixels = new _float4[m_iNumPixels]; + ZeroMemory(m_pPixels, sizeof(_float4) * m_iNumPixels); + + for (_uint i = 0; i < m_iNumPixels; ++i) + { + m_pPixels[i].x = 1.f; + } + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + return E_FAIL; + + memcpy(SubResource.pData, m_pPixels, sizeof(_float4) * m_iNumPixels); + + m_pContext->Unmap(m_pTexture2D, 0); + + m_iNumPixelW = iSizeX; + m_iNumPixelH = iSizeY; + + return S_OK; +} + +CAlphaMap* CAlphaMap::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iSizeX, _uint iSizeY) +{ + CAlphaMap* pInstance = new CAlphaMap(pDevice, pContext); + + if (FAILED(pInstance->Initialize(iSizeX, iSizeY))) + { + MSG_BOX("Failed to Created : CAlphaMap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CAlphaMap::Free() +{ + __super::Free(); + + Safe_Delete_Array(m_pPixels); + + SAFE_RELEASE(m_pSRV); + SAFE_RELEASE(m_pTexture2D); + SAFE_RELEASE(m_pContext); + SAFE_RELEASE(m_pDevice); + SAFE_RELEASE(m_pGameInstance); +} diff --git a/Jusin154_Team3D/Editor/Private/Bombard.cpp b/Jusin154_Team3D/Editor/Private/Bombard.cpp new file mode 100644 index 000000000..2af609ee6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Bombard.cpp @@ -0,0 +1,202 @@ +#include "pch.h" +#include "Bombard.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Dummy_PhysXEffectHitBox.h" + + +CBombard::CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CBombard::CBombard(const CBombard& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CBombard::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CBombard::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Bombard/"))) + return E_FAIL; + + + m_wstrEffectName = L"Bombard"; + + CPartObject* pShootPt = Get_PartObject("Bombard_Shoot_Pt"); + m_pLight_Projectile = Get_PartObject("Bombard_Projectile"); + CPartObject* pCircle0 = Get_PartObject("Bombard_Circle0"); + + pShootPt->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pLight_Projectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + pCircle0->Set_Visible(true); + pShootPt->Set_Visible(true); + m_pLight_Projectile->Set_Visible(true); + + SAFE_ADDREF(m_pLight_Projectile); + m_fDuration = 2.5f; + + return S_OK; +} + +void CBombard::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CBombard::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + m_pLight_Projectile->Get_Component()->Translation(vOwnerLook * 2.f); +} + +void CBombard::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CBombard::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CBombard::Ready_Child() +{ + CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{}; + + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + _float3 vDir = {}; + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + XMStoreFloat3(&vDir, vOwnerLook * 2.f); + + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + Desc.iSubKind = 70; + Desc.vDeltaPos = vDir; + Desc.vLifeTime = { 0.f, 2.f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) { + assert(false); + return E_FAIL; + } + + return S_OK; +} + +CBombard* CBombard::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CBombard* pInstance = new CBombard(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CBombard"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CBombard::Clone(void* pArg, CGameObject* pOwner) +{ + CBombard* pInstance = new CBombard(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CBombard"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CBombard::OnCollision(CGameObject* pOther , void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos); + } + + + m_pLight_Projectile->Set_Visible(false); + Get_PartObject("Bombard_Shoot_Pt")->Set_Visible(false); + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + Get_PartObject("Bombard_Smoke")->Get_Component()->Translation(vOwnerLook); + + Get_PartObject("Bombard_Circle0")->Set_Visible(false); + + m_pPhysHitBox->Set_Dead(); +} + +void CBombard::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + + SAFE_RELEASE(m_pLight_Projectile); + +} + +void CBombard::Describe_Entity() +{ + +} + +HRESULT CBombard::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Broom.cpp b/Jusin154_Team3D/Editor/Private/Broom.cpp index 24541bd2b..76e8578f3 100644 --- a/Jusin154_Team3D/Editor/Private/Broom.cpp +++ b/Jusin154_Team3D/Editor/Private/Broom.cpp @@ -59,17 +59,9 @@ HRESULT CBroom::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp index 4387692d0..a42d36a04 100644 --- a/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp +++ b/Jusin154_Team3D/Editor/Private/BuildingContainer.cpp @@ -36,12 +36,15 @@ void CBuildingContainer::Update(_float fTimeDelta) void CBuildingContainer::Late_Update(_float fTimeDelta) { + +#ifdef _DEBUG if (m_bSelected) { m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); m_pTransformCom->Set_Scale(m_vScale); m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); } +#endif // _DEBUG __super::Late_Update(fTimeDelta); @@ -147,10 +150,8 @@ void CBuildingContainer::Describe_Entity() if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) { - CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); - if (nullptr != pTerrain) + if (m_pGameInstance->isPicking(&m_vPosition)) { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); } } diff --git a/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_Behavior.cpp b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_Behavior.cpp new file mode 100644 index 000000000..140eb3454 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_Behavior.cpp @@ -0,0 +1,97 @@ +#include "pch.h" +#include "CallBack_EffectHitBox_Behavior.h" +#include "GameInstance.h" + + +CCallBack_EffectHitBox_Behavior::CCallBack_EffectHitBox_Behavior() +{ +} + +CCallBack_EffectHitBox_Behavior::~CCallBack_EffectHitBox_Behavior() +{ +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) +{ + if (nullptr == actor.userData) { + return PSX::PxControllerBehaviorFlags(0); + } + PSX::PxControllerBehaviorFlags eResults = PSX::PxControllerBehaviorFlags(0); + PhsXUserData* pActorData = static_cast(actor.userData); + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case PHYSX_KIND::BODY_DYNAMIC: + switch (pActorData->iSubKind) + { + case 20: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE; + break; + case 21: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 22: + eResults = PSX::PxControllerBehaviorFlag::eCCT_SLIDE | PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 23: + eResults = PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + break; + case 24: + eResults = PSX::PxControllerBehaviorFlags(0); + break; + default: + break; + } + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + + return eResults; +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxController& controller) +{ + // CCT끼리 부딪힐 때를 굳이 안 쓰면 0 리턴 + return PSX::PxControllerBehaviorFlags(0); +} + +PSX::PxControllerBehaviorFlags CCallBack_EffectHitBox_Behavior::getBehaviorFlags(const PSX::PxObstacle& obstacle) +{ + // Obstacle이 움직이는 발판이다? + // 여기서 ride/slide 세팅 + //return PSX::PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT; + + return PSX::PxControllerBehaviorFlags(0); +} + +HRESULT CCallBack_EffectHitBox_Behavior::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_EffectHitBox_Behavior::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_EffectHitBox_Behavior* CCallBack_EffectHitBox_Behavior::Create() +{ + return new CCallBack_EffectHitBox_Behavior(); +} diff --git a/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp new file mode 100644 index 000000000..f4d5a5677 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CallBack_EffectHitBox_HitReport.cpp @@ -0,0 +1,148 @@ +#include "pch.h" +#include "CallBack_EffectHitBox_HitReport.h" +#include "GameInstance.h" +#include "GameObject.h" + +CCallBack_EffectHitBox_HitReport::CCallBack_EffectHitBox_HitReport() +{ +} + +CCallBack_EffectHitBox_HitReport::~CCallBack_EffectHitBox_HitReport() +{ +} + +void CCallBack_EffectHitBox_HitReport::onShapeHit(const PSX::PxControllerShapeHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxShape* pShape = hit.shape; + PSX::PxRigidActor* pActor = hit.actor; + + + ON_COLLISION_INFO CollisionDesc = {}; + + if (nullptr != pController && nullptr != pActor) { + PhsXUserData* pTargetActorData = static_cast(pActor->userData); + PhsXUserData* pOwnerActorData = static_cast(pController->getActor()->userData); + if (nullptr == pTargetActorData) { // missing user data + return; + } + + switch (pTargetActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + // action + break; + case PHYSX_KIND::BODY_DYNAMIC: + { + switch (pTargetActorData->iSubKind) + { + case 23: // 무거운데 올라갈 수 있는 벽 + + /* OnCollision 함수에 넘길 값 */ + + + CollisionDesc.vWorldPos = XMVectorSet( (_float)vWorldPos.x, (_float)vWorldPos.y, (_float)vWorldPos.z, 1.f); + memcpy(&CollisionDesc.vWorldNomal, &vWorldNormal, sizeof(_float3)); + memcpy(&CollisionDesc.vHitDir, &vDir, sizeof(_float3)); + CollisionDesc.fLength = fLength; + + pOwnerActorData->pOwner->Get_Owner()->OnCollision(pTargetActorData->pOwner , &CollisionDesc); + + break; + default: + { + PSX::PxRigidDynamic* pDynamic = static_cast(pActor); + pDynamic->addForce(vDir * fLength * 100000.f, PSX::PxForceMode::eIMPULSE); + } + break; + } + } break; + case PHYSX_KIND::CCTActor: + assert(false); + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_EffectHitBox_HitReport::onControllerHit(const PSX::PxControllersHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + PSX::PxController* pOtherController = hit.other; // 다른 컨트롤러 + + if (nullptr != pController && nullptr != pOtherController) { + PhsXUserData* pActorData = static_cast(pOtherController->getActor()->userData); + assert(nullptr != pActorData); // missing user data + + switch (pActorData->eKind) + { + case PHYSX_KIND::BODY_STATIC: + assert(false); + break; + case PHYSX_KIND::BODY_DYNAMIC: + assert(false); + break; + case PHYSX_KIND::CCTActor: + // Action + break; + case PHYSX_KIND::OBSTACLEActor: + break; + default: + break; + } + } +} + +void CCallBack_EffectHitBox_HitReport::onObstacleHit(const PSX::PxControllerObstacleHit& hit) +{ + PSX::PxController* pController = hit.controller; + PSX::PxExtendedVec3 vWorldPos = hit.worldPos; // 접촉지점 + PSX::PxVec3 vWorldNormal = hit.worldNormal; // 접촉노말 + PSX::PxVec3 vDir = hit.dir; // 시도한 move 방향 + _float fLength = hit.length; // 시도한 move 길이 + + const void* pOtherController = hit.userData; // 장애물 + + //switch (pOtherController.member) + //{ + //default: + // break; + //} +} + +HRESULT CCallBack_EffectHitBox_HitReport::Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject) +{ + m_pController = pController; + m_pPartDynamicBody = pPartDynamicObject; + m_pGameInstance = CGameInstance::GetInstance(); + SAFE_ADDREF(m_pController); + SAFE_ADDREF(m_pPartDynamicBody); + SAFE_ADDREF(m_pGameInstance); + return S_OK; +} + +HRESULT CCallBack_EffectHitBox_HitReport::Finalize() +{ + SAFE_RELEASE(m_pGameInstance); + SAFE_RELEASE(m_pPartDynamicBody); + SAFE_RELEASE(m_pController); + return S_OK; +} + +CCallBack_EffectHitBox_HitReport* CCallBack_EffectHitBox_HitReport::Create() +{ + return new CCallBack_EffectHitBox_HitReport(); +} diff --git a/Jusin154_Team3D/Editor/Private/CamPosition.cpp b/Jusin154_Team3D/Editor/Private/CamPosition.cpp new file mode 100644 index 000000000..7b2fce6ba --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CamPosition.cpp @@ -0,0 +1,49 @@ +#include "pch.h" + +#include "CamPosition.h" + + +CCamPosition::CCamPosition(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CPartObject(pDevice, pContext) +{ +} +CCamPosition::CCamPosition(const CCamPosition& rhs) + :CPartObject(rhs) +{ +} +HRESULT CCamPosition::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + return S_OK; +} +HRESULT CCamPosition::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + return S_OK; +} +void CCamPosition::Free() +{ + __super::Free(); +} + +HRESULT CCamPosition::Bind_ShaderResources() +{ + return E_NOTIMPL; +} + +CGameObject* CCamPosition::Clone(void* pArg, CGameObject* pOwner) +{ + return nullptr; +} + +void CCamPosition::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Arm.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Arm.cpp new file mode 100644 index 000000000..2f00ec9dc --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CamPosition_Arm.cpp @@ -0,0 +1,104 @@ +#include "pch.h" +#include "CamPosition_Arm.h" +#include "GameInstance.h" + +CCamPosition_Arm::CCamPosition_Arm(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Arm::CCamPosition_Arm(const CCamPosition_Arm& rhs) + : CCamPosition(rhs) +{ +} +HRESULT CCamPosition_Arm::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCamPosition_Arm::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + CameraArm_DESC* pDesc = static_cast(pArg); + m_fMouseSensor = pDesc->fMouseSensor; + m_fDistance = pDesc->fDistance; + + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) + XMVectorSetW(XMLoadFloat3(&pDesc->fEye), 0.f)); + m_pTransformCom->LookAt(XMVectorSetW(XMLoadFloat3(&pDesc->fAt), 1.f)); + + return S_OK; +} + +void CCamPosition_Arm::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->Set_State(STATE::LOOK, XMVector3Normalize(XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f))); + m_pTransformCom->Rotation(XMConvertToRadians(60.f), XMConvertToRadians(m_fAccDegreeY), 0.f); + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) - XMVector3Normalize(m_pTransformCom->Get_State(STATE::LOOK)) * m_fDistance); +} + +void CCamPosition_Arm::Update(_float fTimeDelta) +{ + +} + +void CCamPosition_Arm::Late_Update(_float fTimeDelta) +{ +} + +HRESULT CCamPosition_Arm::Render() +{ + return S_OK; +} + +HRESULT CCamPosition_Arm::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC DescTransfrom = {}; + DescTransfrom.fRadius = 30.f; + DescTransfrom.fRotationPerSec = 0.f; + DescTransfrom.fSpeedPerSec = 0.f; + if (FAILED(__super::Ready_Components(&DescTransfrom))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CCamPosition_Arm::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Arm* CCamPosition_Arm::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Arm* pInstance = new CCamPosition_Arm(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Arm"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Arm* CCamPosition_Arm::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Arm* pInstance = new CCamPosition_Arm(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Arm"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Arm::Free() +{ + __super::Free(); +} +void CCamPosition_Arm::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp new file mode 100644 index 000000000..4dd3224c1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CamPosition_Shoulder.cpp @@ -0,0 +1,226 @@ +#include "pch.h" +#include "CamPosition_Shoulder.h" +#include "CamPosition_Target.h" +#include "GameInstance.h" +#include "Camera_Gaze.h" + +CCamPosition_Shoulder::CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Shoulder::CCamPosition_Shoulder(const CCamPosition_Shoulder& rhs) + : CCamPosition(rhs) +{ +} +HRESULT CCamPosition_Shoulder::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition_Shoulder::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + if (FAILED(Ready_SubParts())) { + return E_FAIL; + } + + CAMERA_SHOULDER_DESC* pDesc = static_cast(pArg); + { + m_fMouseSensor = pDesc->fMouseSensor; + m_vShoulderPosRatio = pDesc->vInitialLook; + m_fShoulderDistance = pDesc->fShoulderDistance; + m_vAccDegreeXY = { 0.f, 0.f }; + m_fCameraFocalLength = pDesc->fCameraFocalLength; + m_fBackFrontRatio = pDesc->fBackFrontRatio; + + m_vShoulderOtherRatio = m_vShoulderPosRatio = m_vShoulderStartRatio = pDesc->vInitialLook; + m_vShoulderStartRatio.x *= -1.f; + m_pTransformCom->Set_State(STATE::POSITION, + m_pParentTransformCom->Get_State(STATE::POSITION) + + XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio)) * m_fShoulderDistance); + + _vector vShoulderPos = Get_WorldPostion(); + _vector vCameraLook = XMVectorSet(0.f, 0.f, 1.f, 0.f); + _vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vCameraLook = XMVector3Normalize(XMVector3Rotate(vCameraLook, vRotCameraq)); + + CTransform* pLookTransform = m_pTarget_LookPart->Get_Component(); + CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component(); + + pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio)); + pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio))); + } + + return S_OK; +} + +void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta) +{ + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } + if (true == m_bMovable) { + m_vAccDegreeXY.y += m_pGameInstance->Get_MouseMove().x * m_fMouseSensor; + m_vAccDegreeXY.x += m_pGameInstance->Get_MouseMove().y * m_fMouseSensor; + CMyTools::AdjustAccumulateDegreePitchYawDegree(m_vAccDegreeXY); + } + + _vector vLook = XMVector3Normalize(XMLoadFloat3(&m_vShoulderPosRatio)); + _vector vRotq = XMQuaternionRotationRollPitchYaw(0.f, XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vLook = XMVector3Normalize(XMVector3Rotate(vLook, vRotq)); + + m_pTransformCom->Set_State(STATE::POSITION, m_pParentTransformCom->Get_State(STATE::POSITION) + XMVector3Normalize(vLook) * m_fShoulderDistance); + _vector vShoulderPos = Get_WorldPostion(); + _vector vCameraLook = XMVectorSet(0.f, 0.f, 1.f, 0.f); + _vector vRotCameraq = XMQuaternionRotationRollPitchYaw(XMConvertToRadians(m_vAccDegreeXY.x), XMConvertToRadians(m_vAccDegreeXY.y), 0.f); + vCameraLook = XMVector3Normalize(XMVector3Rotate(vCameraLook, vRotCameraq)); + + CTransform* pLookTransform = m_pTarget_LookPart->Get_Component(); + CTransform* pFollowTransform = m_pTarget_FollowPart->Get_Component(); + + pLookTransform->Set_State(STATE::POSITION, vShoulderPos + vCameraLook * (m_fCameraFocalLength * m_fBackFrontRatio)); + pFollowTransform->Set_State(STATE::POSITION, vShoulderPos - vCameraLook * (m_fCameraFocalLength * (1 - m_fBackFrontRatio))); +} + +void CCamPosition_Shoulder::Update(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Up(DIK_O)) { + m_pBinded_Camera->Toggle_Priority(); + } + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } + Describe_Entity(); + if (m_pGameInstance->Key_Up(DIK_GRAVE)) { + m_bMovable = !m_bMovable; + } + if (m_pGameInstance->Mouse_Down(DIM_RBUTTON)) { + m_pGameInstance->Toggle_MouseCenter(); + } + if (m_pGameInstance->Key_Up(DIK_P)) { + m_vShoulderOtherRatio = m_vShoulderPosRatio = m_vShoulderStartRatio; + m_vShoulderStartRatio.x *= -1.f; + m_bLerp = true; + m_vLerpTimer.x = 0.f; + } +} + +void CCamPosition_Shoulder::Late_Update(_float fTimeDelta) +{ + if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) { + return; + } + if (true == m_bLerp) { + m_vLerpTimer.x += fTimeDelta; + XMStoreFloat3(&m_vShoulderPosRatio, XMVectorLerp(XMLoadFloat3(&m_vShoulderStartRatio), XMLoadFloat3(&m_vShoulderOtherRatio), m_vLerpTimer.x / m_vLerpTimer.y)); + if (m_vLerpTimer.x > m_vLerpTimer.y) { + m_bLerp = false; + m_vLerpTimer.x = 0.f; + + m_vShoulderPosRatio = m_vShoulderOtherRatio; + } + } +} + +HRESULT CCamPosition_Shoulder::Render() +{ + return S_OK; +} + +_vector CCamPosition_Shoulder::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CCamPosition_Shoulder::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC DescTransfrom = {}; + DescTransfrom.fRadius = 30.f; + DescTransfrom.fRotationPerSec = 0.f; + DescTransfrom.fSpeedPerSec = 0.f; + if (FAILED(__super::Ready_Components(&DescTransfrom))) { + return E_FAIL; + } + return S_OK; +} +HRESULT CCamPosition_Shoulder::Ready_SubParts() +{ + { + CCamPosition_Target::CAMERAPOSITION_TARGET_DESC Desc{}; + Desc.pParentTransform = m_pTransformCom; + m_pTarget_LookPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + m_pTarget_FollowPart = m_pGameInstance->Clone_Prototype< CCamPosition_Target>(g_iStaticLevel, &Desc); + } + + CCamera_Gaze::CAMERA_GAZE_DESC CameraDesc{}; + CameraDesc.fFovy = XMConvertToRadians(60.0f); + CameraDesc.fNear = 0.1f; + CameraDesc.fFar = 300.f; + CameraDesc.fSpeedPerSec = 5.f; + CameraDesc.fRotationPerSec = XMConvertToRadians(90.f); + CameraDesc.pFollowTarget = m_pTarget_FollowPart; + CameraDesc.pLookTarget = m_pTarget_LookPart; + CameraDesc.iPriority = 51; + CameraDesc.pCameraKey = CAMERA_SHOULDER; + CameraDesc.bEnableTransitionLerp = true; + CameraDesc.bEnableFollowLerp = true; + CameraDesc.bEnableLookLerp = true; + CameraDesc.vTransitionTime = { 0.f, 1.f }; + CameraDesc.vFollowLerpTime = { 0.f, 0.16f }; + CameraDesc.vLookLerpTime = { 0.f, 0.16f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &CameraDesc, nullptr, &m_pBinded_Camera))) + { + return E_FAIL; + } + m_pGameInstance->Add_Camera(g_iStaticLevel, m_pBinded_Camera, CAMERA_SHOULDER); + + + return S_OK; +} +CCamPosition_Shoulder* CCamPosition_Shoulder::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Shoulder"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Shoulder* CCamPosition_Shoulder::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Shoulder* pInstance = new CCamPosition_Shoulder(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Shoulder"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Shoulder::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pTarget_LookPart); + SAFE_RELEASE(m_pTarget_FollowPart); +} +void CCamPosition_Shoulder::Describe_Entity() +{ + GUI::Begin("Cam_Shoulder"); + m_pTransformCom->Describe_Entity(); + GUI::Text("fMouseSensor : %.1f", &m_fMouseSensor); + GUI::SliderFloat("ShoulderDistance", &m_fShoulderDistance, 0.f, 10.f, "%.1f"); + GUI::SliderFloat("BackFrontRatio", &m_fBackFrontRatio, 0.01f, 0.99f, "%.2f"); + GUI::Text("Pitch Yaw : %f %f", &m_vAccDegreeXY.x, &m_vAccDegreeXY.y); + GUI::SliderFloat3("ShoulderPosRatio", (_float*)&m_vShoulderPosRatio, -2.f, 2.f, "%.1f"); + GUI::End(); +} diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Socket.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Socket.cpp new file mode 100644 index 000000000..7fc1bd947 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CamPosition_Socket.cpp @@ -0,0 +1,105 @@ +#include "pch.h" + +#include "CamPosition_Socket.h" + +CCamPosition_Socket::CCamPosition_Socket(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CCamPosition(pDevice, pContext) +{ +} + +CCamPosition_Socket::CCamPosition_Socket(const CCamPosition_Socket& rhs) + :CCamPosition(rhs) +{ +} + +void CCamPosition_Socket::Priority_Update(_float fTimeDelta) +{ + /*_matrix socketMatrix = {}; + + socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + }*/ + m_pTransformCom->Set_WorldMatrix(/*socketMatrix * */XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); +} + +void CCamPosition_Socket::Update(_float fTimeDelta) +{ +} + +void CCamPosition_Socket::Late_Update(_float fTimeDelta) +{ +} + +HRESULT CCamPosition_Socket::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CCamPosition_Socket::Initialize(void* pArg) +{ + CAMERAPOSITION_PLAYER_DESC* pDesc = static_cast (pArg); + //m_pSocketMatrices = pDesc->pSocketMatrices; + if (FAILED(__super::Initialize(pArg))) + { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Socket::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Socket::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Socket* CCamPosition_Socket::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Socket* pInstance = new CCamPosition_Socket(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Socket"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CCamPosition_Socket* CCamPosition_Socket::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Socket* pInstance = new CCamPosition_Socket(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Socket"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CCamPosition_Socket::Free() +{ + __super::Free(); +} + +void CCamPosition_Socket::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Editor/Private/CamPosition_Target.cpp new file mode 100644 index 000000000..c3b561717 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/CamPosition_Target.cpp @@ -0,0 +1,94 @@ +#include "pch.h" + +#include "CamPosition_Target.h" + +CCamPosition_Target::CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CCamPosition(pDevice, pContext) +{ +} +CCamPosition_Target::CCamPosition_Target(const CCamPosition_Target& rhs) + :CCamPosition(rhs) +{ +} + +void CCamPosition_Target::Priority_Update(_float fTimeDelta) +{ +} + +void CCamPosition_Target::Update(_float fTimeDelta) +{ +} + +void CCamPosition_Target::Late_Update(_float fTimeDelta) +{ +} + +_vector CCamPosition_Target::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CCamPosition_Target::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamPosition_Target::Initialize(void* pArg) +{ + CAMERAPOSITION_TARGET_DESC* pDesc = static_cast (pArg); + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Target::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CCamPosition_Target::Bind_ShaderResources() +{ + return S_OK; +} + +CCamPosition_Target* CCamPosition_Target::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamPosition_Target* pInstance = new CCamPosition_Target(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamPosition_Target"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CCamPosition_Target* CCamPosition_Target::Clone(void* pArg, class CGameObject* pOWner) +{ + CCamPosition_Target* pInstance = new CCamPosition_Target(*this); + pInstance->m_pOwner = pOWner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamPosition_Target"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamPosition_Target::Free() +{ + __super::Free(); +} +void CCamPosition_Target::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/DebugCamera.cpp b/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp similarity index 68% rename from Jusin154_Team3D/Editor/Private/DebugCamera.cpp rename to Jusin154_Team3D/Editor/Private/Camera_Debug.cpp index 2952b68c6..d37e0cb12 100644 --- a/Jusin154_Team3D/Editor/Private/DebugCamera.cpp +++ b/Jusin154_Team3D/Editor/Private/Camera_Debug.cpp @@ -1,23 +1,27 @@ #include "pch.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Shader.h" -CDebugCamera::CDebugCamera(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CCamera_Debug::CCamera_Debug(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CCamera(pDevice, pContext) { } -CDebugCamera::CDebugCamera(const CDebugCamera& rhs) +CCamera_Debug::CCamera_Debug(const CCamera_Debug& rhs) : CCamera(rhs) { } -void CDebugCamera::Priority_Update(_float fTimeDelta) +void CCamera_Debug::Priority_Update(_float fTimeDelta) { + m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, false); } -void CDebugCamera::Update(_float fTimeDelta) +void CCamera_Debug::Update(_float fTimeDelta) { + if (false == m_bActive) { + return; + } Transition(fTimeDelta); _float3 vCamPos = {}; XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION)); @@ -66,21 +70,24 @@ void CDebugCamera::Update(_float fTimeDelta) __super::Bind_Matrices(); } -void CDebugCamera::Late_Update(_float fTimeDelta) +void CCamera_Debug::Late_Update(_float fTimeDelta) { + if (false == m_bActive) { + return; + } } -HRESULT CDebugCamera::Render() +HRESULT CCamera_Debug::Render() { return S_OK; } -HRESULT CDebugCamera::Initialize_Prototype() +HRESULT CCamera_Debug::Initialize_Prototype() { return S_OK; } -HRESULT CDebugCamera::Initialize(void* pArg) +HRESULT CCamera_Debug::Initialize(void* pArg) { CAMERA_DEBUG_DESC* pDesc = static_cast(pArg); m_fMouseSensor = pDesc->fMouseSensor; @@ -97,12 +104,10 @@ HRESULT CDebugCamera::Initialize(void* pArg) m_matInitial = *m_pTransformCom->Get_WorldMatrixPtr(); m_bActive = true; - m_pGameInstance->Add_Camera(NEXT_LEVEL, this, m_pCameraKey); - m_pGameInstance->Bind_Camera(NEXT_LEVEL, m_pCameraKey, false); return S_OK; } -HRESULT CDebugCamera::Ready_Components(void* pArg) +HRESULT CCamera_Debug::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) { return E_FAIL; @@ -111,46 +116,46 @@ HRESULT CDebugCamera::Ready_Components(void* pArg) return S_OK; } -HRESULT CDebugCamera::Bind_ShaderResources() +HRESULT CCamera_Debug::Bind_ShaderResources() { return S_OK; } -void CDebugCamera::Set_InitialPos() +void CCamera_Debug::Set_InitialPos() { m_pTransformCom->Set_WorldMatrix(m_matInitial); } -CDebugCamera* CDebugCamera::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +CCamera_Debug* CCamera_Debug::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { - CDebugCamera* pInstance = new CDebugCamera(pDevice, pContext); + CCamera_Debug* pInstance = new CCamera_Debug(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype())) { - MSG_BOX("Failed to Created : CDebugCamera"); + MSG_BOX("Failed to Created : CCamera_Debug"); SAFE_RELEASE(pInstance); } return pInstance; } -CGameObject* CDebugCamera::Clone(void* pArg, CGameObject* pOwner) +CGameObject* CCamera_Debug::Clone(void* pArg, CGameObject* pOwner) { - CDebugCamera* pInstance = new CDebugCamera(*this); + CCamera_Debug* pInstance = new CCamera_Debug(*this); pInstance->m_pOwner = pOwner; if (FAILED(pInstance->Initialize(pArg))) { - MSG_BOX("Failed to Cloned : CDebugCamera"); + MSG_BOX("Failed to Cloned : CCamera_Debug"); SAFE_RELEASE(pInstance); } return pInstance; } -void CDebugCamera::Free() +void CCamera_Debug::Free() { __super::Free(); } -void CDebugCamera::Describe_Entity() +void CCamera_Debug::Describe_Entity() { } diff --git a/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp b/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp new file mode 100644 index 000000000..826d34ca5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Camera_Gaze.cpp @@ -0,0 +1,198 @@ +#include "pch.h" +#include "Camera_Gaze.h" + +CCamera_Gaze::CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CCamera(pDevice, pContext) +{ +} + +CCamera_Gaze::CCamera_Gaze(const CCamera_Gaze& rhs) + : CCamera(rhs) +{ +} + +void CCamera_Gaze::Priority_Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } + if (false == m_bIsCurrentTransition) { + if (m_bEnable_FollowLerp) { + _vector vNewPos = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vFollowPos_Src), XMLoadFloat3(&m_vFollowPos_Dest), m_vFollowLerpTime.x / m_vFollowLerpTime.y), 1.f); + m_pTransformCom->Set_State(STATE::POSITION, vNewPos); + } + else { + m_pTransformCom->Set_State(STATE::POSITION, m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION)); + } + if (m_bEnable_LookLerp) { + _vector vNewLook = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&m_vLookPos_Src), XMLoadFloat3(&m_vLookPos_Dest), m_vLookLerpTime.x / m_vLookLerpTime.y), 1.f); + m_pTransformCom->LookAt(vNewLook); + } + else { + m_pTransformCom->LookAt(m_pLookTarget->Get_Component()->Get_State(STATE::POSITION)); + } + } + else { + + } + m_bActive = true; + __super::Bind_Matrices(); +} + +void CCamera_Gaze::Update(_float fTimeDelta) +{ + GUI::Text("CAM_GAZE_PRIORITY : %d", m_iPriority); + if (false == m_bActive) { + return; + } + Transition(fTimeDelta); + Update_LerpTimer(fTimeDelta); + + Describe_Entity(); +} + +void CCamera_Gaze::Update_LerpTimer(Engine::_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } + if (true == m_bEnable_LookLerp) { + m_vLookLerpTime.x += fTimeDelta; + if (m_vLookLerpTime.y <= m_vLookLerpTime.x) { + m_vLookLerpTime.x = 0.f; + m_bEnable_LookLerp = false; + XMStoreFloat3(&m_vLookPos_Src, XMLoadFloat3(&m_vLookPos_Dest)); + XMStoreFloat3(&m_vLookPos_Dest, m_pLookTarget->Get_WorldPostion()); + } + } + + if (true == m_bEnable_FollowLerp) { + m_vFollowLerpTime.x += fTimeDelta; + if (m_vFollowLerpTime.y <= m_vFollowLerpTime.x) { + m_vFollowLerpTime.x = 0.f; + m_bEnable_FollowLerp = false; + XMStoreFloat3(&m_vFollowPos_Src, m_pTransformCom->Get_State(STATE::POSITION)); + XMStoreFloat3(&m_vFollowPos_Dest, m_pFollowTarget->Get_WorldPostion()); + } + } +} + +void CCamera_Gaze::Enable_FollowLerp() +{ + m_bEnable_FollowLerp = true; + m_vFollowLerpTime.x = 0.f; + XMStoreFloat3(&m_vFollowPos_Src, m_pFollowTarget->Get_WorldPostion()); +} + +void CCamera_Gaze::Enable_LookLerp() +{ + m_bEnable_LookLerp = true; + m_vLookLerpTime.x = 0.f; + XMStoreFloat3(&m_vLookPos_Src, m_pLookTarget->Get_WorldPostion()); +} + +void CCamera_Gaze::Toggle_Priority() +{ + if (m_iPriority == 99) { + m_iPriority = 51; + } + else { + m_iPriority = 99; + m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_SHOULDER, false); + } +} + +void CCamera_Gaze::Late_Update(_float fTimeDelta) +{ + if (false == m_bActive) { + return; + } +} +HRESULT CCamera_Gaze::Render() +{ + return S_OK; +} +HRESULT CCamera_Gaze::Initialize_Prototype() +{ + return S_OK; +} +HRESULT CCamera_Gaze::Initialize(void* pArg) +{ + + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} +HRESULT CCamera_Gaze::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} +HRESULT CCamera_Gaze::Bind_ShaderResources() +{ + return S_OK; +} +CCamera_Gaze* CCamera_Gaze::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CCamera_Gaze* pInstance = new CCamera_Gaze(pDevice, pContext); + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CCamera_Gaze"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +CGameObject* CCamera_Gaze::Clone(void* pArg, CGameObject* pOwner) +{ + CCamera_Gaze* pInstance = new CCamera_Gaze(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CCamera_Gaze"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} +void CCamera_Gaze::Free() +{ + __super::Free(); +} +void CCamera_Gaze::Describe_Entity() +{ + GUI::Begin("Camera_Gaze_Describe"); + m_pTransformCom->Describe_Entity(); + GUI::Text("LOOK_SRC %.2f, %.2f, %.2f", m_vLookPos_Src.x, m_vLookPos_Src.y, m_vLookPos_Src.z); + GUI::Text("LOOK_DST %.2f, %.2f, %.2f", m_vLookPos_Dest.x, m_vLookPos_Dest.y, m_vLookPos_Dest.z); + GUI::Text("FOLLOW_SRC %.2f, %.2f, %.2f", m_vFollowPos_Src.x, m_vFollowPos_Src.y, m_vFollowPos_Src.z); + GUI::Text("FOLLOW_DST %.2f, %.2f, %.2f", m_vFollowPos_Dest.x, m_vFollowPos_Dest.y, m_vFollowPos_Dest.z); + GUI::Checkbox("TransitionLerp", &m_bEnable_TransitionLerp); + if (true == m_bEnable_TransitionLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vTransitionTime.x, m_vTransitionTime.y); + GUI::SliderFloat("TranslationTime", &m_vTransitionTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::Checkbox("LookLerp", &m_bEnable_LookLerp); + if (true == m_bEnable_LookLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vLookLerpTime.x, m_vLookLerpTime.y); + GUI::SliderFloat("LookTime", &m_vLookLerpTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::Checkbox("FollowLerp", &m_bEnable_FollowLerp); + if (true == m_bEnable_FollowLerp) { + GUI::SameLine(); GUI::Text("Translation : %.1f %.1f", m_vFollowLerpTime.x, m_vFollowLerpTime.y); + GUI::SliderFloat("FollowTime", &m_vFollowLerpTime.y, 0.1f, 3.f, "%.1f"); + } + + GUI::End(); +} diff --git a/Jusin154_Team3D/Editor/Private/Decendo.cpp b/Jusin154_Team3D/Editor/Private/Decendo.cpp new file mode 100644 index 000000000..3953a1bcb --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Decendo.cpp @@ -0,0 +1,240 @@ +#include "pch.h" +#include "Decendo.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Dummy_PhysXEffectHitBox.h" +#include "TrailObject.h" + + +CDecendo::CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CDecendo::CDecendo(const CDecendo& rhs) + : CEffect_Container(rhs) +{ +} + +HRESULT CDecendo::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CDecendo::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + if (FAILED(Load_Directory("../Bin/Resources/Data/Effect/Decendo/"))) + return E_FAIL; + + + m_wstrEffectName = L"Decendo"; + + m_pProjectile_Blur = Get_PartObject("Decendo_Proj_Blur"); + m_pProjectile = Get_PartObject("Decendo_Proj"); + + CPartObject* pCircle0 = Get_PartObject("Decendo_Cricle_S"); + + pCircle0->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + m_pProjectile_Blur->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + pCircle0->Set_Visible(true); + m_pProjectile->Set_Visible(true); + m_pProjectile_Blur->Set_Visible(true); + + SAFE_ADDREF(m_pProjectile_Blur); + SAFE_ADDREF(m_pProjectile); + + //나아가는 벡터와 한점을 가져와 수직인 평면상에 하나의 점으로 DIR 을 만듬 + m_vOwnerLook = XMVector3Normalize(m_pOwner->Get_Component()->Get_State(STATE::LOOK)); + _vector vUp = XMVectorSet(0.f, 1.f, 0.f, 0.f); + + + _vector vQuaternion = XMQuaternionRotationAxis(m_vOwnerLook, m_pGameInstance->Random_Float(0.f, XM_PIDIV2)); + + m_vRotateUp = XMVector3Rotate(vUp, vQuaternion); + + m_vRotateUp = XMVector3Normalize(m_vRotateUp); + + m_fDuration = 2.5f; + + return S_OK; +} + +void CDecendo::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CDecendo::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + m_pProjectile_Blur->Get_Component()->Translation(m_vOwnerLook * 0.5f); + m_pProjectile->Get_Component()->Translation(m_vOwnerLook * 0.5f); + + Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); + + if (m_fAccTime > XM_2PI) + return; + + m_fAccTime += fTimeDelta * 7.5f; + + m_pProjectile_Blur->Get_Component()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime)); + m_pProjectile->Get_Component()->Translation(m_vRotateUp * 0.2f * sinf(m_fAccTime)); + +} + +void CDecendo::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + + __super::Late_Update(fTimeDelta); +} + +HRESULT CDecendo::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CDecendo::Ready_Child() +{ + CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{}; + + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + _vector vOwnerLook = m_pOwner->Get_Component()->Get_State(STATE::LOOK); + + _float3 vDir = {}; + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + XMStoreFloat3(&vDir , vOwnerLook * 0.5f); + + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + Desc.iSubKind = 70; + Desc.vDeltaPos = vDir ; + Desc.vLifeTime = { 0.f, 1.f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) { + assert(false); + return E_FAIL; + } + + return S_OK; +} + +CDecendo* CDecendo::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDecendo* pInstance = new CDecendo(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDecendo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CDecendo::Clone(void* pArg, CGameObject* pOwner) +{ + CDecendo* pInstance = new CDecendo(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDecendo"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDecendo::OnCollision(CGameObject* pOther , void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos); + } + + m_pProjectile_Blur->Set_Visible(false); + m_pProjectile->Set_Visible(false); + + + + _vector vPlayerPos = m_pOwner->Get_Component()->Get_State(STATE::POSITION); + + Get_PartObject("Decendo_Down")->Get_Component()->LookAt(vPlayerPos); + + + Get_PartObject("Decendo_Cricle_S")->Set_Visible(false); + Get_PartObject()->Set_Visible(false); + + m_pPhysHitBox->Set_Dead(); +} + +void CDecendo::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + + SAFE_RELEASE(m_pProjectile_Blur); + SAFE_RELEASE(m_pProjectile); + +} + +void CDecendo::Describe_Entity() +{ + GUI::Begin("VALUE"); + + _float4 vValue = {}; + + if (GUI::InputFloat("TurnValue", (_float*)&m_fTurnValue)) + { + } + + GUI::End(); +} + +HRESULT CDecendo::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/DummyObject.cpp b/Jusin154_Team3D/Editor/Private/DummyObject.cpp index d2d9cb4f2..7f3568f40 100644 --- a/Jusin154_Team3D/Editor/Private/DummyObject.cpp +++ b/Jusin154_Team3D/Editor/Private/DummyObject.cpp @@ -2,13 +2,7 @@ #include "DummyObject.h" #include "GameInstance.h" -#include "DebugCamera.h" -#include "State_Idle.h" -#include "State_Walk.h" -#include "State_Dodge.h" -#include "State_Sprint.h" -#include "State_Jump.h" -#include "State_Skill.h" +#include "Camera_Debug.h" CDummyObject::CDummyObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) @@ -72,10 +66,7 @@ HRESULT CDummyObject::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp index 413b82fbb..f31cebd48 100644 --- a/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp +++ b/Jusin154_Team3D/Editor/Private/DummySkyBox.cpp @@ -2,8 +2,9 @@ #include "DummySkyBox.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" +#include "Camera_Gaze.h" CDummySkyBox::CDummySkyBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject{ pDevice, pContext } @@ -39,7 +40,7 @@ void CDummySkyBox::Priority_Update(_float fTimeDelta) void CDummySkyBox::Update(_float fTimeDelta) { - m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_CAMERA)->Get_Object()->Get_WorldPostion()); + m_pTransformCom->Set_State(STATE::POSITION, m_pGameInstance->Get_CamXMPosition()); } void CDummySkyBox::Late_Update(_float fTimeDelta) @@ -59,10 +60,7 @@ HRESULT CDummySkyBox::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp index 2835b1b62..d30f3d89e 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_Cube.cpp @@ -58,10 +58,7 @@ HRESULT CDummy_Cube::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp new file mode 100644 index 000000000..713f37acf --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Dummy_Globe.cpp @@ -0,0 +1,153 @@ +#include "pch.h" +#include "Dummy_Globe.h" + +#include "GameInstance.h" + + +CDummy_Globe::CDummy_Globe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummy_Globe::CDummy_Globe(const CDummy_Globe& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummy_Globe::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_Globe::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + return S_OK; +} + +void CDummy_Globe::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummy_Globe::Update(_float fTimeDelta) +{ +} + +void CDummy_Globe::Late_Update(_float fTimeDelta) +{ + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + } +} + +HRESULT CDummy_Globe::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + + return S_OK; +} + +HRESULT CDummy_Globe::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(nullptr))) { + return E_FAIL; + } + GLOBE_DESC* pDesc = static_cast(pArg); + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pDesc->wstrKey, + reinterpret_cast(&m_pModelCom)))){ + return E_FAIL; + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))){ + return E_FAIL; + } + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f)); + return S_OK; +} + +HRESULT CDummy_Globe::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +CDummy_Globe* CDummy_Globe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_Globe* pInstance = new CDummy_Globe(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_Globe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_Globe::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_Globe* pInstance = new CDummy_Globe(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_Globe"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_Globe::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pModelCom); + SAFE_RELEASE(m_pShaderCom); +} + +void CDummy_Globe::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp index fe5b6e0d8..d229ee700 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp @@ -64,7 +64,7 @@ HRESULT CDummy_PhysXBox::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) { return E_FAIL; } if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp new file mode 100644 index 000000000..e8be405fa --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp @@ -0,0 +1,200 @@ +#include "pch.h" +#include "Dummy_PhysXEffectHitBox.h" + +#include "GameInstance.h" + + +CDummy_PhysXEffectHitBox::CDummy_PhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummy_PhysXEffectHitBox::CDummy_PhysXEffectHitBox(const CDummy_PhysXEffectHitBox& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummy_PhysXEffectHitBox::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_PhysXEffectHitBox::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +void CDummy_PhysXEffectHitBox::Priority_Update(_float fTimeDelta) +{ + m_pTransformCom->RewindMomentum(); +} + +void CDummy_PhysXEffectHitBox::Update(_float fTimeDelta) +{ + m_pTransformCom->AccumulateMomentum(XMLoadFloat3(&m_vDeltaPos)); + m_vLifeTime.x += fTimeDelta; + if (m_vLifeTime.x > m_vLifeTime.y) { + m_bDead = true; + } +} + +void CDummy_PhysXEffectHitBox::Late_Update(_float fTimeDelta) +{ + if (true == m_pCharacter_Controller->IsActive()) { + m_pCharacter_Controller->Move(fTimeDelta); + } + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + } +} + +HRESULT CDummy_PhysXEffectHitBox::Render() +{ + //if (FAILED(Bind_ShaderResources())) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) { + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Render(0))) { + // return E_FAIL; + //} +#ifdef _DEBUG + if (FAILED(m_pCharacter_Controller->Render())) { + return E_FAIL; + } +#endif // _DEBUG + + + return S_OK; +} + +HRESULT CDummy_PhysXEffectHitBox::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + PHYSXDUMMY_DESC* pDesc = static_cast(pArg); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPos), 1.f)); + m_pTransformCom->Rotation(pDesc->vRotRPY.x, pDesc->vRotRPY.y, pDesc->vRotRPY.z); + m_vDeltaPos = pDesc->vDeltaPos; + m_vLifeTime = pDesc->vLifeTime; + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = pDesc->iSubKind; + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::BOX; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_EffectHitBox_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_EffectHitBox_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CDummy_PhysXEffectHitBox::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CDummy_PhysXEffectHitBox* CDummy_PhysXEffectHitBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_PhysXEffectHitBox* pInstance = new CDummy_PhysXEffectHitBox(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_PhysXEffectHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_PhysXEffectHitBox::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_PhysXEffectHitBox* pInstance = new CDummy_PhysXEffectHitBox(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_PhysXEffectHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_PhysXEffectHitBox::Free() +{ + if (nullptr == m_pGameInstance) { + m_pCharacter_Controller->SetActive(false); + PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition(); + PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z); + m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p)); + m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor()); + + + } + __super::Free(); + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} + +void CDummy_PhysXEffectHitBox::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXHitBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXHitBox.cpp new file mode 100644 index 000000000..e251d7ed5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXHitBox.cpp @@ -0,0 +1,170 @@ +#include "pch.h" +#include "Dummy_PhysXHitBox.h" + +#include "GameInstance.h" + + +CDummy_PhysXHitBox::CDummy_PhysXHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject{ pDevice, pContext } +{ +} + +CDummy_PhysXHitBox::CDummy_PhysXHitBox(const CDummy_PhysXHitBox& rhs) + : CGameObject(rhs) +{ +} + +HRESULT CDummy_PhysXHitBox::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CDummy_PhysXHitBox::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + + if (FAILED(Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +void CDummy_PhysXHitBox::Priority_Update(_float fTimeDelta) +{ + +} + +void CDummy_PhysXHitBox::Update(_float fTimeDelta) +{ + +} + +void CDummy_PhysXHitBox::Late_Update(_float fTimeDelta) +{ + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + } +} + +HRESULT CDummy_PhysXHitBox::Render() +{ + //if (FAILED(Bind_ShaderResources())) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Bind_Material(0, m_pShaderCom))) { + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { + // return E_FAIL; + //} + + //if (FAILED(m_pModelCom->Render(0))) { + // return E_FAIL; + //} +#ifdef _DEBUG + if (FAILED(m_pRigidBody->Render())) { + return E_FAIL; + } +#endif // _DEBUG + + + return S_OK; +} + +HRESULT CDummy_PhysXHitBox::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + PHYSXDUMMY_DESC* pPhysXDummyDesc = static_cast(pArg); + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pPhysXDummyDesc->vPos), 1.f)); + m_pTransformCom->Rotation(pPhysXDummyDesc->vRotRPY.x, pPhysXDummyDesc->vRotRPY.y, pPhysXDummyDesc->vRotRPY.z); + + + { // RIGID_BODY + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = pPhysXDummyDesc->iSubKind; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + } + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) { + return E_FAIL; + } + + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Box"), (CComponent**)&m_pModelCom))) { + return E_FAIL; + } + + + return S_OK; +} + +HRESULT CDummy_PhysXHitBox::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + return S_OK; +} + +CDummy_PhysXHitBox* CDummy_PhysXHitBox::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CDummy_PhysXHitBox* pInstance = new CDummy_PhysXHitBox(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CDummy_PhysXHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CDummy_PhysXHitBox::Clone(void* pArg, CGameObject* pOwner) +{ + CDummy_PhysXHitBox* pInstance = new CDummy_PhysXHitBox(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CDummy_PhysXHitBox"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CDummy_PhysXHitBox::Free() +{ + if (nullptr != m_pRigidBody) { + m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor()); + } + + __super::Free(); + + SAFE_RELEASE(m_pRigidBody); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} + +void CDummy_PhysXHitBox::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp index 5b54b1435..6a2a0d4af 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMesh.cpp @@ -58,13 +58,9 @@ HRESULT CDummy_PhysXMesh::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp index 5f20f0b2e..ea720422d 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp @@ -37,7 +37,6 @@ void CDummy_PhysXMonster::Update(_float fTimeDelta) if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) { m_pTransformCom->AccumulateMomentum(XMVectorSet(1.f, 0.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta); } - m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f)); m_pCharacter_Controller->Move(fTimeDelta); m_vStunTimer.x = 0.f; } diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp index 8c1ad4266..bc676089f 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp @@ -1,7 +1,14 @@ #include "pch.h" #include "Dummy_PhysXPlayable.h" +#include "Dummy_PhysXEffectHitBox.h" #include "GameInstance.h" +#include "NomalJap.h" +#include "Bombard.h" + +#include "TrailObject.h" +#include "Decendo.h" + CDummy_PhysXPlayable::CDummy_PhysXPlayable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext): CGameObject(pDevice, pContext) { @@ -48,6 +55,7 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta) m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor()); } } + m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f)); m_pCharacter_Controller->Move(fTimeDelta); } @@ -103,6 +111,7 @@ HRESULT CDummy_PhysXPlayable::Initialize(void* pArg) m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp b/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp index d563835a8..01990c57f 100644 --- a/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp +++ b/Jusin154_Team3D/Editor/Private/Dummy_Plane.cpp @@ -27,8 +27,7 @@ HRESULT CDummy_Plane::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -10.f, 0.f, 1.f)); - + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, -5.f, 0.f, 1.f)); return S_OK; } @@ -55,18 +54,13 @@ HRESULT CDummy_Plane::Render() return E_FAIL; } - _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 050f192f7..801e7b269 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -27,6 +27,8 @@ HRESULT CEditEffect::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; + + Set_Visible(false); return S_OK; } @@ -39,32 +41,53 @@ void CEditEffect::Priority_Update(_float fTimeDelta) void CEditEffect::Update(_float fTimeDelta) { - - - + if (m_bVisible == false) + return; if (m_pInstance_ModelCom == nullptr) return; m_pInstance_ModelCom->Drop(fTimeDelta); - if (m_EffectInfo.isBillboard) - m_pGameInstance->BillBoard(m_pTransformCom); } void CEditEffect::Late_Update(_float fTimeDelta) { + if (m_bVisible == false) + return; + if (m_pInstance_ModelCom == nullptr) return; + if (m_EffectInfo.isBillboard) + m_pGameInstance->BillBoard(m_pTransformCom); + + + + if (m_isGoStraight == true) + { + m_fAccTime += fTimeDelta; + + if (m_fAccTime > 1.f) + { + m_fAccTime = 0.f; + m_iSign *= -1; + } + + m_pTransformCom->Go_Straight(3 * fTimeDelta * m_iSign); + } + if (m_EffectInfo.isBlur == true) { m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); } + if (m_EffectInfo.isOnlyBlur == true) + return; + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); } @@ -141,7 +164,6 @@ void CEditEffect::Reference_Mat_For_EditEffect() HRESULT CEditEffect::Save_Effect(const _char* pPath) { - _string strPerfectFilePath = pPath; strPerfectFilePath += ".bin"; @@ -154,12 +176,12 @@ HRESULT CEditEffect::Save_Effect(const _char* pPath) if (hFile == INVALID_HANDLE_VALUE) { - MessageBox(NULL, L"오브젝트 저장 실패", L"System Message", MB_OK); + MessageBox(NULL, L"이펙트 오브젝트 저장 실패", L"System Message", MB_OK); return E_FAIL; } + m_strPath = strPerfectFilePath; - DWORD dwByte(0); if (m_pLightCom != nullptr) @@ -291,11 +313,39 @@ HRESULT CEditEffect::Save_Effect(const _char* pPath) m_pInstance_ModelCom->Save_InstanceModel(hFile); + + MessageBox(NULL, L"이펙트 저장 성공", L"System Message", MB_OK); + CloseHandle(hFile); return S_OK; } +HRESULT CEditEffect::Save_Path(HANDLE hFile) +{ + DWORD dwByte; + + size_t iObjectLength = m_strPath.length(); + const _char* pFilePath = m_strPath.c_str(); + + if (!WriteFile(hFile, &m_EffectInfo.eEffectType, sizeof(EFFECT_TYPE), &dwByte, nullptr)) { + return E_FAIL; + } + + if (!WriteFile(hFile, &iObjectLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (pFilePath != 0) + { + if (!WriteFile(hFile, pFilePath, sizeof(_char) * ((DWORD)iObjectLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + return S_OK; +} + HRESULT CEditEffect::Ready_Components(void* pArg) { if (FAILED(__super::Ready_Components(pArg))) @@ -308,6 +358,7 @@ HRESULT CEditEffect::Ready_Components(void* pArg) return E_FAIL; } + return S_OK; } @@ -341,6 +392,7 @@ CGameObject* CEditEffect::Clone(void* pArg, CGameObject* pOwner) void CEditEffect::Free() { __super::Free(); + } void CEditEffect::Describe_Entity() @@ -349,14 +401,32 @@ void CEditEffect::Describe_Entity() const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" , "UI" }; + const char* pEffectType[] = { "EFFECT" , "TRAIL" }; + const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR"}; _int iCurrentItem = static_cast<_int>(m_EffectInfo.eRenderOrder); + _int iCurrentType = static_cast<_int>(m_EffectInfo.eEffectType); + _int iCurrentPass = static_cast<_int>(m_EffectInfo.eShaderPass); if (ImGui::Combo("Render Order", &iCurrentItem, pRenderNames, ENUM_CLASS(RENDER::END))) { m_EffectInfo.eRenderOrder = static_cast(iCurrentItem); } + if (ImGui::Combo("Effect Type", &iCurrentType, pEffectType, ENUM_CLASS(EFFECT_TYPE::END))) + { + m_EffectInfo.eEffectType = static_cast(iCurrentType); + } + + if (ImGui::Combo("Shader Pass", &iCurrentPass, pShaderPass, ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::END))) + { + m_EffectInfo.eShaderPass = static_cast(iCurrentPass); + } + + + GUI::Checkbox("Visible", &m_bVisible); + GUI::Checkbox("GO", &m_isGoStraight); + m_pTransformCom->Describe_Entity(); GUI::Checkbox("Diffuse", &m_EffectInfo.isDiffuse); @@ -365,7 +435,6 @@ void CEditEffect::Describe_Entity() GUI::Checkbox("Distortion", &m_EffectInfo.isDistortion); GUI::Checkbox("Noise", &m_EffectInfo.isNoise); - if (GUI::Checkbox("Billboard", &m_EffectInfo.isBillboard)) { m_pTransformCom->Rotation(0.f, 0.f, 0.f); @@ -382,10 +451,11 @@ void CEditEffect::Describe_Entity() if (GUI::TreeNode("BLUR")) { GUI::Checkbox("Blur", &m_EffectInfo.isBlur); + GUI::Checkbox("OnlyBlur", &m_EffectInfo.isOnlyBlur); ImGui::PushItemWidth(80); GUI::DragFloat("BlurIntensity", &m_EffectInfo.fBlurIntensity, 0.005f, 0.f, 1.f); - GUI::DragInt("BlurWeight", &m_EffectInfo.iBlurWeight, 1.f, 0, 32); + GUI::DragInt("BlurWeight", &m_EffectInfo.iBlurWeight, 2.f, 0, 128); ImGui::PopItemWidth(); @@ -398,12 +468,20 @@ 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); + GUI::Checkbox("EmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse); if (m_EffectInfo.isEmissive) { @@ -537,9 +615,14 @@ void CEditEffect::Describe_Entity() GUI::InputFloat2("MaskUVCutting", (_float*)&m_EffectInfo.vUVMaskCutting); GUI::Checkbox("MaskUVMove", &m_EffectInfo.isMaskUVMove); + GUI::Checkbox("MaskClampSample", &m_EffectInfo.isMaskClampSample); 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(); @@ -578,10 +661,10 @@ void CEditEffect::Describe_Entity() { if (GUI::TreeNode("DISSOLV_TEX")) { - + GUI::Checkbox("Nomal Dissolve", &m_EffectInfo.isNomalDissolve); GUI::Checkbox("Reverse Dissolve", &m_EffectInfo.isReverseDissolve); - _string strName = m_strDissolveName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISSOLVE_TEXTURE", (CComponent**)&m_pDissolve_TextureCom, nullptr, this); if (strName != "") { m_strDissolveName = strName; @@ -653,7 +736,8 @@ void CEditEffect::Describe_Entity() { if (GUI::TreeNode("NOISE")) { - + GUI::Checkbox("NoiseColor", &m_EffectInfo.isNoiseColor); + GUI::Checkbox("NoiseAlpha", &m_EffectInfo.isNoiseAlpha); GUI::Checkbox("NoiseMove", &m_EffectInfo.isNoiseUVMove); ImGui::PushItemWidth(80); @@ -685,8 +769,24 @@ void CEditEffect::Describe_Entity() GUI::TreePop(); } + //ImGui::Begin("Simple Plot"); + + + //ImGui::PlotLines("Value", m_ValueVector.data(), (int)m_ValueVector.size(), 0, nullptr, FLT_MAX, FLT_MAX, ImVec2(0, 100)); + + //GUI::InputFloat("InputValue", &m_fInputValue); + + //if (GUI::Button("AddValue")) + //{ + // m_ValueVector.push_back(m_fInputValue); + //} + + //ImGui::End(); + } + + GUI::Separator(); GUI::Spacing(); diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index 47ad19e1a..67d15cc30 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -8,7 +8,8 @@ CEffectObject::CEffectObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContex } CEffectObject::CEffectObject(const CEffectObject& rhs) - :CPartObject(rhs) + :CPartObject(rhs), + m_strPath(rhs.m_strPath) { } @@ -36,7 +37,8 @@ HRESULT CEffectObject::Render() for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++) { - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP)))) { + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(m_EffectInfo.eShaderPass)))) { return E_FAIL; } @@ -46,13 +48,13 @@ HRESULT CEffectObject::Render() if (FAILED(m_pInstance_ModelCom->Bind_CS_Output(5, 1))) return E_FAIL; - if (FAILED(m_pInstance_ModelCom->Render(i))) { return E_FAIL; } } + return S_OK; } @@ -71,12 +73,22 @@ HRESULT CEffectObject::Render_Blur() return E_FAIL; } - + SHADER_PASS_INSTANCE_MODEL BlurPass = {}; + + if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD) + { + BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD; + } + else + { + BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR; + } for (_uint i = 0; i < m_pInstance_ModelCom->Get_NumMeshes(); i++) { + - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_INSTANCE_MODEL::BLUR)))) { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(BlurPass)))) { return E_FAIL; } @@ -93,12 +105,14 @@ HRESULT CEffectObject::Render_Blur() + return S_OK; } + + HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) { - SAFE_RELEASE(m_pDiffuse_TextureCom); SAFE_RELEASE(m_pNoise_TextureCom); SAFE_RELEASE(m_pMasking_TextureCom); @@ -111,7 +125,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) SAFE_RELEASE(m_pLightCom); _string strPerfectFilePath = pFilePath; - + + m_strPath = strPerfectFilePath; + strPerfectFilePath += ".bin"; HANDLE hFile = CreateFileW( @@ -130,10 +146,13 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) return E_FAIL; } + // 나중에 패키징할때 패스를 저장할거임 + DWORD dwByte(0); if (!ReadFile(hFile, &m_EffectInfo, sizeof(EFFECT_INFO), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -144,6 +163,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) { if (FAILED(Add_Component(g_iStaticLevel, &m_pLightCom, &m_EffectInfo.LightDesc))) { + CloseHandle(hFile); return E_FAIL; } } @@ -154,6 +174,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) size_t iComponentLength = {}; if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -162,16 +183,22 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strDiffuseName = szName; + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), - reinterpret_cast(&m_pDiffuse_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isNoise) @@ -180,6 +207,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -188,15 +216,18 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), - reinterpret_cast(&m_pNoise_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isMasking) @@ -214,15 +245,21 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), - reinterpret_cast(&m_pMasking_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isDissolve) @@ -230,6 +267,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) size_t iComponentLength = {}; if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -238,15 +276,23 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strDissolveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } + + } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), - reinterpret_cast(&m_pDissolve_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isEmissive) @@ -254,6 +300,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) size_t iComponentLength = {}; if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -262,15 +309,21 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strEmissiveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), - reinterpret_cast(&m_pEmissive_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isDistortion) @@ -278,6 +331,7 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) size_t iComponentLength = {}; if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -286,21 +340,28 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + { + CloseHandle(hFile); + return E_FAIL; + } } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), - reinterpret_cast(&m_pDistortion_TextureCom)))) - return E_FAIL; + } size_t iComponentLength = {}; if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } @@ -309,27 +370,44 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) _char szName[MAX_PATH] = {}; if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)(DWORD)iComponentLength + 1), &dwByte, nullptr)) { + CloseHandle(hFile); return E_FAIL; } m_strModelName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), + reinterpret_cast(&m_pInstance_ModelCom)))) + { + CloseHandle(hFile); + return E_FAIL;; + } } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), - reinterpret_cast(&m_pInstance_ModelCom)))) - return E_FAIL;; + m_pInstance_ModelCom->Load_InstanceModel(hFile); CloseHandle(hFile); + + + return S_OK; +} + +HRESULT CEffectObject::Load() +{ + + if (FAILED(Load(m_strPath.c_str(), static_cast(NEXT_LEVEL)))) + return E_FAIL; + + + return S_OK; } #ifdef _DEBUG - - HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) { @@ -392,11 +470,11 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) m_strDiffuseName = szName; - } + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + return E_FAIL; - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDiffuseName), - reinterpret_cast(&m_pDiffuse_TextureCom)))) - return E_FAIL; + } } if (m_EffectInfo.isNoise) @@ -417,11 +495,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNoiseName), - reinterpret_cast(&m_pNoise_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isMasking) @@ -443,11 +523,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strMaskingName), - reinterpret_cast(&m_pMasking_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isDissolve) @@ -467,11 +549,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strDissolveName = szName; + + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), + reinterpret_cast(&m_pDissolve_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDissolveName), - reinterpret_cast(&m_pDissolve_TextureCom)))) - return E_FAIL; } if (m_EffectInfo.isEmissive) @@ -491,11 +575,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strEmissiveName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), + reinterpret_cast(&m_pEmissive_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strEmissiveName), - reinterpret_cast(&m_pEmissive_TextureCom)))) - return E_FAIL; + } if (m_EffectInfo.isDistortion) @@ -515,11 +601,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + return E_FAIL; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strDistortionName), - reinterpret_cast(&m_pDistortion_TextureCom)))) - return E_FAIL; + } size_t iComponentLength = {}; @@ -538,11 +626,13 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) } m_strModelName = szName; + + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), + reinterpret_cast(&m_pInstance_ModelCom)))) + return E_FAIL;; } - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strModelName), - reinterpret_cast(&m_pInstance_ModelCom)))) - return E_FAIL;; m_pInstance_ModelCom->PreLoad(hFile); @@ -555,9 +645,8 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) HRESULT CEffectObject::Bind_ShaderResources() { - if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) return E_FAIL; - } if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { return E_FAIL; @@ -606,8 +695,32 @@ HRESULT CEffectObject::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_RawValue("g_isReverseDissolve", &m_EffectInfo.isReverseDissolve, sizeof(_bool)))) { return E_FAIL; } - + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolve", &m_EffectInfo.isEmissiveDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMaskClampSample", &m_EffectInfo.isMaskClampSample, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_EffectInfo.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_EffectInfo.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNomalDissolve", &m_EffectInfo.isNomalDissolve, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isEmissiveDissolveReverse", &m_EffectInfo.isEmissiveDissolveReverse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_EffectInfo.vColor, sizeof(_float4)))) { return E_FAIL; @@ -617,7 +730,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; } @@ -637,7 +750,6 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_EffectInfo.vDiffuseDistortionUVGainAmount, sizeof(_float2)))) { return E_FAIL; } @@ -674,12 +786,36 @@ HRESULT CEffectObject::Bind_ShaderResources() return E_FAIL; } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_EffectInfo.fDiffuseAlpha, sizeof(_float)))) { 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) { @@ -735,7 +871,14 @@ HRESULT CEffectObject::Bind_ShaderResources() HRESULT CEffectObject::Ready_Components(void* pArg) { - if (FAILED(__super::Ready_Components(pArg))) { + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + + if (FAILED(__super::Ready_Components(&TransformDesc))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Effect_Container.cpp b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp new file mode 100644 index 000000000..e5d93cd6f --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Effect_Container.cpp @@ -0,0 +1,237 @@ +#include "pch.h" +#include "Effect_Container.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "TrailObject.h" +#include "GameObject.h" + + +#include + +CEffect_Container::CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CContainerObject{ pDevice, pContext } +{ +} + +CEffect_Container::CEffect_Container(const CEffect_Container& rhs) + : CContainerObject(rhs) +{ + +} + +HRESULT CEffect_Container::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CEffect_Container::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + return S_OK; +} + +void CEffect_Container::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CEffect_Container::Update(_float fTimeDelta) +{ + __super::Update(fTimeDelta); + +} + +void CEffect_Container::Late_Update(_float fTimeDelta) +{ + __super::Late_Update(fTimeDelta); +} + +void CEffect_Container::OnCollision(CGameObject* pOther, void* pDesc) +{ +} + +HRESULT CEffect_Container::Load_Directory(const _char* pPath) +{ + + for (const auto& file : filesystem::directory_iterator(pPath)) + { + if (file.is_directory()) + continue; + + string ext = file.path().extension().string(); + + if (!(strcmp(ext.c_str(), ".bin") ^ strcmp(ext.c_str(), ".trail"))) + continue; + + _char szFilePath[MAX_PATH] = {}; + + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + /* Trail */ + + if (!strcmp(ext.c_str(), ".trail")) + { + CTrailObject* pTrail = nullptr; + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기 + + if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), NEXT_LEVEL, &pTrail, &PartsDesc))) { + assert(false); + return E_FAIL; + } + + + /*이펙트 로드 로드*/ + size_t iPos = {}; + _string strFilePath = szFilePath; + + while ((iPos = strFilePath.find(".trail")) != std::string::npos) { + strFilePath.erase(iPos, 6); + }; + + + if (FAILED(pTrail->Load_Trail(strFilePath.c_str(), LEVEL::EFFECT))) + { + Safe_Release(pTrail); + continue; + } + + Safe_Release(pTrail); + + continue; + } + + + ///////////////////////////// + + CEditEffect* pEditEffect = nullptr; + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + + + + /*이펙트 껍데기 생성*/ + + _wstring wstrFileName = file.path().stem().wstring(); //이름 넣기 + + if (FAILED(Add_PartObject(CMyTools::ToString(wstrFileName), NEXT_LEVEL, &pEditEffect, &PartsDesc))) { + assert(false); + return E_FAIL; + } + + + /*이펙트 로드 로드*/ + size_t iPos = {}; + _string strFilePath = szFilePath; + + while ((iPos = strFilePath.find(".bin")) != std::string::npos) { + strFilePath.erase(iPos, 4); + }; + + + if (FAILED(pEditEffect->Load(strFilePath.c_str(), LEVEL::EFFECT))) + { + Safe_Release(pEditEffect); + continue; + } + + Safe_Release(pEditEffect); + } + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Components(void* pArg) +{ + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + if (FAILED(__super::Ready_Components(&TransformDesc))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CEffect_Container::Ready_Child() +{ + + return S_OK; +} + +void CEffect_Container::Free() +{ + __super::Free(); + +} + +HRESULT CEffect_Container::Bind_ShaderResources() +{ + return S_OK; +} + +void CEffect_Container::Update_Event(_float fTimeDelta) +{ + + m_fPreAccTime = m_fAccTime; + m_fAccTime += fTimeDelta; + + if (m_fAccTime >= m_fDelay || m_isDelayed == false) // 아직 딜레이되지 않았고 딜레이를 넘어섰다면 + { + m_isDelayed = true; + } + else + { + return; + } + + + if (m_fAccTime >= m_fDuration) // 듀레이션을 넘어섰다면 + { + if (m_isLoop) + { + m_fAccTime = 0.f; + m_fPreAccTime = 0.f; + m_isDelayed = false; + } + else + { + m_bVisible = false; + + for (auto& pPart : m_PartObjects) + { + pPart.second->Set_Visible(false); + } + } + } + + + for (auto& pPair : m_Events) // 이벤트들을 비교하면서 실행함 + { + if (pPair.first >= m_fPreAccTime && pPair.first <= m_fAccTime) + { + pPair.second(); + } + } + + +} diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 59dd9abdb..83bdb5257 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -3,17 +3,18 @@ #include "GameInstance.h" #include "EditEffect.h" +#include "TrailObject.h" #include CEffect_Editor::CEffect_Editor(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CContainerObject{ pDevice, pContext } + : CEffect_Container{ pDevice, pContext } { } CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs) - : CContainerObject(rhs) + : CEffect_Container(rhs) , m_MatFiles(rhs.m_MatFiles) { @@ -22,8 +23,6 @@ CEffect_Editor::CEffect_Editor(const CEffect_Editor& rhs) HRESULT CEffect_Editor::Initialize_Prototype() { - - ReadMaterials("../Bin/Resources/VFX/Particles/Magic/Glacius"); @@ -70,6 +69,25 @@ void CEffect_Editor::Update(_float fTimeDelta) Describe_Entity(); __super::Update(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_UP)) + m_pTransformCom->Go_Straight(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_DOWN)) + m_pTransformCom->Go_Backward(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) + m_pTransformCom->Go_Right(fTimeDelta); + if (m_pGameInstance->Key_Pressing(DIK_LEFT)) + m_pTransformCom->Go_Left(fTimeDelta); + + if (m_pGameInstance->Key_Pressing(DIK_Z)) + m_pTransformCom->Turn(XMVectorSet(0.f, 1.f, 0.f, 0.f), fTimeDelta); + + /* 이펙트 컨테이너 업데이트 */ + //Update_Event(fTimeDelta); + + /* 트레일 업데이트 */ + if (m_pTrailObject != nullptr) + m_pTrailObject->Trail_Update(m_pTransformCom->Get_XMWorldMatrix(), fTimeDelta); + } void CEffect_Editor::Late_Update(_float fTimeDelta) @@ -79,7 +97,13 @@ void CEffect_Editor::Late_Update(_float fTimeDelta) HRESULT CEffect_Editor::Ready_Components(void* pArg) { - if (FAILED(__super::Ready_Components(pArg))) { + CTransform::TRANSFORM_DESC TransformDesc = {}; + + TransformDesc.fRadius = 20.f; + TransformDesc.fRotationPerSec = 10.f; + TransformDesc.fSpeedPerSec = 10.f; + + if (FAILED(__super::Ready_Components(&TransformDesc))) { return E_FAIL; } @@ -90,15 +114,15 @@ HRESULT CEffect_Editor::Ready_Child() { - CPartObject::PARTOBJECT_DESC PartsDesc{}; + //CPartObject::PARTOBJECT_DESC PartsDesc{}; - PartsDesc.pParentTransform = m_pTransformCom; + //PartsDesc.pParentTransform = m_pTransformCom; - if (FAILED(Add_PartObject("EffectObject" + to_string(m_iNumPart++), ENUM_CLASS(LEVEL::EFFECT), &m_pEditEffect, &PartsDesc))) - return E_FAIL; + //if (FAILED(Add_PartObject("EffectObject" + to_string(m_iNumPart++), ENUM_CLASS(LEVEL::EFFECT), nullptr, &PartsDesc))) + // return E_FAIL; + + //m_strCurrentEffectName = "EffectObject0" ; - m_strCurrentEffectName = "EffectObject0"; - SAFE_RELEASE(m_pEditEffect); @@ -134,8 +158,10 @@ HRESULT CEffect_Editor::ReSaveFile(const _char* pDirectoryPath) - if (FAILED(Add_PartObject("ReSaveFile" + iIndex++ , ENUM_CLASS(LEVEL::EFFECT), &pEditEffect, &PartsDesc))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this , &pEditEffect))) { + assert(false); return E_FAIL; + } if (FAILED(pEditEffect->LoadPre(szFilePath, LEVEL::EFFECT))) { @@ -154,7 +180,7 @@ HRESULT CEffect_Editor::ReSaveFile(const _char* pDirectoryPath) pEditEffect->Save_Effect(strPath.c_str()); - Safe_Release(pEditEffect); + pEditEffect->Set_Dead(); } return S_OK; @@ -370,6 +396,8 @@ HRESULT CEffect_Editor::Load_Edit(const _char* pPath) Safe_Release(m_pEditEffect); return E_FAIL; } + else + MessageBox(NULL, L"이펙트 로드 성공", L"System Message", MB_OK); Safe_Release(m_pEditEffect); @@ -388,12 +416,14 @@ CEffect_Editor* CEffect_Editor::Create(ID3D11Device* pDevice, ID3D11DeviceContex } return pInstance; + } CGameObject* CEffect_Editor::Clone(void* pArg, CGameObject* pOwner) { CEffect_Editor* pInstance = new CEffect_Editor(*this); pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) { MSG_BOX("Failed to Cloned : CEffect_Editor"); @@ -408,6 +438,7 @@ void CEffect_Editor::Free() __super::Free(); SAFE_RELEASE(m_pEditEffect); + SAFE_RELEASE(m_pTrailObject); } void CEffect_Editor::Describe_Entity() @@ -417,29 +448,15 @@ void CEffect_Editor::Describe_Entity() GUI::TextColored(ImVec4(1.f, 0.f, 1.f, 1.f), m_strCurrentEffectName.c_str()); if (m_pEditEffect != nullptr) + { m_pEditEffect->Describe_Entity(); - - GUI::InputTextMultiline("FILE PATH", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25)); - - m_strSavePath = m_szBuffer; - - if (GUI::Button("SAVE")) - { - m_pEditEffect->Save_Effect(m_strSavePath.c_str()); - } - - GUI::SameLine(); - - if (GUI::Button("LOAD")) - { - Load_Edit(m_strSavePath.c_str()); } - if (GUI::Button("RESAVE")) + if (m_pTrailObject != nullptr) { - ReSaveFile(m_strSavePath.c_str()); + m_pTrailObject->Describe_Entity(); } - + ImGui::End(); ImGui::Begin("Reference Material"); @@ -467,10 +484,32 @@ void CEffect_Editor::Describe_Entity() PartsDesc.pParentTransform = m_pTransformCom; if (FAILED(Add_PartObject("EffectObject" + to_string(m_iNumPart++), ENUM_CLASS(LEVEL::EFFECT), nullptr, &PartsDesc))) + { + ImGui::EndPopup(); return; + } + } + if (ImGui::MenuItem("Create Trail")) + { + if (m_pTrailObject == nullptr) + { + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + if (FAILED(Add_PartObject("TrailObject", ENUM_CLASS(LEVEL::EFFECT), &m_pTrailObject, &PartsDesc))) + { + ImGui::EndPopup(); + } + + CTrailObject* pTrailObject = m_pTrailObject; + + SAFE_RELEASE(pTrailObject); + + } } ImGui::EndPopup(); @@ -482,7 +521,12 @@ void CEffect_Editor::Describe_Entity() for (auto& pPartObject : m_PartObjects) { - _string strName = "EffectObject" + to_string(iIndex); + _string strName = {}; + + if( nullptr != dynamic_cast(pPartObject.second)) + strName = "TrailObject" + to_string(iIndex); + else + strName = pPartObject.first; if (GUI::TreeNode(strName.c_str())) { @@ -555,6 +599,68 @@ void CEffect_Editor::Describe_Entity() ImGui::End(); + + ImGui::Begin("Effect Save"); + + GUI::InputTextMultiline("FILE PATH", m_szBuffer, sizeof(m_szBuffer), ImVec2(250, 25)); + + m_strSavePath = m_szBuffer; + + if (GUI::Button("SAVE")) + { + m_pEditEffect->Save_Effect(m_strSavePath.c_str()); + } + + GUI::SameLine(); + + if (GUI::Button("LOAD")) + { + Load_Edit(m_strSavePath.c_str()); + } + + GUI::SameLine(); + + if (GUI::Button("RESAVE")) + { + ReSaveFile(m_strSavePath.c_str()); + } + + GUI::InputTextMultiline("DIRECTORY PATH", m_szPackageBuffer, sizeof(m_szPackageBuffer), ImVec2(250, 25)); + + m_strPackageSavePath = m_szPackageBuffer; + + if (GUI::Button("LOAD DIRECTORY")) + { + if (SUCCEEDED(Load_Directory(m_strPackageSavePath.c_str()))) + { + MessageBox(NULL, L"파일 로드 성공", L"System Message", MB_OK); + } + } + + GUI::InputTextMultiline("TRAIL FILE PATH", m_szTrailBuffer, sizeof(m_szTrailBuffer), ImVec2(250, 25)); + + m_strTrailSavePath = m_szTrailBuffer; + + if (GUI::Button("TRAIL SAVE")) + { + if (m_pTrailObject != nullptr) + { + m_pTrailObject->Save_Trail(m_strTrailSavePath.c_str()); + } + } + + GUI::SameLine(); + + if (GUI::Button("TRAIL LOAD")) + { + if (m_pTrailObject != nullptr) + { + m_pTrailObject->Load_Trail(m_strTrailSavePath.c_str(), LEVEL::EFFECT); + } + } + + ImGui::End(); + } HRESULT CEffect_Editor::Bind_ShaderResources() diff --git a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp index 0582aa2fe..95b43e007 100644 --- a/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp +++ b/Jusin154_Team3D/Editor/Private/GamePlay_Canvas.cpp @@ -160,6 +160,9 @@ void CGamePlay_Canvas::Free() SAFE_RELEASE(m_pVIBufferCom); } +#ifdef _DEBUG void CGamePlay_Canvas::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp index a444dbf36..f7cbf1e00 100644 --- a/Jusin154_Team3D/Editor/Private/Goblin.cpp +++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp @@ -2,7 +2,15 @@ #include "Goblin.h" #include "GameInstance.h" -#include "Player.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion CGoblin::CGoblin(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CMonster(pDevice, pContext) @@ -27,23 +35,49 @@ HRESULT CGoblin::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; - m_pModelCom->Set_AnimationIndex(1); + Add_FSM(); + + Set_Anim(); + + { + CFSM::FSM_DESC FSMDesc{}; + FSMDesc.pStates = &m_States; + FSMDesc.pStateMask = &m_iStateMask; + + m_pFSM->Bind_States(FSMDesc); + m_pFSM->Change_State(FSMSTATE::IDLE); + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); + + m_pCharacter_Controller->Set_Position(XMVectorSet(-10.f, 0.f, -10.f, 1.f)); return S_OK; } void CGoblin::Priority_Update(_float fTimeDelta) { - + m_pTransformCom->RewindMomentum(); } void CGoblin::Update(_float fTimeDelta) { + m_pFSM->Update_State(fTimeDelta); + m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + m_pCharacter_Controller->Move(fTimeDelta); + } void CGoblin::Late_Update(_float fTimeDelta) { + __super::Late_Update(fTimeDelta); + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); + + m_pTransformCom->LookAt(m_pPlayerTransform->Get_State(STATE::POSITION)); + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); } @@ -61,10 +95,7 @@ HRESULT CGoblin::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } @@ -77,6 +108,11 @@ HRESULT CGoblin::Render() } } +#ifdef _DEBUG + m_pCharacter_Controller->Render(); + //m_pRigidBody->Render(); +#endif + return S_OK; } @@ -97,6 +133,35 @@ HRESULT CGoblin::Ready_Components() reinterpret_cast(&m_pModelCom)))) return E_FAIL; + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Monster_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Monster_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + m_pCharacter_Controller->Set_Position(m_pTransformCom->Get_State(STATE::POSITION)); + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::MONSTER); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor()); + } + return S_OK; } @@ -146,6 +211,17 @@ void CGoblin::Free() { __super::Free(); + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); } void CGoblin::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/Goblin_States.cpp b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp new file mode 100644 index 000000000..ff4a55c37 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Goblin_States.cpp @@ -0,0 +1,150 @@ +#include "pch.h" +#include "Goblin.h" + +#include "GameInstance.h" +#include "Player.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + + +void CGoblin::Behavior_IdleEnter() +{ + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_IdleExitCheck() +{ + if (m_fTargetDistance <= 15.f) + m_pFSM->Change_State(FSMSTATE::MOVE); + + return E_FAIL; +} + +void CGoblin::Behavior_IdleExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLE); +} + +void CGoblin::Behavior_MoveEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_pFSM->Enable_State(FSMSTATE::MOVE); + m_pFSM->Enable_State(FSMSTATE::JOG); + + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_MoveExitCheck() +{ + if (m_fTargetDistance <= 3.f) + m_pFSM->Change_State(FSMSTATE::COMBAT); + + return E_FAIL; +} + +void CGoblin::Behavior_MoveExit() +{ + m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK); +} + +void CGoblin::Behavior_CombatEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + + m_pFSM->Enable_State(FSMSTATE::COMBAT); + + m_pFSM->Enable_State(FSMSTATE::SKILL); + + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CGoblin::Behavior_CombatExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) + { + m_pFSM->Change_State(FSMSTATE::IDLE); + } + return E_FAIL; +} + +void CGoblin::Behavior_CombatExit() +{ + m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::SKILL | FSMSTATE::SKILL2); +} + + +void CGoblin::Add_FSM() +{ +#pragma region Behavior_Movement_NotFocus + { + CState_Idle::STATE_IDLE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_IdleExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); + } + { + CState_Move::STATE_MOVE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_MoveExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); + } +#pragma endregion + +#pragma region Behavior_Combat_NotFocus + { + CState_Combat::STATE_COMBAT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_CombatExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_Focus + +#pragma endregion + +} + +void CGoblin::Set_Anim() +{ + + m_Animation[STATEANIM::IDLE] = { 22,true }; + + m_Animation[STATEANIM::WALK_FWD] = { 50,true }; + m_Animation[STATEANIM::WALK_STOP] = { 58,false }; + + m_Animation[STATEANIM::JOG_FWD] = { 46,true }; + m_Animation[STATEANIM::JOG_BWD] = { 154,false }; + + m_Animation[STATEANIM::SKILL] = { 70,false }; // 도끼 스윙 + m_Animation[STATEANIM::SKILL2] = { 85,false }; // 나이프 던지기 +} diff --git a/Jusin154_Team3D/Editor/Private/Hair.cpp b/Jusin154_Team3D/Editor/Private/Hair.cpp index c1b41e8fb..db7b06bcd 100644 --- a/Jusin154_Team3D/Editor/Private/Hair.cpp +++ b/Jusin154_Team3D/Editor/Private/Hair.cpp @@ -176,7 +176,7 @@ void CHair::Describe_Entity() if (!m_pModelCom ) return; - /*for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_Size(); i++) + /*for (_uint i = 0; i < dynamic_cast(m_pTextureCom)->Get_TextureDesc(); i++) { _char label[128]; @@ -187,7 +187,7 @@ void CHair::Describe_Entity() iTextureIndex = i; } - if (i % dynamic_cast(m_pTextureCom)->Get_Size() != dynamic_cast(m_pTextureCom)->Get_Size()-1) + if (i % dynamic_cast(m_pTextureCom)->Get_TextureDesc() != dynamic_cast(m_pTextureCom)->Get_TextureDesc()-1) GUI::SameLine(); }*/ diff --git a/Jusin154_Team3D/Editor/Private/Head.cpp b/Jusin154_Team3D/Editor/Private/Head.cpp index 1366bbf88..3697e77e0 100644 --- a/Jusin154_Team3D/Editor/Private/Head.cpp +++ b/Jusin154_Team3D/Editor/Private/Head.cpp @@ -65,10 +65,7 @@ HRESULT CHead::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/HpBarBG.cpp b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp new file mode 100644 index 000000000..469872bfb --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/HpBarBG.cpp @@ -0,0 +1,289 @@ +#include "pch.h" +#include "HpBarBG.h" +#include "GameInstance.h" + +CHpBarBG::CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CHpBarBG::CHpBarBG(const CHpBarBG& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CHpBarBG::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CHpBarBG::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 600.f; + Desc.fY = 180.f; + Desc.fSizeX = 144.f; + Desc.fSizeY = 24.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 1.f; + m_vNine_Slice = _float4(27.f, 125.f, m_fSizeY * 0.5f, m_fSizeY * 0.5f); + m_fMaxHp = 20.f; + m_fCurrentHp = m_fMaxHp; + m_fMoveSpeed = 5.f; + m_fHpBG = _float2(0, m_fSizeX); + SizeUpX(210.f); + return S_OK; +} + +void CHpBarBG::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CHpBarBG::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + if (m_fCurrentHp < 0.f) + m_fCurrentHp = 0.f; + if (m_fDamage <= 0.f) + m_fDamage = 0.f; + m_fTargetHp = m_fMaxHp - m_fDamage; + + if (m_fTargetHp > m_fCurrentHp) + Heal(fTimeDelta); + else if(m_fTargetHp < m_fCurrentHp) + Hit(fTimeDelta); + m_fHpBar = m_fCurrentHp / m_fMaxHp; + + m_fTime += fTimeDelta * m_fTimeMult; + + __super::Update(fTimeDelta); +} + +void CHpBarBG::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CHpBarBG::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::HPBAR)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CHpBarBG::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +void CHpBarBG::Lerp_PosX(_float X) +{ + m_fDamage += X; +} + +void CHpBarBG::Heal(_float fTimeDelta) +{ + m_fCurrentHp = CMyTools::Lerp_f1D(m_fTargetHp, m_fCurrentHp, fTimeDelta * m_fMoveSpeed); +} + +void CHpBarBG::Hit(_float fTimeDelta) +{ + m_fCurrentHp = CMyTools::Lerp_f1D(m_fCurrentHp, m_fTargetHp, fTimeDelta * m_fMoveSpeed); +} + +void CHpBarBG::SizeUpX(_float fSizeX) +{ + m_fSizeX = fSizeX; + m_fX -= (fSizeX - m_vScale.x) * 0.5f; +} + +HRESULT CHpBarBG::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fNine_Slice", &m_vNine_Slice, sizeof(_float4)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOrigin_Size", &m_fOrigin_Size, sizeof(_float2)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fHp", &m_fHpBar, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fHpBG", &m_fHpBG, sizeof(_float2)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CHpBarBG::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_HpBarBG"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_HealthMeterFill"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + return S_OK; +} + +CHpBarBG* CHpBarBG::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CHpBarBG* pInstance = new CHpBarBG(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CHpBarBG"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CHpBarBG::Clone(void* pArg, CGameObject* pOwner) +{ + CHpBarBG* pInstance = new CHpBarBG(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSpell_Image"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CHpBarBG::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pDiffuse_TextureCom1); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CHpBarBG::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp index 1031a292b..b57ac7eab 100644 --- a/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp +++ b/Jusin154_Team3D/Editor/Private/IMGUIUI.cpp @@ -316,8 +316,22 @@ void CIMGUIUI::Update(_float fTimeDelta) { static_cast(m_pElementObject)->SizeUpdate(m_fSize.x, m_fSize.y); } + if (GUI::SliderFloat("X##Sizex", &m_fSize.x, 1.f, 1920.f)) + { + static_cast(m_pElementObject)->SizeUpX(m_fSize.x); + } - if (GUI::SliderFloat("Size", &m_fSizeXY.x, 1.f, 1980.f)) + if (GUI::SliderFloat("Y##Sizey", &m_fSize.y, 1.f, 1080.f)) + { + static_cast(m_pElementObject)->SizeUpY(m_fSize.y); + } + + if (GUI::SliderFloat("Size", &m_fSize.x, 1.f, 1980.f)) + { + m_fSize.y = m_fSize.x; + static_cast(m_pElementObject)->SizeUpdate(m_fSize.x, m_fSize.y); + } + if (GUI::SliderFloat("Size_vector3", &m_fSizeXY.x, 1.f, 1980.f)) { m_fSizeXY.y = m_fSizeXY.x; static_cast(m_pElementObject)->SizeUpdate_float(m_fSizeXY); diff --git a/Jusin154_Team3D/Editor/Private/Information.cpp b/Jusin154_Team3D/Editor/Private/Information.cpp deleted file mode 100644 index 35c5c8a6e..000000000 --- a/Jusin154_Team3D/Editor/Private/Information.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include "pch.h" - -#include "Information.h" - -IMPLEMENT_SINGLETON(CInformation) - - -HRESULT CInformation::Initialize_Info(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) -{ - m_pDevice = pDevice; - m_pContext = pContext; - SAFE_ADDREF(m_pDevice); - SAFE_ADDREF(m_pContext); - - - - return S_OK; -} - -HRESULT CInformation::Release_Info() -{ - if (nullptr == s_pInstance) { - return S_OK; - } - DestroyInstance(); - - //SAFE_RELEASE(); - //SAFE_RELEASE(); - - return S_OK; -} - -_bool CInformation::strListBox(const _char* Label, _int& iCurrentIndex, vector<_string>& contents) -{ - assert(iCurrentIndex < contents.size()); - assert(iCurrentIndex >= 0); - return GUI::ListBox(Label, &iCurrentIndex, [](void* data, _int iIndex)->const _char* - { - auto vec = static_cast*>(data); - return (*vec)[iIndex].c_str(); - }, &contents, (_int)(contents.size()) - ); -} - -_bool CInformation::wstrListBox(const _char* Label, _int& iCurrentIndex, vector<_wstring>& contents) -{ - assert(iCurrentIndex < contents.size()); - assert(iCurrentIndex >= 0); - return GUI::ListBox(Label, &iCurrentIndex, [](void* data, _int iIndex)->const _char* - { - auto vec = static_cast*>(data); - return CMyTools::ToString((*vec)[iIndex]).c_str(); - }, &contents, (_int)(contents.size()) - ); -} - -void CInformation::Log_Render() -{ - GUI::Begin("Log"); - GUI::Text(m_strLog.c_str()); - GUI::End(); -} - -void CInformation::Log_Push(const _char* pContents) -{ - m_strLog.append(_string("\n") + pContents); -} - -void CInformation::Log_Clear() -{ - m_strLog.clear(); -} - -CInformation::CInformation() -{ -} - -void CInformation::Free() -{ - __super::Free(); - - - - SAFE_RELEASE(m_pDevice); - SAFE_RELEASE(m_pContext); -} diff --git a/Jusin154_Team3D/Editor/Private/InstancedProp.cpp b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp new file mode 100644 index 000000000..978ad9d2c --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/InstancedProp.cpp @@ -0,0 +1,300 @@ +#include "pch.h" +#include "InstancedProp.h" +#include "VIBuffer_Model_Instance.h" + +CInstancedProp::CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CGameObject(pDevice, pContext) +{ +} + +CInstancedProp::CInstancedProp(const CInstancedProp& rhs) + :CGameObject(rhs) +{ +} + +void CInstancedProp::Priority_Update(_float fTimeDelta) +{ +} + +void CInstancedProp::Update(_float fTimeDelta) +{ + if(m_bEditMode) + { + if (m_pGameInstance->Mouse_Down(DIM_MBUTTON)) + { + m_pVIBufferInstanceCom->Add_Instance(m_pTransformCom->Get_XMWorldMatrix()); + _float4x4 WorldMatrix = {}; + XMStoreFloat4x4(&WorldMatrix, m_pTransformCom->Get_XMWorldMatrix()); + m_WorldMatrices.push_back(WorldMatrix); + m_pVIBufferInstanceCom->Update_Instance(); + m_vRotation.y = m_pGameInstance->Random_Float(0.f, 360.f); + + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + memcpy(&m_vPosition, &vPosition, sizeof(_float3)); + } + } +#ifdef _DEBUG + Describe_Entity(); +#endif + } +} + +void CInstancedProp::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); +} + +HRESULT CInstancedProp::Render() +{ + if(FAILED(Bind_ShaderResources())) + return E_FAIL; + + _uint iNumMesh = m_pVIBufferInstanceCom->Get_NumMesh(); + + for (_uint i = 0; i < iNumMesh; i++) + { + if(FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i))) + return E_FAIL; + + if (FAILED(m_pShaderCom->Begin(0))) + return E_FAIL; + + m_pVIBufferInstanceCom->Render(i); + } + + return S_OK; +} + +HRESULT CInstancedProp::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CInstancedProp::Initialize(void* pArg) +{ + INSTANCE_PROP_DESC* pDesc = static_cast(pArg); + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + m_bEditMode = pDesc->bEditMode; + m_strPrototypeTag = pDesc->strPrototypeTag; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + m_vPosition = _float4(0.f, 0.f, 0.f, 1.f); + m_vRotation = _float3(0.f, 0.f, 0.f); + m_vScale = _float3(1.f, 1.f, 1.f); + + XMStoreFloat4x4(&m_WorldMatrixIdentity, XMMatrixIdentity()); + + if(!m_bEditMode) + Load_InstancedProp(pDesc->strInstanceDataPath.c_str()); + + return S_OK; +} + +HRESULT CInstancedProp::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) + return E_FAIL; + + /* Com_VIBuffer_Instance_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strPrototypeTag, + reinterpret_cast(&m_pVIBufferInstanceCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_INSTANCE_PROP_MODEL, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CInstancedProp::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", &m_WorldMatrixIdentity))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + +void CInstancedProp::Add_WorldMatrix() +{ + _float4x4 WorldMatrix = {}; + XMStoreFloat4x4(&WorldMatrix, XMMatrixIdentity()); + + m_WorldMatrices.push_back(WorldMatrix); +} + +void CInstancedProp::Load_InstancedProp(const _char* pFilePath) +{ + ifstream FileIn(pFilePath, ios::binary); + + if (!FileIn.is_open()) + { + MSG_BOX("Failed to Load InstancedProp File"); + return; + } + + m_WorldMatrices.clear(); + + _uint iNumWorldMatrix = 0; + + FileIn.read(reinterpret_cast(&iNumWorldMatrix), sizeof(_uint)); + m_WorldMatrices.reserve(iNumWorldMatrix); + + for (_uint i = 0; i < iNumWorldMatrix; ++i) + { + _float4x4 WorldMatrix = {}; + + FileIn.read(reinterpret_cast(&WorldMatrix), sizeof(_float4x4)); + + m_WorldMatrices.push_back(WorldMatrix); + } + FileIn.close(); + + if (FAILED(m_pVIBufferInstanceCom->Load_WorldData(m_WorldMatrices))) + { + } + + return; +} + +#ifdef _DEBUG +void CInstancedProp::Save_InstancedProp(const _char* pFilePath) +{ + ofstream FileOut(pFilePath, ios::binary); + + if (!FileOut.is_open()) + { + MSG_BOX("Failed to Save InstancedProp File"); + return; + } + else + MSG_BOX("Successed to Save InstancedProp File"); + + _uint iNumWorldMatrix = static_cast<_uint>(m_WorldMatrices.size()); + + FileOut.write(reinterpret_cast(&iNumWorldMatrix), sizeof(_uint)); + + for (_uint i = 0; i < iNumWorldMatrix; ++i) + { + FileOut.write(reinterpret_cast(&m_WorldMatrices[i]), sizeof(_float4x4)); + } + + FileOut.close(); + + return; +} +#endif // _DEBUG + +CInstancedProp* CInstancedProp::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CInstancedProp* pInstance = new CInstancedProp(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CInstancedProp"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CInstancedProp::Clone(void* pArg, CGameObject* pOwner) +{ + CInstancedProp* pInstance = new CInstancedProp(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CInstancedProp"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CInstancedProp::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferInstanceCom); +} +void CInstancedProp::Describe_Entity() +{ + GUI::Begin("Instanced Prop"); + +#ifdef _DEBUG + m_pVIBufferInstanceCom->Describe_Entity(); +#endif // _DEBUG + GUI::Text("----- Transfrom ----"); + GUI::InputFloat("X##Position", &m_vPosition.x, 0.1f, 1.f); + GUI::InputFloat("Y##Position", &m_vPosition.y, 0.1f, 1.f); + GUI::InputFloat("Z##Position", &m_vPosition.z, 0.1f, 1.f); + + if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT)) + { + _float3 vPosition = {}; + if (m_pGameInstance->isPicking(&vPosition)) + { + memcpy(&m_vPosition, &vPosition, sizeof(_float3)); + } + } + + GUI::Text("----- Rotation ----"); + GUI::InputFloat("X##Rotation", &m_vRotation.x, 10.f, 45.f); + GUI::InputFloat("Y##Rotation", &m_vRotation.y, 10.f, 45.f); + GUI::InputFloat("Z##Rotation", &m_vRotation.z, 10.f, 45.f); + + GUI::Text("----- Scale ----"); + GUI::InputFloat("X##Scale", &m_vScale.x, 0.1f, 1.f); + GUI::InputFloat("Y##Scale", &m_vScale.y, 0.1f, 1.f); + GUI::InputFloat("Z##Scale", &m_vScale.z, 0.1f, 1.f); + + m_vScale.x = max(0.01f, m_vScale.x); + m_vScale.y = max(0.01f, m_vScale.y); + m_vScale.z = max(0.01f, m_vScale.z); + + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition)); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + + m_pVIBufferInstanceCom->Fix_Instance(m_pTransformCom->Get_XMWorldMatrix()); + if (GUI::Button("Delete", ImVec2(150.f, 30.f))) + { + m_pVIBufferInstanceCom->Delete_Instance(); + } + + GUI::InputText("File Name", m_szFileName, sizeof(m_szFileName)); + + if (GUI::Button("Save Instanced Prop", ImVec2(150.f, 30.f))) + { + Save_InstancedProp(("../Bin/Resources/Data/Map/Instance/" + string(m_szFileName)+ ".bin").c_str()); + } + + if (GUI::Button("Load Instanced Prop", ImVec2(150.f, 30.f))) + { + Load_InstancedProp(("../Bin/Resources/Data/Map/Instance/" + string(m_szFileName) + ".bin").c_str()); + } + + GUI::End(); +} + diff --git a/Jusin154_Team3D/Editor/Private/Land.cpp b/Jusin154_Team3D/Editor/Private/Land.cpp index 1d2120d75..67cd59a80 100644 --- a/Jusin154_Team3D/Editor/Private/Land.cpp +++ b/Jusin154_Team3D/Editor/Private/Land.cpp @@ -26,12 +26,25 @@ void CLand::Update(_float fTimeDelta) //m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&m_vPosition)); //GUI::End(); + + _float3 vPos = {}; + if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) + { + if (m_pGameInstance->isPicking(&vPos)) + { + + } + } + + GUI::Begin("TEEEEE"); + GUI::InputFloat3("Pos", (_float*)(&vPos)); + GUI::End(); } void CLand::Late_Update(_float fTimeDelta) { _float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]); - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + //m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); } HRESULT CLand::Render() @@ -44,13 +57,9 @@ HRESULT CLand::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) { return E_FAIL; } @@ -76,7 +85,9 @@ HRESULT CLand::Initialize(void* pArg) if (FAILED(Ready_Components(pArg))) return E_FAIL; - m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(66.f, 18.f, 96.f, 1.f)); + //m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(66.f, 18.f, 96.f, 1.f)); + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f,0.f, 1.f)); + return S_OK; } @@ -105,9 +116,11 @@ HRESULT CLand::Bind_ShaderResources() if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp new file mode 100644 index 000000000..3e404ddd6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Level_BloomViewer.cpp @@ -0,0 +1,163 @@ +#include "pch.h" +#include "Level_BloomViewer.h" +#include "GameInstance.h" +#include "Camera_Debug.h" +#include "Dummy_Cube.h" +#include "Dummy_Globe.h" +#include "MainLight.h" +#include "Dummy_Plane.h" + +CLevel_BloomViewer::CLevel_BloomViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) + : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } +{ + +} + +HRESULT CLevel_BloomViewer::Initialize() +{ + if (FAILED(Ready_Layer_Light())) { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Camera(TEXT("Layer_Camera")))) + { + return E_FAIL; + } + + if (FAILED(Ready_Layer_Effect(TEXT("Layer_Effect")))) + { + return E_FAIL; + } + + { + CDummy_Globe::GLOBE_DESC Desc{}; + Desc.wstrKey = TEXT("Prototype_GameObject_SM_DragonGlobe"); + Desc.vPos = { 0.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + + { + CDummy_Globe::GLOBE_DESC Desc{}; + Desc.wstrKey = TEXT("Desc_Globe"); + Desc.vPos = { 3.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + + { + CDummy_Globe::GLOBE_DESC Desc{}; + Desc.wstrKey = TEXT("Desc_Globe2"); + Desc.vPos = { 6.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + + { + CDummy_Globe::GLOBE_DESC Desc{}; + Desc.wstrKey = TEXT("Desc_Globe2"); + Desc.vPos = { 6.f, 0.f, 0.f }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))){ + // return E_FAIL; + //} + + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))){ + // return E_FAIL; + //} + + return S_OK; +} + +void CLevel_BloomViewer::Update(_float fTimeDelta) +{ + +} + +HRESULT CLevel_BloomViewer::Render() +{ + SetWindowText(g_hWnd, TEXT("이펙트 레벨입니다")); + GUI::ShowDemoWindow(); + return S_OK; +} + + + +HRESULT CLevel_BloomViewer::Ready_Layer_Camera(const _wstring& strLayerTag) +{ + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; + + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { + return E_FAIL; + } + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { + return E_FAIL; + } + return S_OK; +} + +HRESULT CLevel_BloomViewer::Ready_Layer_Light() +{ + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_LIGHT))){ + return E_FAIL; + } + + return S_OK; +} + +HRESULT CLevel_BloomViewer::Ready_Layer_UI(const _wstring& strLayerTag) +{ + return S_OK; +} + + +HRESULT CLevel_BloomViewer::Ready_Layer_Effect(const _wstring& strLayerTag) +{ + + return S_OK; +} + + + +CLevel_BloomViewer* CLevel_BloomViewer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) +{ + CLevel_BloomViewer* pInstance = new CLevel_BloomViewer(pDevice, pContext, eLevelID); + + if (FAILED(pInstance->Initialize())) + { + MSG_BOX("Failed to Created : CLevel_BloomViewer"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + + +void CLevel_BloomViewer::Free() +{ + __super::Free(); + + +} diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 69dfa26cb..717186f77 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -2,12 +2,18 @@ #include "Level_EffectViewer.h" #include "GameInstance.h" #include "Level_Loading.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "TestEffect.h" #include "Effect_Editor.h" #include "Dummy_Cube.h" #include "MainLight.h" #include "Dummy_Plane.h" +#include "DummySkyBox.h" +#include "Dummy_PhysXBox.h" +#include "Dummy_PhysXPlayable.h" +#include "Dummy_PhysXMonster.h" +#include "Dummy_PhysXWall.h" +#include "Player.h" CLevel_EffectViewer::CLevel_EffectViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) : CLevel{ pDevice, pContext, ENUM_CLASS(eLevelID) } @@ -21,6 +27,10 @@ HRESULT CLevel_EffectViewer::Initialize() return E_FAIL; } + if (FAILED(Ready_Layer_PhysX(TEXT("Layer_PhysX")))) + { + return E_FAIL; + } if (FAILED(Ready_Layer_Camera(TEXT("Layer_Camera")))) { return E_FAIL; @@ -34,10 +44,13 @@ HRESULT CLevel_EffectViewer::Initialize() if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Layer_Editor")))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))) + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Sky")))) return E_FAIL; @@ -60,21 +73,28 @@ HRESULT CLevel_EffectViewer::Render() HRESULT CLevel_EffectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) { - CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; - CameraDesc.fFovy = XMConvertToRadians(60.0f); - CameraDesc.fNear = 0.1f; - CameraDesc.fFar = 500.f; - CameraDesc.vEye = _float3(0.f, 10.f, -10.f); - CameraDesc.vAt = _float3(0.f, 0.f, 0.f); - CameraDesc.fSpeedPerSec = 5.f; - CameraDesc.pCameraKey = TEXT("Debug_Camera"); - CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); - CameraDesc.fMouseSensor = 0.1f; + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, - strLayerTag, &CameraDesc))) + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { return E_FAIL; - + } + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { + return E_FAIL; + } return S_OK; } @@ -99,6 +119,42 @@ HRESULT CLevel_EffectViewer::Ready_Layer_Effect(const _wstring& strLayerTag) return S_OK; } +HRESULT CLevel_EffectViewer::Ready_Layer_PhysX(const _wstring& strLayerTag) +{ + for (int i = 0; i < 10; ++i) { + CDummy_PhysXBox::PHYSXDUMMY_DESC Desc{}; + Desc.vPos = { m_pGameInstance->Random_Float(0.f, 30.f), m_pGameInstance->Random_Float(3.f, 33.f), m_pGameInstance->Random_Float(0.f, 30.f) }; + Desc.vRotRPY = { m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI), m_pGameInstance->Random_Float(0.f, XM_2PI) }; + Desc.iSubKind = 0; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + + { + CDummy_PhysXWall::PHYSXDUMMY_DESC Desc{}; + Desc.vPos = { -15.f, 3.f, 15.f }; + Desc.vRotRPY = { 0.f, m_pGameInstance->Random_Float(0.f, XM_2PI), 0.f }; + Desc.iSubKind = 23; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE, &Desc))) { + return E_FAIL; + } + } + + { + CDummy_PhysXMonster::PHYSXDUMMY_DESC Desc{}; + Desc.vPos = { 0.f, 150.f, 5.f }; + Desc.vRotRPY = { 12.f, 0.f, 0.f }; + Desc.iSubKind = 10; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER, &Desc))) { + return E_FAIL; + } + } + return S_OK; +} + CLevel_EffectViewer* CLevel_EffectViewer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) diff --git a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp index f8f1dca2e..9ef8407d7 100644 --- a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Level_Loading.h" #include "Loader.h" #include "GameInstance.h" @@ -8,6 +8,7 @@ #include "Level_ObjectViewer.h" #include "Level_EffectViewer.h" #include "Level_MapViewer.h" +#include "Level_BloomViewer.h" #include "Level_PhysXLab.h" @@ -62,9 +63,9 @@ void CLevel_Loading::Update(_float fTimeDelta) case LEVEL::PHYSX: pNewLevel = CLevel_PhysXLab::Create(m_pDevice, m_pContext, m_eNextLevelID); break; - //case LEVEL::PARTICLE: - // pNewLevel = CLevel_ParticleViewer::Create(m_pDevice, m_pContext, m_eNextLevelID); - // break; + case LEVEL::BLOOM: + pNewLevel = CLevel_BloomViewer::Create(m_pDevice, m_pContext, m_eNextLevelID); + break; } if (FAILED(m_pGameInstance->Change_Level(pNewLevel))) diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp index 7b3736fd5..2621663c9 100644 --- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Level_Logo.h" #include "GameInstance.h" #include "Level_Loading.h" @@ -42,10 +42,10 @@ void CLevel_Logo::Update(_float fTimeDelta) if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::PHYSX)))) return; } - //else if (GUI::Button("Particle Editor", { 100, 100 })) { - // if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::PARTICLE)))) - // return; - //} + else if (GUI::SameLine(), GUI::Button("Bloom Editor", { 100, 100 })) { + if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::BLOOM)))) + return; + } else if (GUI::Button("UI Editor", { 100, 100 })) { if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::UI)))) return; @@ -55,7 +55,7 @@ void CLevel_Logo::Update(_float fTimeDelta) HRESULT CLevel_Logo::Render() { - SetWindowText(g_hWnd, TEXT("·ΰí·¹º§ÀԴϴÙ")); + SetWindowText(g_hWnd, TEXT("로고레벨입니다")); GUI::ShowDemoWindow(); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp index af5364efb..884095fd0 100644 --- a/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_MapViewer.cpp @@ -3,13 +3,14 @@ #include "GameInstance.h" #include "Level_Loading.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Terrain.h" #include "MapObject_Manager.h" #include "BuildingContainer.h" #include "DummySkyBox.h" #include "MainLight.h" #include "Land.h" +#include "InstancedProp.h" #include "Player.h" CLevel_MapViewer::CLevel_MapViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID) @@ -46,6 +47,10 @@ HRESULT CLevel_MapViewer::Initialize() return E_FAIL; } + if (FAILED(Ready_Layer_InstanceProp(TEXT("Layer_InstanceProp")))) { + return E_FAIL; + } + if (FAILED(Ready_Layer_BuildingContainer(TEXT("Layer_Building")))) { return E_FAIL; } @@ -68,22 +73,28 @@ HRESULT CLevel_MapViewer::Ready_Layer_Light() HRESULT CLevel_MapViewer::Ready_Layer_Camera(const _wstring& strLayerTag) { - CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; - CameraDesc.fFovy = XMConvertToRadians(60.0f); - CameraDesc.fNear = 0.1f; - CameraDesc.fFar = 500.f; - CameraDesc.vEye = _float3(0.f, 10.f, -10.f); - CameraDesc.vAt = _float3(0.f, 0.f, 0.f); - CameraDesc.fSpeedPerSec = 2.f; - CameraDesc.pCameraKey = TEXT("Debug_Camera"); - CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); - CameraDesc.fMouseSensor = 0.1f; + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, - strLayerTag, &CameraDesc))) + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { return E_FAIL; - - + } + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { + return E_FAIL; + } return S_OK; } @@ -106,6 +117,20 @@ HRESULT CLevel_MapViewer::Ready_Layer_Terrain(const _wstring& strLayerTag) return S_OK; } +HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag) +{ + CInstancedProp::INSTANCE_PROP_DESC Desc = {}; + Desc.bEditMode = false; + Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"; + Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/OakTree_MedA.bin"; + + /* Oak_Tree */ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc))) + return E_FAIL; + + return S_OK; +} + HRESULT CLevel_MapViewer::Ready_Layer_BuildingContainer(const _wstring& strLayerTag) { //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) @@ -119,6 +144,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_MapObjectManager(const _wstring& strLayerT if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) return E_FAIL; + + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 2ae091489..4ec466813 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -7,7 +7,7 @@ #include "Head.h" #include "Hair.h" #include "Dummy_Cube.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" #include "GameObject.h" #include "DummyObject.h" @@ -57,8 +57,6 @@ void CLevel_ObjectViewer::Update(_float fTimeDelta) Parts_Object_Setting(); Find_Anim(); - - m_Test->Describe_Entity(); } HRESULT CLevel_ObjectViewer::Render() @@ -658,20 +656,28 @@ void CLevel_ObjectViewer::Find_Anim() HRESULT CLevel_ObjectViewer::Ready_Layer_Camera(const _wstring& strLayerTag) { - CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; - CameraDesc.fFovy = XMConvertToRadians(60.0f); - CameraDesc.fNear = 0.1f; - CameraDesc.fFar = 500.f; - CameraDesc.vEye = _float3(0.f, 5.f, -5.f); - CameraDesc.vAt = _float3(0.f, 0.f, 0.f); - CameraDesc.fSpeedPerSec = 5.f; - CameraDesc.pCameraKey = TEXT("Debug_Camera"); - CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); - CameraDesc.fMouseSensor = 0.1f; + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, - strLayerTag, &CameraDesc))) + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { return E_FAIL; + } + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { + return E_FAIL; + } return S_OK; } @@ -691,20 +697,22 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag) HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) { + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test))) + return E_FAIL; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + return E_FAIL;*/ + + + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_Test))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag,nullptr,nullptr, &m_Test))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) - return E_FAIL; + /*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) + return E_FAIL;*/ return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp index c779726cf..26291d98c 100644 --- a/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_PhysXLab.cpp @@ -3,7 +3,7 @@ #include "GameInstance.h" #include "Level_Loading.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Terrain.h" #include "Dummy_PhysXBox.h" #include "Dummy_PhysXPlayable.h" @@ -45,10 +45,6 @@ HRESULT CLevel_PhysXLab::Initialize() return E_FAIL; } - if (FAILED(Ready_Layer_Terrain(TEXT("Layer_Terrain")))) { - return E_FAIL; - } - if (FAILED(Ready_Layer_PhysXObjects(TEXT("Layer_PhysXObject")))) { return E_FAIL; } @@ -66,34 +62,28 @@ HRESULT CLevel_PhysXLab::Ready_Layer_Light() HRESULT CLevel_PhysXLab::Ready_Layer_Camera(const _wstring& strLayerTag) { - CDebugCamera::CAMERA_DEBUG_DESC CameraDesc{}; - CameraDesc.fFovy = XMConvertToRadians(60.0f); - CameraDesc.fNear = 0.1f; - CameraDesc.fFar = 100.f; - CameraDesc.vEye = _float3(0.f, 10.f, -10.f); - CameraDesc.vAt = _float3(0.f, 0.f, 0.f); - CameraDesc.fSpeedPerSec = 2.f; - CameraDesc.pCameraKey = TEXT("Debug_Camera"); - CameraDesc.fRotationPerSec = XMConvertToRadians(90.0f); - CameraDesc.fMouseSensor = 0.1f; + CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{}; + Camera_Desc.fFovy = XMConvertToRadians(60.0f); + Camera_Desc.fNear = 0.1f; + Camera_Desc.fFar = 200.f; + Camera_Desc.vEye = _float3(0.f, 10.f, -10.f); + Camera_Desc.vAt = _float3(0.f, 0.f, 0.f); + Camera_Desc.fSpeedPerSec = 5.f; + Camera_Desc.pCameraKey = CAMERA_DEBUG; + Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f); + Camera_Desc.fMouseSensor = 0.1f; + Camera_Desc.iPriority = 70; + Camera_Desc.pFollowTarget = { nullptr }; + Camera_Desc.pLookTarget = { nullptr }; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, - strLayerTag, &CameraDesc))) - return E_FAIL; - - return S_OK; -} - -HRESULT CLevel_PhysXLab::Ready_Layer_Terrain(const _wstring& strLayerTag) -{ - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))){ + CCamera_Debug* pCamera = { nullptr }; + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MAPOBJECTMANAGER))){ + m_pGameInstance->Add_Camera(g_iStaticLevel, pCamera, CAMERA_DEBUG); + if (FAILED(m_pGameInstance->Bind_Camera(g_iStaticLevel, CAMERA_DEBUG, true))) { return E_FAIL; } - return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index ed87c6717..e27215c09 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -4,7 +4,7 @@ #pragma region DEFAULT_HEADER -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "DummyRect.h" #include "MainApp.h" #include "Dummy_Cube.h" @@ -24,6 +24,13 @@ #include "Goblin.h" #include "Broom.h" #include +#include "Camera_Gaze.h" +#include "CamPosition_Socket.h" +#include "CamPosition_Target.h" +#include "CamPosition_Shoulder.h" +#include "CamPosition_Arm.h" +#include "Wand.h" + #pragma endregion @@ -42,6 +49,7 @@ #include "Active_Icon.h" #include "MiniMap_Panel.h" +#include "NoMountIcon.h" #include "Loading_Panel.h" #include "LoadingWidget.h" @@ -51,6 +59,12 @@ #include "Spell_Slot.h" #include "Spell_Image.h" #include "Spell_Overlay.h" +#include "Slot_Number.h" +#include "HpBarBG.h" +#include "Potion.h" +#include "Magic_Meter.h" +#include "Magic_Icon.h" +#include "Spell_UI.h" #include "IMGUIUI.h" @@ -67,6 +81,9 @@ #include "MapElement_Static.h" #include "Land.h" #include "Collider.h" +#include "VIBuffer_Model_Instance.h" +#include "Instance_Model.h" +#include "InstancedProp.h" #pragma endregion @@ -76,6 +93,10 @@ #include "EditEffect.h" #include "Effect_Editor.h" #include "Dummy_Plane.h" +#include "TrailObject.h" +#include "NomalJap.h" +#include "Bombard.h" +#include "Decendo.h" #pragma endregion @@ -88,12 +109,19 @@ #include "Dummy_PhysXPlatform.h" #include "Dummy_PhysXFreeDoor.h" #include "Dummy_PhysXWall.h" +#include "Dummy_PhysXEffectHitBox.h" //#include "Dummy_PhysXDoorFrame.h" //#include "Dummy_PhysXFixedDoor.h" //#include "Dummy_PhysXDoorSet.h" #pragma endregion +#pragma region BLOOM_HEADER + +#include "Dummy_Globe.h" + +#pragma endregion + CLoader::CLoader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : m_pDevice{ pDevice } , m_pContext{ pContext } @@ -120,11 +148,7 @@ HRESULT CLoader::Initialize(LEVEL eNextLevelID) { m_eNextLevelID = eNextLevelID; - InitializeCriticalSection(&m_CriticalSection); - - m_hThread = (HANDLE)_beginthreadex(nullptr, 0, LoadingMain, this, 0, nullptr); - if (0 == m_hThread) - return E_FAIL; + m_pGameInstance->EnqueueJob(&LoadingMain, this); return S_OK; } @@ -136,7 +160,6 @@ HRESULT CLoader::Loading() return E_FAIL; } - EnterCriticalSection(&m_CriticalSection); HRESULT hr = {}; @@ -163,15 +186,16 @@ HRESULT CLoader::Loading() case LEVEL::PHYSX: hr = Loading_For_PhysXLevel(); break; - //case LEVEL::PARTICLE: - // hr = Loading_For_Particle(); - // break; + case LEVEL::BLOOM: + hr = Loading_For_Bloom(); + break; default: assert(false); break; } - LeaveCriticalSection(&m_CriticalSection); + + CoUninitialize(); if (FAILED(hr)) return E_FAIL; @@ -242,7 +266,7 @@ HRESULT CLoader::Loading_For_Logo() return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDebugCamera::Create(m_pDevice, m_pContext)))) { + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Debug::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -326,7 +350,11 @@ HRESULT CLoader::Loading_For_UI() if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("ActiveMission_Icon"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Mission/ActiveMission_Icon_%d.png"), 2)))) { return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), TEXT("Megic_Metar"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Action/Megic_Meter%d.png"), 3)))) { + return E_FAIL; } @@ -337,6 +365,21 @@ HRESULT CLoader::Loading_For_UI() _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + Asset_FileLoad("../Bin/Resources/Textures/HUD", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) + { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName, CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { return E_FAIL; @@ -385,6 +428,22 @@ HRESULT CLoader::Loading_For_UI() _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Potions", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) + { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::UI), wstrFileName, CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { return E_FAIL; @@ -396,7 +455,41 @@ HRESULT CLoader::Loading_For_UI() m_strMessage = TEXT("Model Loading.."); + CVIBuffer_UI_Instance::UI_INSTANCE_DESC SpellSlotUIDesc{}; + SpellSlotUIDesc.iNum = 4; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"), + CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SpellSlotUIDesc)))) { + return E_FAIL; + } + + CVIBuffer_UI_Instance::UI_INSTANCE_DESC SlotNumberUIDesc{}; + + SlotNumberUIDesc.iNum = 4; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"), + CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &SlotNumberUIDesc)))) { + return E_FAIL; + } + + CVIBuffer_UI_Instance::UI_INSTANCE_DESC Magic_MeterDesc{}; + + Magic_MeterDesc.iNum = 5; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Magic_Meter_UI_Instance"), + CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Magic_MeterDesc)))) { + return E_FAIL; + } + + CVIBuffer_UI_Instance::UI_INSTANCE_DESC Spell_Slot_PreviewDesc{}; + + Spell_Slot_PreviewDesc.iNum = 5; + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Spell_Slot_Previe_UI_Instance"), + CVIBuffer_UI_Instance::Create(m_pDevice, m_pContext, &Spell_Slot_PreviewDesc)))) { + return E_FAIL; + } m_strMessage = TEXT("Shader Loading.."); @@ -406,6 +499,12 @@ HRESULT CLoader::Loading_For_UI() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_UIINSTANCE, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_UI_Instance.hlsl"), + VTX_POSTEX_INSTANCE_UI::Elements, VTX_POSTEX_INSTANCE_UI::iNumElements)))) { + return E_FAIL; + } + m_strMessage = TEXT("Prototype Loading.."); @@ -465,11 +564,14 @@ HRESULT CLoader::Loading_For_UI() { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMiniMap_TrimBorder::Create(m_pDevice, m_pContext)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CNoMountIcon::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CAction_Panel::Create(m_pDevice, m_pContext)))) { @@ -488,6 +590,30 @@ HRESULT CLoader::Loading_For_UI() { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSlot_Number::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHpBarBG::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPotion::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMagic_Meter::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMagic_Icon::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpell_UI::Create(m_pDevice, m_pContext)))) + { + return E_FAIL; + } if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext)))) { @@ -505,6 +631,55 @@ HRESULT CLoader::Loading_For_UI() } HRESULT CLoader::Loading_For_Effect() { + + m_strMessage = TEXT("PhysX Meshes Loading.."); + { // Dumping Box + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{}; + { + Desc.eType = ACTOR::BOX; + Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ }; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + Desc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + Desc.fContactOffset = { 0.05f }; + Desc.vhalfGeometryInfo = { 1.f, 1.f, 1.f }; + Desc.fDensity = 10.f; + Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + Desc.eLockFlag = {}; + Desc.vAutoDamping = { }; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + } { // Heavy Wall + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{}; + { + Desc.eType = ACTOR::BOX; + Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ }; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + Desc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + Desc.fContactOffset = { 0.05f }; + Desc.vhalfGeometryInfo = { 2.5f, 4.5f, 3.5f }; + Desc.fDensity = 10.f; + Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + Desc.eLockFlag = {}; + Desc.vAutoDamping = { 100.f, 100.f }; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + } + + { + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) { + return E_FAIL; + } m_strMessage = TEXT("Texture Loading.."); @@ -513,9 +688,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; } @@ -570,6 +744,11 @@ HRESULT CLoader::Loading_For_Effect() m_strMessage = TEXT("Model Loading.."); + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity())))) + return E_FAIL; + Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) { if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, @@ -609,6 +788,33 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; + vector*>> futures = {}; + + futures.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(), + TEXT("Prototype_Component_SkyboxModel") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Npc_Model") + )); + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f)* XMMatrixIdentity(), + TEXT("Prototype_Component_Wand_Model") + )); + + for (auto& job : futures) { + pair<_wstring, CModel*>* pResult = job.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) { + assert(false); + return E_FAIL; + } + Safe_Delete(pResult); + } + + m_strMessage = TEXT("Shader Loading.."); @@ -623,10 +829,24 @@ HRESULT CLoader::Loading_For_Effect() m_strMessage = TEXT("Prototype Loading.."); - if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDebugCamera::Create(m_pDevice, m_pContext)))) { + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXBox::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXEffectHitBox::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXPlayable::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXMonster::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXWall::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CEditEffect::Create(m_pDevice, m_pContext)))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CTestEffect::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -635,16 +855,67 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } - if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CEditEffect::Create(m_pDevice, m_pContext)))) { + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Plane::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CTrail::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CTrailObject::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CNomalJap::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_DummySkyBox */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext)))) return E_FAIL; - } if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Cube::Create(m_pDevice, m_pContext)))) return E_FAIL; - if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDummy_Plane::Create(m_pDevice, m_pContext)))) + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CBombard::Create(m_pDevice, m_pContext)))) return E_FAIL; + if (FAILED(m_pGameInstance->Add_Prototype(ENUM_CLASS(LEVEL::EFFECT), CDecendo::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + + /* For.Prototype_GameObject_Wand */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_Component_FSM */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Arm */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Arm::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Camera_Gaze */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Player */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Socket::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Shoulder */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Shoulder::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Target */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Target::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Player */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CPlayer::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + + + m_strMessage = TEXT("Loading Success!"); @@ -850,15 +1121,6 @@ HRESULT CLoader::Loading_For_PhysXLevel() m_strMessage = TEXT("Prototype Loading.."); - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), - CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100)))) { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_PhysXBox::Create(m_pDevice, m_pContext)))) { return E_FAIL; } @@ -904,6 +1166,62 @@ HRESULT CLoader::Loading_For_PhysXLevel() return S_OK; } +HRESULT CLoader::Loading_For_Bloom() +{ + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Box"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(10.f, 10.f, 10.f) * XMMatrixIdentity())))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Model_DummyPlane"), + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Effect/DummyPlane/DummyPlane.fbx", XMMatrixTranslation(0.f, -10.f, 0.f) * XMMatrixIdentity())))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe"), // RG DDS NormalMap + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Desc_Globe2"), // RGB DDS NormalMap + CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Object/DragonGlobe2/DragonGlobe.fbx", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))){ + return E_FAIL; + } + + + vector<_wstring> ModelPrototypeTags = {}; + vector ModelPrototypePath = {}; + + /* Hog_Props */ + if (FAILED(MapFolderLoad("C:\\Users\\kimnuri\\Desktop\\MeshTable\\Game\\Environment\\Hogwarts\\Meshes\\Props", + ".fbx", true, ModelPrototypeTags, ModelPrototypePath))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CHair::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Globe::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Cube::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummy_Plane::Create(m_pDevice, m_pContext)))){ + return E_FAIL; + } + + m_strMessage = TEXT("Loading Success!"); + + m_isFinished = true; + + return S_OK; +} + HRESULT CLoader::Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent) { for (const auto& file : filesystem::directory_iterator(pDirectoryPath)) @@ -983,132 +1301,254 @@ HRESULT CLoader::MapFolderLoad(const _char* pDirectoryPath, const _char* pFileEx return S_OK; } +void APIENTRY Deferred_FolderLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents) +{ + if (FAILED(CoInitializeEx(nullptr, 0))) { + return ; + } + *OutContents = new vector; + for (const auto& file : filesystem::directory_iterator(pDirectoryPath)) + { + if (file.is_directory()){ continue; } + if (strcmp(file.path().extension().string().c_str(), pFileExt)) { continue; } + + FOLDER_LOAD* pContents = new FOLDER_LOAD; + pContents->bLoadTags = bUseTag; + { // FOLDER_LOAD + _char szFilePath[MAX_PATH] = {}; + strcpy_s(szFilePath, MAX_PATH, file.path().string().c_str()); + + _wstring wstrFileName = L"Prototype_GameObject_" + file.path().stem().wstring(); + + CModel* pModel = CModel::Create(pDevice, pContext, MODEL::ENVIROMENT, szFilePath); + + _uint iNumMesh = pModel->Get_NumMeshes(); + + { + pContents->pModelTag = wstrFileName; + pContents->pathModel = file.path(); + + pContents->pLoadedModel = pModel; + + pContents->pRigidBodyTags.reserve(iNumMesh); + pContents->LoadedRigidBody.reserve(iNumMesh); + } + + CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; + for (_uint i = 0; i < iNumMesh; ++i) { + { + Desc.eType = ACTOR::TRIANGLEMESH; + Desc.ePxRigidBodyFlags = {}; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT; + Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f); + Desc.fContactOffset = 0.f; + } + pContents->pRigidBodyTags.emplace_back(CMyTools::ToWstring(pModel->Get_MeshName(i) + to_string(i)).c_str()); + pContents->LoadedRigidBody.emplace_back(CRigidBody_Static::Create(pDevice, pContext, Desc)); + } + } + (*OutContents)->emplace_back(pContents); + } + (*OutContents)->shrink_to_fit(); + + CoUninitialize(); + return; +} + +future CLoader::Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents) +{ + return m_pGameInstance->EnqueueJob(&Deferred_FolderLoad_Main, m_pDevice, m_pContext, pDirectoryPath, pFileExt, bUseTag, OutContents); +} + +pair<_wstring, CModel*>* APIENTRY Deferred_ModelLoad_Main(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const _char* pDirectoryPath, const _tchar* pPrototypeTag, _fmatrix PreTransform) +{ + if (FAILED(CoInitializeEx(nullptr, 0))) { + assert(false); + return nullptr; + } + + CModel* pModel = CModel::Create(pDevice, pContext, eType, pDirectoryPath, PreTransform); + + CoUninitialize(); + pair<_wstring, CModel*>* Out = new pair<_wstring, CModel*>(pPrototypeTag, pModel); + return Out; +} + +future*> CLoader::Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag) { + return m_pGameInstance->EnqueueJob(&Deferred_ModelLoad_Main, m_pDevice, m_pContext, eType, pDirectoryPath, pPrototypeTag, PreTransform); +} HRESULT CLoader::Loading_For_ObjectViewer() { m_strMessage = TEXT("Texture Loading.."); - m_strMessage = TEXT("Model Loading.."); - -#pragma region BODY - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DADA_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardSoldier_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardSoldier/M_DarkWizardSoldier.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardGrunt_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardGrunt/M_DarkWizardGrunt.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_DarkWizardTank_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardTank/M_DarkWizardTank.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_DarkWizardMage_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardMage/F_DarkWizardMage.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_DarkWizardSniper_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardSniper/F_DarkWizardSniper.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - -#pragma endregion - -#pragma region HEAD - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Young_M_Head_Ivory_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/Young_M_Head_Ivory.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_T_NPC_F_Head_Eye_Honey_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/T_NPC_F_Head_Eye_Honey.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Head_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/F_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Head_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/M_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - -#pragma endregion - -#pragma region HAIR - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair1_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair1/M_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair2_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair2/M_Hair2.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_M_Hair3_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair3/M_Hair3.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_F_Hair1_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/F_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; -#pragma endregion - -#pragma region MONSTER - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_TombProtector_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/TombProtector/TombProtector.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Dragon_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - -#pragma endregion - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Npc_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin",XMMatrixIdentity())))) - return E_FAIL; - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Broom_Model"), - CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity())))) - return E_FAIL; - - /* For.Prototype_Component_SkyboxModel */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_SkyboxModel"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity())))) - return E_FAIL; - - - if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Desc_Box"), - CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity())))) - return E_FAIL; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"), CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) { return E_FAIL; } + m_strMessage = TEXT("Model Loading.."); + + // Heavy Wall + CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{}; + { + Desc.eType = ACTOR::BOX; + Desc.ePxRigidBodyFlags = { /*PSX::PxRigidBodyFlag::eKINEMATIC*/ }; + Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE }; + Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT }; + Desc.vMatInfo = { 0.5f, 0.5f, 0.6f }; + Desc.fContactOffset = { 0.05f }; + Desc.vhalfGeometryInfo = { 2.5f, 4.5f, 3.5f }; + Desc.fDensity = 10.f; + Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY()); + Desc.eLockFlag = {}; + Desc.vAutoDamping = { 100.f, 100.f }; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_HEAVY_WALL"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), CCharacter_Controller::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + vector*>> futures = {}; + +#pragma region BODY + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DADA/M_DADA.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_DADA_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardSoldier/M_DarkWizardSoldier.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_DarkWizardSoldier_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardGrunt/M_DarkWizardGrunt.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_DarkWizardGrunt_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/Male/M_DarkWizardTank/M_DarkWizardTank.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_DarkWizardTank_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardMage/F_DarkWizardMage.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_DarkWizardMage_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Body/FeMale/F_DarkWizardSniper/F_DarkWizardSniper.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_DarkWizardSniper_Model") + )); + +#pragma endregion + +#pragma region HEAD + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/Young_M_Head_Ivory.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_Young_M_Head_Ivory_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/T_NPC_F_Head_Eye_Honey.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_T_NPC_F_Head_Eye_Honey_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Head/FeMale/F_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_Head_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Head/Male/M_Head.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Head_Model") + )); + +#pragma endregion + +#pragma region HAIR + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair1/M_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Hair1_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair2/M_Hair2.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Hair2_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/Male/M_Hair3/M_Hair3.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_M_Hair3_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Hair/FeMale/F_Hair1/F_Hair1.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_F_Hair1_Model") + )); + +#pragma endregion + +#pragma region MONSTER + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + TEXT("Prototype_Component_Goblin_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/TombProtector/TombProtector.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_TombProtector_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Troll/Troll.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_Troll_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_Dragon_Model") + )); + +#pragma endregion + + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin",XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(), + TEXT("Prototype_Component_Npc_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx",XMMatrixIdentity(), + TEXT("Prototype_Component_Wand_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::ANIM, "../Bin/Resources/Models/Object/Broom/Broom.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixIdentity(), + TEXT("Prototype_Component_Broom_Model") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(), + TEXT("Prototype_Component_SkyboxModel") + )); + futures.emplace_back(Deferred_ModelLoad( + MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity(), + TEXT("Desc_Box") + )); + + for (auto& job : futures) { + pair<_wstring, CModel*>* pResult = job.get(); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pResult->first, pResult->second))) { + assert(false); + return E_FAIL; + } + Safe_Delete(pResult); + } + m_strMessage = TEXT("Shader Loading.."); m_strMessage = TEXT("Prototype Loading.."); - /* For.Prototype_Component_VIBuffer_Terrain */ - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), - CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100)))) - return E_FAIL; + ///* For.Prototype_Component_VIBuffer_Terrain */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), + // CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100)))) + // return E_FAIL; /* For.Prototype_GameObject_RootModelPart */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CRootModelPart::Create(m_pDevice, m_pContext)))) @@ -1134,9 +1574,10 @@ HRESULT CLoader::Loading_For_ObjectViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext)))) return E_FAIL; - /* For.Prototype_GameObject_Terrain */ - if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) - return E_FAIL; + + ///* For.Prototype_GameObject_Terrain */ + //if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) + // return E_FAIL; /* For.Prototype_Component_FSM */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CFSM::Create(m_pDevice, m_pContext)))) @@ -1150,11 +1591,34 @@ HRESULT CLoader::Loading_For_ObjectViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CGoblin::Create(m_pDevice, m_pContext)))) return E_FAIL; - /* For.Prototype_GameObject_Broom */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CBroom::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_Camera_Gaze */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamera_Gaze::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Player */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Socket::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Shoulder */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Shoulder::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Target */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Target::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_CamPosition_Arm */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_Arm::Create(m_pDevice, m_pContext)))) + return E_FAIL; + + /* For.Prototype_GameObject_Wand */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) + return E_FAIL; + m_strMessage = TEXT("Loading Success!"); m_isFinished = true; @@ -1168,7 +1632,28 @@ HRESULT CLoader::Loading_For_MapViewer() m_strMessage = TEXT("텍스쳐를(을) 로딩 중 입니다."); if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("TerrainTest"), - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Cursor/UI_T_CursorRings.dds"), 0)))) { + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures//T_LandscapeStreamingProxy_0_LOD1_Summer_D.png"), 0)))) { + return E_FAIL; + } + + /* Terrain_Mask */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Mask"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/T_OL_GrassBlend_Mask_D.dds"), 0)))) { + return E_FAIL; + } + /* Terrain_Diffuse */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Diffuse"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_D_%d.dds"), 4)))) { + return E_FAIL; + } + /* Terrain_Normal */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_Normal"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_N_%d.dds"), 4)))) { + return E_FAIL; + } + /* Terrain_MRO */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Terrain_MRO"), + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::INCREMENTAL, TEXT("../Bin/Resources/Textures/Terrain/Terrain_MRO_%d.dds"), 4)))) { return E_FAIL; } @@ -1193,195 +1678,516 @@ HRESULT CLoader::Loading_For_MapViewer() vector ModelPrototypePath = {}; #pragma region HOGSMEADE - /* Terrain*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + + ///* Terrain*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain", + // ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain", + // ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; - /* TScrolls*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + ///* TScrolls*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; - /* 3BroomStick*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + ///* 3BroomStick*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; - /* Ollivanders*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + ///* Ollivanders*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; - /* Gatehouse*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + ///* Gatehouse*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_QuidditchShop */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_HogsheadInn */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_Honeydukes */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_OwlPost */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_TeaShop */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_Zonkos */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_DB_GR */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_Potions */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* BLDG_Salon */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* Hengist_Tree */ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree", + // ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation", + // ".bin", true, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN A*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN B*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN C*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN E*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN F*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN G*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN H*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + + ///* GEN J*/ + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; + //if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision", + // ".bin", false, ModelPrototypeTags, ModelPrototypePath))) + // return E_FAIL; - /* BLDG_QuidditchShop */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; #pragma endregion - /* BLDG_HogsheadInn */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; +#ifdef gimch - /* BLDG_Honeydukes */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; +vector> jobFutures; - /* BLDG_OwlPost */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; +_uint iLoadCount = 46; +vector*> Contents(iLoadCount); - /* BLDG_TeaShop */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; +{ + { /* Terrain */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Terrain", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Terrain", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* TScrolls */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TScrolls\\Collisions", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* 3BroomStick*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_ThreeBroomsticks\\Meshes\\3Broom_Kit", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* Ollivanders*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Ollivanders\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* Gatehouse*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Gatehouse\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_QuidditchShop */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_QuidditchShop\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_HogsheadInn */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_HogsheadInn\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_Honeydukes */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Honeydukes\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_OwlPost */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_OwlPost\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_TeaShop */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_TeaShop\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_Zonkos */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_DB_GR */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_Potions */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* BLDG_Salon */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* Hengist_Tree */ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN A*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN B*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN C*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN E*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN F*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN G*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN H*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } + { /* GEN J*/ + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes", + ".bin", false, + &Contents[jobFutures.size()] + )); + jobFutures.emplace_back(Deferred_FolderLoad( + "C:\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision", + ".bin", false, + &Contents[jobFutures.size()] + )); + } +} - /* BLDG_Zonkos */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Zonkos\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + for (auto& jobFuture : jobFutures) + { + jobFuture.get(); + } - /* BLDG_DB_GR */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_DB_GR\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + for (_uint i = 0; i < Contents.size(); ++i) { + for (_uint j = 0; j < (Contents[i])->size(); ++j) { + FOLDER_LOAD* pContents = (*Contents[i])[j]; + if (true == pContents->bLoadTags) { + ModelPrototypeTags.push_back(pContents->pModelTag); + ModelPrototypePath.push_back(pContents->pathModel); + } - /* BLDG_Potions */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Potions\\Collisions", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) { + return E_FAIL; + } - /* BLDG_Salon */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_Salon\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) { + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) { + return E_FAIL; + } + } - /* Hengist_Tree */ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Vegetation\\Hengist_Tree", - ".bin", true, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\Vegetation", - ".bin", true, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN A*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_A\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN B*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_B\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN C*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_C\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN E*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_E\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN F*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_F\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN G*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_G\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN H*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_H\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - - /* GEN J*/ - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Meshes", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; - if (FAILED(MapFolderLoad("C:\\Users\\82103\\Desktop\\MeshTable\\Game\\Environment\\Hogsmeade\\BLDG_GEN_J\\Collision", - ".bin", false, ModelPrototypeTags, ModelPrototypePath))) - return E_FAIL; + } + } + m_strMessage = TEXT("쉐이더를(을) 로딩 중 입니다."); + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL, + CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"), + VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) { + return E_FAIL; + } + m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다."); @@ -1392,7 +2198,23 @@ HRESULT CLoader::Loading_For_MapViewer() /* For.Prototype_Component_VIBuffer_Terrain */ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), - CVIBuffer_Terrain::Create(m_pDevice, m_pContext, nullptr, 100, 100)))) + CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png", 512, 512)))) + return E_FAIL; + + CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {}; + + InstanceDesc.iNum = 500; + + ///* For.Prototype_Component_VIBuffer_Model_Instancel */ + //if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"), + // CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, &InstanceDesc, + // "../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) + // return E_FAIL; + + /* For.Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA */ + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SM_OakTree_MedA"), + CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, + "../Bin/Resources/Models/InstanceProp/SM_OakTree_MedA.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml")))) return E_FAIL; /* For.Prototype_GameObject_SkyBox */ @@ -1429,6 +2251,10 @@ HRESULT CLoader::Loading_For_MapViewer() if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CTerrain::Create(m_pDevice, m_pContext)))) return E_FAIL; + /* For.Prototype_GameObject_InstancedProp */ + if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CInstancedProp::Create(m_pDevice, m_pContext)))) + return E_FAIL; + /* For.Prototype_GameObject_MapObject_Manager */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CMapObject_Manager::Create(m_pDevice, m_pContext, ModelPrototypeTags, ModelPrototypePath)))) return E_FAIL; @@ -1440,6 +2266,13 @@ HRESULT CLoader::Loading_For_MapViewer() m_isFinished = true; + for (_uint i = 0; i < Contents.size(); ++i) { + for (_uint j = 0; j < (Contents[i])->size(); ++j) { + Safe_Delete((*Contents[i])[j]); + } + Safe_Delete(Contents[i]); + } +#endif return S_OK; } @@ -1461,12 +2294,6 @@ void CLoader::Free() { __super::Free(); - WaitForSingleObject(m_hThread, INFINITE); - - CloseHandle(m_hThread); - - DeleteCriticalSection(&m_CriticalSection); - SAFE_RELEASE(m_pGameInstance); SAFE_RELEASE(m_pDevice); SAFE_RELEASE(m_pContext); diff --git a/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp b/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp index c70c6d53c..9adb078a0 100644 --- a/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp +++ b/Jusin154_Team3D/Editor/Private/LoadingWidget.cpp @@ -108,9 +108,7 @@ void CLoadingWidget::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp b/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp index 8f8a40f48..7ad4d88cd 100644 --- a/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp +++ b/Jusin154_Team3D/Editor/Private/LoadingWidget_Flame.cpp @@ -117,9 +117,7 @@ void CLoadingWidget_Flame::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp index e43c4d815..6ef81645e 100644 --- a/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Loading_Panel.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Loading_Panel.h" #include "GameInstance.h" #include "LoadingWidget.h" diff --git a/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp b/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp new file mode 100644 index 000000000..93478a435 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Magic_Icon.cpp @@ -0,0 +1,223 @@ +#include "pch.h" +#include "Magic_Icon.h" +#include "GameInstance.h" + +CMagic_Icon::CMagic_Icon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CMagic_Icon::CMagic_Icon(const CMagic_Icon& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CMagic_Icon::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMagic_Icon::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 630.f; + Desc.fY = 125.f; + Desc.fSizeX = 65.f; + Desc.fSizeY = 65.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 3.f; + return S_OK; +} + +void CMagic_Icon::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CMagic_Icon::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + m_fTime += fTimeDelta * m_fTimeMult; + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + __super::Update(fTimeDelta); +} + +void CMagic_Icon::Late_Update(_float fTimeDelta) +{ + if (__super::Chack_Visible()) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CMagic_Icon::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_ICON)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CMagic_Icon::Get_WorldPostion() +{ + return m_pOwner->Get_WorldPostion(); +} + +HRESULT CMagic_Icon::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CMagic_Icon::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HealthMeter_LevelBox"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_AncientMagicFinisher"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +CMagic_Icon* CMagic_Icon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMagic_Icon* pInstance = new CMagic_Icon(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMagic_Icon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMagic_Icon::Clone(void* pArg, CGameObject* pOwner) +{ + CMagic_Icon* pInstance = new CMagic_Icon(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CMagic_Icon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMagic_Icon::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pDiffuse_TextureCom1); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CMagic_Icon::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp b/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp new file mode 100644 index 000000000..bb03f3089 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Magic_Meter.cpp @@ -0,0 +1,255 @@ +#include "pch.h" +#include "Magic_Meter.h" +#include "GameInstance.h" + +CMagic_Meter::CMagic_Meter(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CMagic_Meter::CMagic_Meter(const CMagic_Meter& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CMagic_Meter::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CMagic_Meter::Initialize(void* pArg) +{ + + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 190.f; + Desc.fY = 145.f; + Desc.fSizeX = 70.f; + Desc.fSizeY = 20.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fAlpha = 1.f; + m_fTimeMult = 3.f; + m_fAlphaTime = 1.f; + m_fMaxGauge = 20.f; + m_fCurrentGauge = 10.f; + Visible(false); + return S_OK; +} + +void CMagic_Meter::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CMagic_Meter::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + if (m_fCurrentGauge< 0.f) + m_fCurrentGauge = 0.f; + //if (m_fDamage <= 0.f) + // m_fDamage = 0.f; + //m_fTargetHp = m_fMaxHp - m_fDamage; + + m_fGaugeBar = m_fCurrentGauge / m_fMaxGauge; + + m_fTime += fTimeDelta * m_fTimeMult; + __super::Update(fTimeDelta); +} + + +void CMagic_Meter::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + } + __super::Late_Update(fTimeDelta); +} + +HRESULT CMagic_Meter::Render() +{ + if (FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MAGIC_METER)))) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) + { + return E_FAIL; + } + + return S_OK; +} + + +_vector CMagic_Meter::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +void CMagic_Meter::Meter_Index(_uint Number) +{ + m_iImageCount = Number; +} + +HRESULT CMagic_Meter::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", m_iImageCount))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fHp", &m_fGaugeBar, sizeof(_float)))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CMagic_Meter::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Megic_Metar"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_HUD_HealthMeterFill"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + + +CMagic_Meter* CMagic_Meter::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CMagic_Meter* pInstance = new CMagic_Meter(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CMagic_Meter"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CMagic_Meter::Clone(void* pArg, CGameObject* pOwner) +{ + CMagic_Meter* pInstance = new CMagic_Meter(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSpell_Slot"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CMagic_Meter::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pDiffuse_TextureCom1); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CMagic_Meter::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/MainApp.cpp b/Jusin154_Team3D/Editor/Private/MainApp.cpp index 210675229..32f6f36d0 100644 --- a/Jusin154_Team3D/Editor/Private/MainApp.cpp +++ b/Jusin154_Team3D/Editor/Private/MainApp.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "MainApp.h" #include "GameInstance.h" @@ -111,7 +111,7 @@ HRESULT CMainApp::Ready_IMGUI() //string strFontTag = "C:\\Windows\\Fonts\\malgun.ttf"; string strFontTag = "../Bin/Resources/Fonts/malgunsl.TTF"; ImFontConfig cfg; - cfg.OversampleH = 2; // °¡µ¶¼º Çâ»ó + cfg.OversampleH = 2; // 가독성 향상 cfg.OversampleV = 2; cfg.PixelSnapH = true; ifstream ifile; diff --git a/Jusin154_Team3D/Editor/Private/MainLight.cpp b/Jusin154_Team3D/Editor/Private/MainLight.cpp index feab5b2af..a950ae69a 100644 --- a/Jusin154_Team3D/Editor/Private/MainLight.cpp +++ b/Jusin154_Team3D/Editor/Private/MainLight.cpp @@ -1,8 +1,8 @@ -#include "pch.h" +#include "pch.h" #include "MainLight.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" CMainLight::CMainLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -62,7 +62,7 @@ HRESULT CMainLight::Ready_Components() LightDesc.eType = LIGHT::DIRECTIONAL; LightDesc.vDiffuse = _float4(0.8f, 0.8f, 0.8f, 0.f); - LightDesc.vAmbient = _float4(0.6f, 0.6f, 0.6f, 0.f); + LightDesc.vAmbient = _float4(0.8f, 0.8f, 0.8f, 0.f); LightDesc.vSpecular = _float4(0.f, 0.f, 0.f, 0.f); LightDesc.pDirection = m_pTransformCom->Get_StatePtr(STATE::LOOK); LightDesc.iLevel = NEXT_LEVEL; diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp index 29d570ba1..6ba73587b 100644 --- a/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp +++ b/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp @@ -89,10 +89,7 @@ HRESULT CMapElement_Interactable::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } if (m_bSelected) @@ -218,7 +215,7 @@ void CMapElement_Interactable::Describe_Entity() CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); if (nullptr != pTerrain) { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + pTerrain->Get_Component()->Picking(pTerrain->Get_Component()->Get_XMWorldMatrix(), &m_vPosition); } } diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp index 48ede6440..a6f282b01 100644 --- a/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp +++ b/Jusin154_Team3D/Editor/Private/MapElement_Static.cpp @@ -90,10 +90,7 @@ HRESULT CMapElement_Static::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { - return E_FAIL; - } - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } if (m_bSelected) @@ -218,7 +215,7 @@ void CMapElement_Static::Describe_Entity() CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); if (nullptr != pTerrain) { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + pTerrain->Get_Component()->Picking(pTerrain->Get_Component()->Get_XMWorldMatrix(), &m_vPosition); } } diff --git a/Jusin154_Team3D/Editor/Private/MapObject.cpp b/Jusin154_Team3D/Editor/Private/MapObject.cpp index 0580f9f73..04cd1fb82 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject.cpp @@ -2,7 +2,7 @@ #include "MapObject.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" #include "Terrain.h" #include "VIBuffer_Terrain.h" @@ -69,7 +69,12 @@ HRESULT CMapObject::Initialize_Prototype() HRESULT CMapObject::Initialize(void* pArg) { - if (FAILED(__super::Initialize(pArg))) + MAPOBJECT_LOD_DESC* pDesc = static_cast(pArg); + + PARTOBJECT_DESC Desc = {}; + Desc.pParentTransform = pDesc->pParentTransform; + + if (FAILED(__super::Initialize(&Desc))) return E_FAIL; #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp index c2b86906c..a78565a65 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Collision.cpp @@ -2,7 +2,7 @@ #include "MapObject_Collision.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" #include "Terrain.h" #include "VIBuffer_Terrain.h" @@ -64,7 +64,7 @@ HRESULT CMapObject_Collision::Render() return E_FAIL; } - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } if (m_bSelected) @@ -219,6 +219,9 @@ void CMapObject_Collision::Free() for (auto& pModel : m_pModelComs) Safe_Release(pModel); m_pModelComs.clear(); + + m_ModelPrototypeTags.clear(); + m_ModelPathIndices.clear(); } void CMapObject_Collision::Describe_Entity() @@ -240,7 +243,7 @@ void CMapObject_Collision::Describe_Entity() CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); if (nullptr != pTerrain) { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + pTerrain->Get_Component()->Picking(pTerrain->Get_Component()->Get_XMWorldMatrix(), &m_vPosition); } } diff --git a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp index 054b284eb..d71a8a5eb 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_LOD.cpp @@ -2,7 +2,7 @@ #include "MapObject_LOD.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" #include "Terrain.h" #include "VIBuffer_Terrain.h" @@ -30,6 +30,7 @@ HRESULT CMapObject_LOD::Initialize(void* pArg) { MAPOBJECT_LOD_DESC* pDesc = static_cast(pArg); + //m_Type = static_cast(pDesc->iRenderType); m_iMaxLodLevel = pDesc->iMaxLodLevel; for (_uint i = 0; i < m_iMaxLodLevel + 1; i++) @@ -55,6 +56,7 @@ HRESULT CMapObject_LOD::Initialize(void* pArg) m_vScale = pDesc->vScale; m_vRotation = pDesc->vRotation; + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); m_pTransformCom->Set_Scale(m_vScale); m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); @@ -65,9 +67,9 @@ HRESULT CMapObject_LOD::Initialize(void* pArg) _matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix); XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]); - - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + + //m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); //m_pColliderCom->Update(ColliderMatrix); @@ -85,20 +87,30 @@ void CMapObject_LOD::Priority_Update(_float fTimeDelta) void CMapObject_LOD::Update(_float fTimeDelta) { - //if (0 == m_iLodIndex) - // m_bSelected = true; + /*if (0 == m_iLodIndex) + m_bSelected = true;*/ + + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); + m_pTransformCom->Set_Scale(m_vScale); + m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); } void CMapObject_LOD::Late_Update(_float fTimeDelta) { #ifdef _DEBUG - /*if (m_bSelected) + if (m_bSelected) { m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f)); m_pTransformCom->Set_Scale(m_vScale); m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); - }*/ + } #endif + XMStoreFloat4x4(&m_CombinedWorldMatrix, m_pTransformCom->Get_XMWorldMatrix() * m_pParentTransformCom->Get_XMWorldMatrix()); + + _float3 vOffset = m_pModelComs[0]->Get_RadiusOffset(); + _matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix); + XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]); + _float fRaius = m_pModelComs[0]->Get_Radius(); if (m_pGameInstance->isIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), fRaius)) { @@ -111,7 +123,20 @@ void CMapObject_LOD::Late_Update(_float fTimeDelta) if (m_pGameInstance->Key_Pressing(DIK_Z)) m_iLodIndex = 0; - m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + switch (m_Type) + { + case Editor::MAPOBJECT_RENDER_TYPE::NORMAL: + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + break; + + case Editor::MAPOBJECT_RENDER_TYPE::DECAL: + m_pGameInstance->Add_RenderGroup(RENDER::DECAL, this); + break; + case Editor::MAPOBJECT_RENDER_TYPE::GLASS: + break; + default: + break; + } } } @@ -125,14 +150,10 @@ HRESULT CMapObject_LOD::Render() for (_uint i = 0; i < iNumMeshes; i++) { - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (m_bSelected) { if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::MAPTOOL)))) { @@ -258,6 +279,9 @@ void CMapObject_LOD::Free() for(auto& pModel : m_pModelComs) SAFE_RELEASE(pModel); m_pModelComs.clear(); + + m_ModelPrototypeTags.clear(); + m_ModelPathIndices.clear(); } void CMapObject_LOD::Describe_Entity() @@ -281,7 +305,7 @@ void CMapObject_LOD::Describe_Entity() CTerrain* pTerrain = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Terrain"))->Get_Object(); if (nullptr != pTerrain) { - pTerrain->Get_Component()->Picking(pTerrain->Get_Component(), m_vPosition); + pTerrain->Get_Component()->Picking(pTerrain->Get_Component()->Get_XMWorldMatrix(), &m_vPosition); } } diff --git a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp index 0f27a25ad..7b7fac607 100644 --- a/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp +++ b/Jusin154_Team3D/Editor/Private/MapObject_Manager.cpp @@ -2,7 +2,7 @@ #include "MapObject_Manager.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "Layer.h" #include "MapObject.h" #include "MapObject_LOD.h" @@ -28,8 +28,7 @@ CMapObject_Manager::CMapObject_Manager(const CMapObject_Manager& rhs) HRESULT CMapObject_Manager::Initialize_Prototype(vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePaths) { - //for (auto& Tag : ModelPrototypeTags) - for (_uint i = 0 ; i < ModelPrototypeTags.size(); ++i) + /*for (_uint i = 0 ; i < ModelPrototypeTags.size(); ++i) { if (_wstring::npos != ModelPrototypeTags[i].find(L"Lod")) { @@ -42,7 +41,7 @@ HRESULT CMapObject_Manager::Initialize_Prototype(vector<_wstring>& ModelPrototyp m_ModelPrototypeTags.push_back(ModelPrototypeTags[i]); m_ModelPrototypePaths.push_back(ModelPrototypePaths[i]); - } + }*/ return S_OK; } @@ -474,11 +473,22 @@ HRESULT CMapObject_Manager::Save_ContainerData(const _char* pFileName, const _ch PartObject->SetAttribute("Lod_Level", iLodLvel); PartObject->SetAttribute("Key_Index", pMapObject->Get_iKeyIndex()); + + /* Set Render Type*/ + _wstring ProrotypeTag = pMapObject->Get_PrototypeTag(0); + + if(_wstring::npos != ProrotypeTag.find(L"decal") || _wstring::npos != ProrotypeTag.find(L"Decal")) + PartObject->SetAttribute("Render_Type", 1); + else if(_wstring::npos != ProrotypeTag.find(L"glass") || _wstring::npos != ProrotypeTag.find(L"Glass")) + PartObject->SetAttribute("Render_Type", 2); + else + PartObject->SetAttribute("Render_Type", 0); + container->InsertEndChild(PartObject); for (_uint i = 0; i < pMapObject->Get_LodLevel() + 1; ++i) { - // ÅØ½ºÆ® + // ProrotypeTag tinyxml2::XMLElement* proto = doc.NewElement("PrototypeTag"); proto->SetText(CMyTools::ToString(pMapObject->Get_PrototypeTag(i)).c_str()); PartObject->InsertEndChild(proto); @@ -1338,7 +1348,7 @@ void CMapObject_Manager::Update_ContainerObject() for (auto& pObject : (*pList)) { - if (GUI::Button((dynamic_cast(pObject)->Get_Name().c_str()))) + if (GUI::Button((dynamic_cast(pObject)->Get_Name() + to_string(iIndex)).c_str())) { m_iContainerObjectIndex = iIndex; } diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp index 2c3886feb..4d5481ed6 100644 --- a/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/MiniMap_Panel.cpp @@ -2,6 +2,7 @@ #include "MiniMap_Panel.h" #include "GameInstance.h" #include "MiniMap_TrimBorder.h" +#include "NoMountIcon.h" CMiniMap_Panel::CMiniMap_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CPanelObject(pDevice, pContext) @@ -68,9 +69,6 @@ void CMiniMap_Panel::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } } __super::Late_Update(fTimeDelta); } @@ -92,10 +90,7 @@ HRESULT CMiniMap_Panel::Bind_ShaderResources() HRESULT CMiniMap_Panel::Ready_Components(void* pArg) { - if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) - { - return E_FAIL; - } + return S_OK; } @@ -106,6 +101,11 @@ HRESULT CMiniMap_Panel::Ready_Element(void* pArg) return E_FAIL; } Add_Element(TEXT("MiniMap_TrimBorder"), m_pMiniMap_TrimBorder); + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast (&m_pNoMountIcon)))) + { + return E_FAIL; + } + Add_Element(TEXT("NoMountIcon"), m_pNoMountIcon); return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp index 4fac0d622..3aafbe280 100644 --- a/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp +++ b/Jusin154_Team3D/Editor/Private/MiniMap_TrimBorder.cpp @@ -94,9 +94,7 @@ void CMiniMap_TrimBorder::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp b/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp index e09d48b4e..0258e390e 100644 --- a/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp +++ b/Jusin154_Team3D/Editor/Private/MissionBanner_Border.cpp @@ -1,6 +1,8 @@ #include "pch.h" #include "MissionBanner_Border.h" #include "GameInstance.h" +#include "Mission_Icon.h" + CMissionBanner_Border::CMissionBanner_Border(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CElementObject(pDevice, pContext) @@ -22,9 +24,9 @@ HRESULT CMissionBanner_Border::Initialize(void* pArg) CUIObject::UIOBJECT_DESC Desc{}; Desc.fX = -207.f; - Desc.fY = 150.f; + Desc.fY = 115.f; Desc.fSizeX = 256.f; - Desc.fSizeY = 128.f; + Desc.fSizeY = 175.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -37,20 +39,22 @@ HRESULT CMissionBanner_Border::Initialize(void* pArg) return E_FAIL; } - m_fTimeMult = 3.f; + m_fTimeMult = 15.f; m_fAlpha = 0.f; m_fAlphaTime = 5.f; - m_fMoveSpeed = 5.f; + m_fMoveSpeed = 100.f; m_fLerpX = m_fX; + m_fLerpY = 100.f; m_fSortZ = 0.11f; m_vUVScale = _float2(1.f, 1.f); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_On"), [this]() {this->Set_FadeIn(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_On"), [this]() {this->LerpOn(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_Off"), [this]() {this->Set_FadeOut(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_Off"), [this]() {this->LerpOff(); }); + m_vNine_Slice = _float4(80, 200, 60, 90); + static_cast(m_pOwner)->Add_Function(TEXT("Mission_On"), [this](void* p) {this->Set_FadeIn(); }); + static_cast(m_pOwner)->Add_Function(TEXT("Mission_Off"), [this](void* p) {this->Set_FadeOut(); }); + static_cast(m_pOwner)->Add_Function(TEXT("Mission_Off"), [this](void* p) {this->LerpOff(); }); return S_OK; } + void CMissionBanner_Border::Priority_Update(_float fTimeDelta) { if (!__super::Chack_Visible()) @@ -66,6 +70,7 @@ void CMissionBanner_Border::Update(_float fTimeDelta) { return; } + m_fLerpTime = fTimeDelta * m_fTimeMult; if (m_bFadeIn == true) { @@ -75,6 +80,10 @@ void CMissionBanner_Border::Update(_float fTimeDelta) m_fAlpha += fTimeDelta * m_fAlphaTime; } + if (m_fAlpha >= 0.5f) + { + LerpOn(); + } if (m_fAlpha >= 1.f) { m_bFadeIn = false; @@ -94,16 +103,18 @@ void CMissionBanner_Border::Update(_float fTimeDelta) m_fAlpha = 0.f; } } - + if (m_pGameInstance->Key_Down(DIK_1)) + { + Lerp_PosY(100); + } if (m_bLerpOn == true) { - - Start_Lerp(m_fMoveSpeed); + Size_LerpOn(m_fOrigin_Size.y + m_fLerpY, m_fLerpTime); } if (m_bLerpOff == true) { - Reset_Pos(m_fMoveSpeed); + Size_LerpOff(m_fLerpTime); } m_fTime += fTimeDelta * m_fTimeMult; @@ -117,9 +128,7 @@ void CMissionBanner_Border::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } @@ -129,7 +138,7 @@ HRESULT CMissionBanner_Border::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::MISSION)))) { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::NINECLICE)))) { return E_FAIL; } if (FAILED(m_pVIBufferCom->Bind_Resources())) { @@ -138,7 +147,7 @@ HRESULT CMissionBanner_Border::Render() if (FAILED(m_pVIBufferCom->Render())) { return E_FAIL; } - + m_pMission_Icon->Render(); return S_OK; } @@ -147,6 +156,49 @@ _vector CMissionBanner_Border::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +void CMissionBanner_Border::Size_LerpOn(_float LerpX, _float fTimeDelta) +{ + _float fDir = LerpX - m_fSizeY; + _float move = m_fMoveSpeed * fTimeDelta; + + + if (fDir <= move) + { + m_fSizeY = LerpX; + m_bLerpOn = false; + } + + else + { + m_fY -= move * 0.5f; + m_fSizeY += move; + static_cast(m_pMission_Icon)->MoveY(move * 0.5f); + + } +} + +void CMissionBanner_Border::Size_LerpOff(_float fTimeDelta) +{ + _float fDir = m_fSizeY - m_fOrigin_Size.y; + + _float move = m_fMoveSpeed * fTimeDelta; + + if (fDir <= move) + { + m_fSizeY = m_fOrigin_Size.y; + m_fLerpY; + m_bLerpOn = false; + } + + else + { + m_fSizeY -= move; + m_fY += move * 0.5f; + static_cast(m_pMission_Icon)->MoveY(-move * 0.5f); + + } +} + HRESULT CMissionBanner_Border::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) @@ -197,6 +249,10 @@ HRESULT CMissionBanner_Border::Bind_ShaderResources() { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2)))) + { + return E_FAIL; + } return S_OK; } @@ -219,10 +275,26 @@ HRESULT CMissionBanner_Border::Ready_Components(void* pArg) { return E_FAIL; } - + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Icon)))) + { + return E_FAIL; + } return S_OK; } +void CMissionBanner_Border::SizeUpX(_float fSizeX) +{ + m_fSizeX = fSizeX; + m_fX += (fSizeX - m_vScale.x) * 0.5f; + m_fLerpX += (fSizeX - m_vScale.x) * 0.5f; + static_cast(m_pMission_Icon)->MoveX((fSizeX - m_vScale.x) * 0.5f); +} + +void CMissionBanner_Border::Lerp_PosY(_float fSizeY) +{ + m_fLerpY = fSizeY; +} + CMissionBanner_Border* CMissionBanner_Border::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CMissionBanner_Border* pInstance = new CMissionBanner_Border(pDevice, pContext); diff --git a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp index d2fd24b92..a0fa7faf5 100644 --- a/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp +++ b/Jusin154_Team3D/Editor/Private/MissionBanner_Key.cpp @@ -94,9 +94,7 @@ void CMissionBanner_Key::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp b/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp index cd52289cb..7be1c58ca 100644 --- a/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp +++ b/Jusin154_Team3D/Editor/Private/Mission_Icon.cpp @@ -21,8 +21,8 @@ HRESULT CMission_Icon::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -275.f; - Desc.fY = 145.f; + Desc.fX = -70.f; + Desc.fY = -20.f; Desc.fSizeX = 60.f; Desc.fSizeY = 60.f; @@ -38,16 +38,22 @@ HRESULT CMission_Icon::Initialize(void* pArg) } m_fTimeMult = 3.f; - m_fAlpha = 0.f; + m_fAlpha = 1.f; m_fAlphaTime = 3.f; m_fMoveSpeed = 5.f; m_fLerpX = m_fX; + m_fLerpY = 45; m_fSortZ = 0.1f; m_eQuestType = QUESTYPE::MAIN; - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_On"), [this]() {this->Set_FadeIn(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_On"), [this]() {this->LerpOn(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_Off"), [this]() {this->Set_FadeOut(); }); - static_cast(m_pOwner)->Add_Function(TEXT("Missiom_Off"), [this]() {this->LerpOff(); }); + //static_cast(m_pOwner)->Add_Function(TEXT("Mission_SizeUp"), [this](void* p) { + // if (p == nullptr) + // return; + // _float fY = *reinterpret_cast<_float*>(p); + // this->Lerp_PosY(fY); }); + //static_cast(m_pOwner)->Add_Function(TEXT("Mission_On"), [this] (void* p) {this->Set_FadeIn(); }); + ////static_cast(m_pOwner)->Add_Function(TEXT("Mission_On"), [this] (void* p) {this->LerpOn(); }); + //static_cast(m_pOwner)->Add_Function(TEXT("Mission_Off"), [this](void* p) {this->Set_FadeOut(); }); + //static_cast(m_pOwner)->Add_Function(TEXT("Mission_Off"), [this](void* p) {this->LerpOff(); }); m_iType = ENUM_CLASS(m_eQuestType); return S_OK; } @@ -59,25 +65,22 @@ void CMission_Icon::QuestType(QUESTYPE eType) void CMission_Icon::Priority_Update(_float fTimeDelta) { - if (!__super::Chack_Visible()) - { - return; - } __super::Priority_Update(fTimeDelta); } void CMission_Icon::Update(_float fTimeDelta) { - if (!__super::Chack_Visible()) - { - return; - } - if (m_bFadeIn == true) { if (m_fAlpha <= 1.f) + { m_fAlpha += fTimeDelta * m_fAlphaTime; + } + if (m_fAlpha >= 0.2f) + { + LerpOn(); + } if (m_fAlpha >= 1.f) { m_bFadeIn = false; @@ -98,7 +101,6 @@ void CMission_Icon::Update(_float fTimeDelta) } if (m_bLerpOn == true) { - Start_Lerp(m_fMoveSpeed); } @@ -113,14 +115,7 @@ void CMission_Icon::Update(_float fTimeDelta) void CMission_Icon::Late_Update(_float fTimeDelta) { - if (!__super::Chack_Visible()) - { - return; - } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } @@ -148,6 +143,21 @@ _vector CMission_Icon::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +void CMission_Icon::MoveX(_float fX) +{ + m_fX -= fX; +} + +void CMission_Icon::MoveY(_float fY) +{ + m_fY -= fY; +} + +void CMission_Icon::Lerp_PosY(_float fLerpY) +{ + m_fLerpY -= fLerpY; +} + HRESULT CMission_Icon::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) diff --git a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp index e9c63c42f..b405c6b85 100644 --- a/Jusin154_Team3D/Editor/Private/Mission_Key.cpp +++ b/Jusin154_Team3D/Editor/Private/Mission_Key.cpp @@ -21,10 +21,10 @@ HRESULT CMission_Key::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -296.f; - Desc.fY = 158.f; - Desc.fSizeX = 37.f; - Desc.fSizeY = 37.f; + Desc.fX = -297.f; + Desc.fY = 159.f; + Desc.fSizeX = 40.f; + Desc.fSizeY = 40.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -40,6 +40,7 @@ HRESULT CMission_Key::Initialize(void* pArg) m_fTimeMult = 3.f; m_fAlpha = 1.f; m_fAlphaTime = 3.f; + AlphabetUV('V'); return S_OK; } @@ -82,7 +83,6 @@ void CMission_Key::Update(_float fTimeDelta) m_fAlpha = 0.f; } } - m_fTime += fTimeDelta * m_fTimeMult; __super::Update(fTimeDelta); } @@ -94,9 +94,7 @@ void CMission_Key::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } @@ -106,7 +104,7 @@ HRESULT CMission_Key::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::REMOVEUV)))) { return E_FAIL; } if (FAILED(m_pVIBufferCom->Bind_Resources())) { @@ -124,6 +122,32 @@ _vector CMission_Key::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +_float4 CMission_Key::AlphabetUV(_tchar Alphabet) +{ + _uint Number = CMyTools::AlphabetToInt(Alphabet); + + _float2 fIamge_Size = { 320.f, 384.f }; + + _uint iXCount = 5; + _uint iYCount = 6; + + _float frameWidth = 64.f; + _float frameHeight = 64.f; + + _uint frameX = Number % iXCount; + _uint frameY = Number / iXCount; + + _float2 UVStart; + UVStart.x = frameX * frameWidth / fIamge_Size.x; + UVStart.y = frameY * frameHeight / fIamge_Size.y; + + _float2 UVEnd; + UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x); + UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y); + + return m_vUV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y); +} + HRESULT CMission_Key::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) @@ -162,6 +186,10 @@ HRESULT CMission_Key::Bind_ShaderResources() { return E_FAIL; } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4)))) + { + return E_FAIL; + } return S_OK; } @@ -171,7 +199,7 @@ HRESULT CMission_Key::Ready_Components(void* pArg) { return E_FAIL; } - if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Keyboard_V"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp b/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp index 8df1c44c9..fcc39e4a9 100644 --- a/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp +++ b/Jusin154_Team3D/Editor/Private/Mission_KeyHold.cpp @@ -21,10 +21,10 @@ HRESULT CMission_KeyHold::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -296.f; + Desc.fX = -297.f; Desc.fY = 158.f; - Desc.fSizeX = 86.f; - Desc.fSizeY = 86.f; + Desc.fSizeX = 94.f; + Desc.fSizeY = 94.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -112,11 +112,11 @@ void CMission_KeyHold::Update(_float fTimeDelta) if (m_bisHoldOn) { - static_cast(m_pOwner)->Function_Callback(TEXT("Missiom_On")); + static_cast(m_pOwner)->Function_Callback(TEXT("Mission_On")); } else { - static_cast(m_pOwner)->Function_Callback(TEXT("Missiom_Off")); + static_cast(m_pOwner)->Function_Callback(TEXT("Mission_Off")); } __super::Update(fTimeDelta); @@ -129,9 +129,7 @@ void CMission_KeyHold::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } diff --git a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp index 0ee7abd31..df5af310b 100644 --- a/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp +++ b/Jusin154_Team3D/Editor/Private/Mission_Panel.cpp @@ -1,10 +1,9 @@ -#include "pch.h" +#include "pch.h" #include "Mission_Panel.h" #include "GameInstance.h" #include "Mission_KeyHold.h" #include "Mission_Key.h" #include "Active_Icon.h" -#include "Mission_Icon.h" #include "MissionBanner_Border.h" #include "MissionBanner_Key.h" @@ -75,8 +74,7 @@ void CMission_Panel::Late_Update(_float fTimeDelta) } if (m_bVisible) { - //_float4* vPos = (_float4*)(m_pTransformCom->Get_WorldMatrixPtr()->m[3]); - //m_pGameInstance->Add_RenderGroup(RENDER::UI, this, *vPos, m_pTransformCom->Get_Radius()); + } __super::Late_Update(fTimeDelta); @@ -99,27 +97,6 @@ HRESULT CMission_Panel::Bind_ShaderResources() HRESULT CMission_Panel::Ready_Components(void* pArg) { - if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) - { - return E_FAIL; - } - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_KeyHold)))) - { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Key)))) - { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pActive_Icon)))) - { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMissionBanner_Key)))) - { - return E_FAIL; - } return S_OK; } @@ -148,13 +125,6 @@ HRESULT CMission_Panel::Ready_Element(void* pArg) return E_FAIL; } Add_Element(TEXT("Mission_Key"), m_pMission_Key); - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pMission_Icon)))) - { - return E_FAIL; - } - Add_Element(TEXT("Mission_Icon"), m_pMission_Icon); - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pActive_Icon)))) { return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/ModelParts.cpp b/Jusin154_Team3D/Editor/Private/ModelParts.cpp index 63d63dbe2..b1c75a254 100644 --- a/Jusin154_Team3D/Editor/Private/ModelParts.cpp +++ b/Jusin154_Team3D/Editor/Private/ModelParts.cpp @@ -70,13 +70,9 @@ HRESULT CModelParts::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Monster.cpp b/Jusin154_Team3D/Editor/Private/Monster.cpp index 4bff56d51..704992d98 100644 --- a/Jusin154_Team3D/Editor/Private/Monster.cpp +++ b/Jusin154_Team3D/Editor/Private/Monster.cpp @@ -2,6 +2,7 @@ #include "Monster.h" #include "GameInstance.h" +#include "Player.h" CMonster::CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) @@ -23,6 +24,9 @@ HRESULT CMonster::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))) return E_FAIL; + m_pPlayerTransform = static_cast(pArg)->Get_Component(); + SAFE_ADDREF(m_pPlayerTransform); + return S_OK; } @@ -33,10 +37,12 @@ void CMonster::Priority_Update(_float fTimeDelta) void CMonster::Update(_float fTimeDelta) { + } void CMonster::Late_Update(_float fTimeDelta) { + m_fTargetDistance = m_pTransformCom->TargetDis(m_pPlayerTransform->Get_State(STATE::POSITION)); } HRESULT CMonster::Render() @@ -65,6 +71,7 @@ void CMonster::Free() { __super::Free(); + SAFE_RELEASE(m_pPlayerTransform); } void CMonster::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp new file mode 100644 index 000000000..ca641dad1 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/NoMountIcon.cpp @@ -0,0 +1,222 @@ +#include "pch.h" +#include "NoMountIcon.h" +#include "GameInstance.h" + +CNoMountIcon::CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CNoMountIcon::CNoMountIcon(const CNoMountIcon& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CNoMountIcon::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CNoMountIcon::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 100.f; + Desc.fY = -55; + Desc.fSizeX = 50.f; + Desc.fSizeY = 50.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 0.7f; + m_fAlphaTime = 3.f; + return S_OK; +} + +void CNoMountIcon::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CNoMountIcon::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 7.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 7.f) + { + m_bFadeIn = false; + m_fAlpha = 7.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + m_fTime += fTimeDelta * m_fTimeMult; + __super::Update(fTimeDelta); +} + +void CNoMountIcon::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CNoMountIcon::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CNoMountIcon::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CNoMountIcon::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CNoMountIcon::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_NoMountIcon"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +CNoMountIcon* CNoMountIcon::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CNoMountIcon* pInstance = new CNoMountIcon(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CNoMountIcon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CNoMountIcon::Clone(void* pArg, CGameObject* pOwner) +{ + CNoMountIcon* pInstance = new CNoMountIcon(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CNoMountIcon"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CNoMountIcon::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CNoMountIcon::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/NomalJap.cpp b/Jusin154_Team3D/Editor/Private/NomalJap.cpp new file mode 100644 index 000000000..3f05034fa --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/NomalJap.cpp @@ -0,0 +1,164 @@ +#include "pch.h" +#include "NomalJap.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Dummy_PhysXEffectHitBox.h" + + +CNomalJap::CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CNomalJap::CNomalJap(const CNomalJap& rhs) + : CEffect_Container(rhs) +{ + +} + +HRESULT CNomalJap::Initialize_Prototype() +{ + + return S_OK; + +} + +HRESULT CNomalJap::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + if (FAILED(Ready_Child())) + return E_FAIL; + + m_wstrEffectName = L"Nomal_Jap"; + + m_PartObjects.begin()->second->Set_Visible(true); + m_PartObjects.begin()->second->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + m_fDuration = 5.f; + + return S_OK; +} + +void CNomalJap::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); +} + +void CNomalJap::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); +} + +void CNomalJap::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); +} + +HRESULT CNomalJap::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CNomalJap::Ready_Child() +{ + CDummy_PhysXEffectHitBox::PHYSXDUMMY_DESC Desc{}; + + m_pTransformCom->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion()); + + XMStoreFloat3(&Desc.vPos, m_pOwner->Get_WorldPostion() + XMVectorSet(0.f, 0.f, 1.f, 0.f)); + + Desc.vRotRPY = { 0.f, 0.f, 0.f }; + Desc.iSubKind = 70; + Desc.vDeltaPos = { 0.f, 0.f, 2.f }; + Desc.vLifeTime = { 0.f, 2.f }; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, CURRENT_LEVEL, LAYER_HITBOX, &Desc, this , &m_pPhysHitBox))) { + assert(false); + return E_FAIL; + } + + return S_OK; +} + +CNomalJap* CNomalJap::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CNomalJap* pInstance = new CNomalJap(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CNomalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CNomalJap::Clone(void* pArg, CGameObject* pOwner) +{ + CNomalJap* pInstance = new CNomalJap(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CNomalJap"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CNomalJap::OnCollision(CGameObject* pOther , void* pDesc) +{ + //CTransform* pOtherTransform = p + ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); + + for (auto& pPair : m_PartObjects) + { + pPair.second->Set_Visible(true); + pPair.second->Get_Component()->Set_State(STATE::POSITION, CollisionDesc->vWorldPos); + } + + m_PartObjects.begin()->second->Set_Visible(false); + + m_pPhysHitBox->Set_Dead(); +} + +void CNomalJap::Free() +{ + __super::Free(); + + //if(m_pPhysHitBox != nullptr) + // if (m_pPhysHitBox->Get_Depth() == false) + // SAFE_RELEASE(m_pPhysHitBox); + +} + +void CNomalJap::Describe_Entity() +{ + +} + +HRESULT CNomalJap::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp index 7e4df71e1..fb200e130 100644 --- a/Jusin154_Team3D/Editor/Private/Player.cpp +++ b/Jusin154_Team3D/Editor/Private/Player.cpp @@ -2,25 +2,26 @@ #include "Player.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "CamPosition_Socket.h" +#include "Camera_Gaze.h" +#include "CamPosition_Arm.h" +#include "Wand.h" +#include "Character_Controller.h" +#include "CallBack_Playable_Behavior.h" +#include "CamPosition_Shoulder.h" +#include "CallBack_Playable_HitReport.h" #pragma region STATE #include "State_Idle.h" -#include "State_Walk.h" -#include "State_Jog.h" -#include "State_Sprint.h" #include "State_Dodge.h" #include "State_Jump.h" -#include "State_Skill.h" -#include "State_Skill2.h" -#include "State_LightAttack.h" #include "State_Land.h" -#include "State_Cast.h" #include "State_Move.h" #include "State_Combat.h" -#include "State_Idle_Turn.h" #pragma endregion +#include "Bombard.h" + CPlayer::CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CUnit(pDevice, pContext) { @@ -38,44 +39,68 @@ HRESULT CPlayer::Initialize_Prototype() HRESULT CPlayer::Initialize(void* pArg) { - if (FAILED(__super::Initialize(pArg))) + if (FAILED(__super::Initialize(pArg))) { return E_FAIL; + } - if (FAILED(Ready_Components())) + if (FAILED(Ready_Components())) { return E_FAIL; + } + + if (FAILED(Ready_Parts())) { + return E_FAIL; + } Load_KeyFrame(); Add_FSM(); - Set_FSM(); - Set_Anim(); - Setup_InputConditions(); + m_eSpell = STATEANIM::DESCENDO; - m_pFSM->Change_State(FSMSTATE::IDLE); + { + CFSM::FSM_DESC FSMDesc{}; + FSMDesc.pStates = &m_States; + FSMDesc.pStateMask = &m_iStateMask; + m_pFSM->Bind_States(FSMDesc); + m_pFSM->Change_State(FSMSTATE::IDLE); + } + + m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); + m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); return S_OK; } void CPlayer::Priority_Update(_float fTimeDelta) { + m_pTransformCom->RewindMomentum(); + __super::Priority_Update(fTimeDelta); } void CPlayer::Update(_float fTimeDelta) { - Key_Input(fTimeDelta); - - m_pFSM->Update(fTimeDelta); + m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom); + + __super::Update(fTimeDelta); + Describe_Entity(); + + + m_pCharacter_Controller->Move(fTimeDelta); + TestKeyInput(fTimeDelta); } void CPlayer::Late_Update(_float fTimeDelta) { - m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); + m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position()); + + m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); + + __super::Late_Update(fTimeDelta); } HRESULT CPlayer::Render() @@ -92,13 +117,9 @@ HRESULT CPlayer::Render() return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_DiffuseTexture", aiTextureType_DIFFUSE, 0))) { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { return E_FAIL; } - if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom, "g_NormalTexture", aiTextureType_NORMALS, 0))) { - return E_FAIL; - } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { return E_FAIL; } @@ -108,6 +129,11 @@ HRESULT CPlayer::Render() } } +#ifdef _DEBUG + m_pCharacter_Controller->Render(); + //m_pRigidBody->Render(); +#endif + return S_OK; } @@ -119,19 +145,81 @@ HRESULT CPlayer::Ready_Components() Desc.fRotationPerSec = XMConvertToRadians(180.0f); Desc.fRadius = 10.f; - __super::Ready_Components(&Desc); + if (FAILED(__super::Ready_Components(&Desc))) { + return E_FAIL; + } m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model"); /* Com_Model */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag, - reinterpret_cast(&m_pModelCom)))) + reinterpret_cast(&m_pModelCom)))) { return E_FAIL; + } /* Com_Shader */ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH, - reinterpret_cast(&m_pShaderCom)))) + reinterpret_cast(&m_pShaderCom)))) { return E_FAIL; + } + + { // CCT + CCharacter_Controller::Character_Controller_DESC Desc{}; + + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER); + Desc.pTransform = m_pTransformCom; + Desc.eBodyType = ACTOR::CAPSULE; + Desc.fContactOffset = 0.1f; + Desc.fMaterial = { 0.5f, 0.5f, 0.6f }; + Desc.bAutoStepping = { false }; + Desc.fStepOffset = { 0.05f }; + Desc.fRadius = 0.5f; + Desc.fHeight = 1.0f; + Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_Playable_HitReport::Create(); + Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_Playable_Behavior::Create(); + Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY; + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) { + return E_FAIL; + } + } + + { // DO + CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{}; + Desc.iSubKind = ENUM_CLASS(COLLIDABLEOBJECT::PLAYER); + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) { + return E_FAIL; + } + m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor()); + } + + return S_OK; +} + +HRESULT CPlayer::Ready_Parts() +{ + CWand::WAND_DESC WandDesc{}; + + WandDesc.pParentTransform = m_pTransformCom; + WandDesc.pSocketMatrices = m_pModelCom->Get_BoneMatrixPtr("SKT_RightHand"); + + if (FAILED(Add_PartObject("Wand", g_iStaticLevel, nullptr, &WandDesc))) + { + return E_FAIL; + } + + { + CCamPosition_Shoulder::CAMERA_SHOULDER_DESC Desc; + Desc.pParentTransform = m_pTransformCom; + Desc.fMouseSensor = 0.5f; + Desc.fShoulderDistance = 2.f; + Desc.fBackFrontRatio = 0.9f; + Desc.fCameraFocalLength = 10.f; + Desc.vInitialLook = { 1.f, 2.f, -1.f }; + + if (FAILED(Add_PartObject("Cam_Shoulder_Part", g_iStaticLevel, &m_pCamPosition_ShoulderPart, &Desc))) { + return E_FAIL; + } + } return S_OK; } @@ -147,125 +235,11 @@ HRESULT CPlayer::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } return S_OK; } - -void CPlayer::Setup_InputConditions() -{ - m_InputConditions = - { - { FSMSTATE::IDLE_TURN, [&]() { return m_pGameInstance->Key_Down(DIK_LEFT) || m_pGameInstance->Key_Down(DIK_RIGHT) || m_pGameInstance->Key_Down(DIK_DOWN); }}, - { FSMSTATE::MOVE, [&]() { return Check(FSMSTATE::WALK) || Check(FSMSTATE::SPRINT) || Check(FSMSTATE::JOG) || Check(FSMSTATE::DODGE); }}, - { FSMSTATE::WALK, [&]() { return m_pGameInstance->Key_Pressing(DIK_UP) - /*|| m_pGameInstance->Key_Pressing(DIK_DOWN)*/; }}, - { FSMSTATE::WALK_FWD, [&]() { return m_pGameInstance->Key_Pressing(DIK_UP); }}, - { FSMSTATE::WALK_BWD, [&]() { return m_pGameInstance->Key_Pressing(DIK_DOWN); }}, - { FSMSTATE::SPRINT, [&]() { return m_bSprintToggle - && m_pGameInstance->Key_Pressing(DIK_UP); }}, - { FSMSTATE::DODGE, [&]() { return m_pGameInstance->Key_Down(DIK_LCONTROL); }}, - - { FSMSTATE::COMBAT, [&]() { return Check(FSMSTATE::SKILL) || Check(FSMSTATE::LIGHT_ATTACK) || Check(FSMSTATE::CAST) || Check(FSMSTATE::SKILL2); }}, - { FSMSTATE::SKILL, [&]() { return m_pGameInstance->Key_Down(DIK_R); }}, - { FSMSTATE::SKILL2, [&]() { return m_pGameInstance->Key_Down(DIK_Q); }}, - { FSMSTATE::LIGHT_ATTACK,[&]() { return m_pGameInstance->Mouse_Up(ENUM_CLASS(MOUSEKEYSTATE::LBUTTON)); }}, - { FSMSTATE::CAST, [&]() { return m_pGameInstance->Key_Down(DIK_1); }}, - - { FSMSTATE::JUMP, [&]() { return m_pGameInstance->Key_Down(DIK_SPACE); } } - }; -} - -void CPlayer::Key_Input(_float fTimeDelta) -{ - if (m_pFSM->Get_CurrState() == FSMSTATE::WALK || - m_pFSM->Get_CurrState() == FSMSTATE::SPRINT|| - m_pFSM->Get_CurrState() == FSMSTATE::DODGE) - { - if (m_pGameInstance->Key_Pressing(DIK_LEFT)) - m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); - - if (m_pGameInstance->Key_Pressing(DIK_RIGHT)) - m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); - } - - IsSprint(); -} - -void CPlayer::Add_FSM() -{ -#pragma region MOVE - m_pFSM->Add_State(FSMSTATE::MOVE, new CState_Move()); - m_pFSM->Add_State(FSMSTATE::WALK, new CState_Walk()); - m_pFSM->Add_State(FSMSTATE::JOG, new CState_Jog()); - m_pFSM->Add_State(FSMSTATE::SPRINT, new CState_Sprint()); - m_pFSM->Add_State(FSMSTATE::DODGE, new CState_Dodge()); -#pragma endregion - -#pragma region COMBAT - m_pFSM->Add_State(FSMSTATE::COMBAT, new CState_Combat()); - m_pFSM->Add_State(FSMSTATE::SKILL, new CState_Skill()); - m_pFSM->Add_State(FSMSTATE::SKILL2, new CState_Skill2()); - m_pFSM->Add_State(FSMSTATE::LIGHT_ATTACK, new CState_LightAttack()); - m_pFSM->Add_State(FSMSTATE::CAST, new CState_Cast()); -#pragma endregion - m_pFSM->Add_State(FSMSTATE::IDLE, new CState_Idle()); - m_pFSM->Add_State(FSMSTATE::IDLE_TURN, new CState_Idle_Turn()); - m_pFSM->Add_State(FSMSTATE::JUMP, new CState_Jump()); - m_pFSM->Add_State(FSMSTATE::LAND, new CState_Land()); - -} - -void CPlayer::Set_FSM() -{ -#pragma region MOVE - m_pFSM->Set_Parent(FSMSTATE::WALK, FSMSTATE::MOVE); - m_pFSM->Set_Parent(FSMSTATE::WALK_BWD, FSMSTATE::MOVE); - m_pFSM->Set_Parent(FSMSTATE::WALK_FWD, FSMSTATE::MOVE); - m_pFSM->Set_Parent(FSMSTATE::JOG, FSMSTATE::MOVE); - m_pFSM->Set_Parent(FSMSTATE::SPRINT, FSMSTATE::MOVE); - m_pFSM->Set_Parent(FSMSTATE::DODGE, FSMSTATE::MOVE); -#pragma endregion - -#pragma region COMBAT - m_pFSM->Set_Parent(FSMSTATE::SKILL, FSMSTATE::COMBAT); - m_pFSM->Set_Parent(FSMSTATE::SKILL2, FSMSTATE::COMBAT); - m_pFSM->Set_Parent(FSMSTATE::LIGHT_ATTACK, FSMSTATE::COMBAT); - m_pFSM->Set_Parent(FSMSTATE::CAST, FSMSTATE::COMBAT); -#pragma endregion -} - -void CPlayer::Set_Anim() -{ - - m_Animation[STATEANIM::DODGE] = { 802,false }; - - m_Animation[STATEANIM::JOG] = { 166,true }; - - m_Animation[STATEANIM::SKILL] = { 593,false }; - m_Animation[STATEANIM::SKILL2] = { 915,false }; - m_Animation[STATEANIM::LIGHT_ATTACK] = { 413,false }; - m_Animation[STATEANIM::LAND] = { 259,false }; - m_Animation[STATEANIM::CAST] = { 696,false }; - - m_Animation[STATEANIM::IDLE] = { 266,true }; - m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false }; - m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false }; - m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false }; - - m_Animation[STATEANIM::WALK_FWD] = { 167,true }; - m_Animation[STATEANIM::WALK_BWD] = { 166,true }; - m_Animation[STATEANIM::WALK_STOP] = { 289,false }; - - m_Animation[STATEANIM::JUMP] = { 205,false }; - m_Animation[STATEANIM::JUMP_WALK] = { 203,false }; - m_Animation[STATEANIM::JUMP_SPRINT] = { 207,false }; - - m_Animation[STATEANIM::SPRINT] = { 599,true }; -} - CPlayer* CPlayer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CPlayer* pInstance = new CPlayer(pDevice, pContext); @@ -293,10 +267,35 @@ CGameObject* CPlayer::Clone(void* pArg, CGameObject* pOwner) void CPlayer::Free() { __super::Free(); + + if (nullptr != m_pCallBack_Behavior) { + m_pCallBack_Behavior->Finalize(); + } + if (nullptr != m_pCallBack_HitReport) { + m_pCallBack_HitReport->Finalize(); + } + SAFE_RELEASE(m_pCharacter_Controller); + SAFE_RELEASE(m_pRigidBody); + Safe_Delete(m_pCallBack_Behavior); + Safe_Delete(m_pCallBack_HitReport); + SAFE_RELEASE(m_pCamPosition_TopDown_FollowPart); + SAFE_RELEASE(m_pCamPosition_TopDown_LookPart); + SAFE_RELEASE(m_pCamPosition_ShoulderPart); } void CPlayer::Describe_Entity() { + m_pCharacter_Controller->Describe_Entity(); + _float4 vMomentum = {}; + XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum()); + GUI::Text("%.2f %.2f %.2f %.1f ", vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); + + wchar_t buf[128]; + swprintf_s(buf, L"Momentum: %.2f %.2f %.2f %.2f\n", + vMomentum.x, vMomentum.y, vMomentum.z, vMomentum.w); + + OutputDebugStringW(buf); + _char label[256]; for (auto& iter : m_KeyFrames) { @@ -312,31 +311,18 @@ void CPlayer::Describe_Entity() GUI::DragFloat3("Pos", Pos3); - _float RotR,RotU,RotL; + _float RotR, RotU, RotL; RotR = XMVectorGetX(m_pTransformCom->Get_State(STATE::RIGHT)); RotU = XMVectorGetY(m_pTransformCom->Get_State(STATE::UP)); RotL = XMVectorGetZ(m_pTransformCom->Get_State(STATE::LOOK)); float Rot3[3] = { RotR, RotU,RotL }; GUI::DragFloat3("Rot", Rot3); + + + string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); + GUI::Text(AnimList.c_str()); + + //GUI::Checkbox("Render", &m_bVisible); } - -_bool CPlayer::Check(FSMSTATE::ESTATE state) -{ - for (auto& cond : m_InputConditions) - { - if (cond.state == state) - return cond.checker(); - } - return false; -} - -_bool CPlayer::IsSprint() -{ - if (m_pGameInstance->Key_Down(DIK_LSHIFT)) - { - return m_bSprintToggle = !m_bSprintToggle; - } - return false; -} diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp new file mode 100644 index 000000000..b5389679f --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp @@ -0,0 +1,691 @@ +#include "pch.h" +#include "Player.h" + +#include "GameInstance.h" +#include "CamPosition_Socket.h" +#include "Camera_Gaze.h" +#include "CamPosition_Arm.h" +#include "Wand.h" +#include "Character_Controller.h" +#include "CallBack_Playable_Behavior.h" +#include "CamPosition_Shoulder.h" +#include "CallBack_Playable_HitReport.h" + +#pragma region STATE +#include "State_Idle.h" +#include "State_Dodge.h" +#include "State_Jump.h" +#include "State_Land.h" +#include "State_Move.h" +#include "State_Combat.h" +#pragma endregion + +#include "Bombard.h" +#include "Decendo.h" + +#pragma region States +void CPlayer::TestKeyInput(_float fTimeDelta) +{ + if (m_pGameInstance->Key_Down(DIK_F1)) + { + m_eSpell = STATEANIM::ACCIO; + } + if (m_pGameInstance->Key_Down(DIK_F2)) + { + m_eSpell = STATEANIM::DESCENDO; + } + if (m_pGameInstance->Key_Down(DIK_F3)) + { + m_eSpell = STATEANIM::DEPULSO; + } + if (m_pGameInstance->Key_Down(DIK_F4)) + { + m_eSpell = STATEANIM::DIFFINDO; + } + if (m_pGameInstance->Key_Down(DIK_F5)) + { + m_eSpell = STATEANIM::DISILLUSION_ENTER; + } + if (m_pGameInstance->Key_Down(DIK_F6)) + { + m_eSpell = STATEANIM::DISILLUSION_EXIT; + } + +} + +HRESULT CPlayer::InputAction() +{ + if ( + m_pGameInstance->Key_Down(DIK_SPACE) + || m_pGameInstance->Key_Down(DIK_LCONTROL) + || m_pGameInstance->Key_Down(DIK_E) + || m_pGameInstance->Key_Down(DIK_R) + || m_pGameInstance->Key_Down(DIK_Q) + || m_pGameInstance->Mouse_Up(DIM_LBUTTON) + || m_pGameInstance->Key_Down(DIK_LSHIFT) + || m_pGameInstance->Key_Down(DIK_C) + || m_pGameInstance->Key_Down(DIK_V) + ) + { + return S_OK; + } + return E_FAIL; +} + +HRESULT CPlayer::InputMove() +{ + if (m_pGameInstance->Key_Pressing(DIK_W) + || m_pGameInstance->Key_Pressing(DIK_A) + || m_pGameInstance->Key_Pressing(DIK_S) + || m_pGameInstance->Key_Pressing(DIK_D)) + { + return S_OK; + } + return E_FAIL; +} + +HRESULT CPlayer::InputSpell() +{ + if ( + m_pGameInstance->Key_Down(DIK_1) + || m_pGameInstance->Key_Down(DIK_2) + || m_pGameInstance->Key_Down(DIK_3) + || m_pGameInstance->Key_Down(DIK_4) + ) + { + return S_OK; + } + return E_FAIL; +} + +void CPlayer::Behavior_IdleEnter() { + m_pFSM->Enable_State(FSMSTATE::IDLE); + pair<_uint, _bool> pairAnimInfo = m_Animation[STATEANIM::IDLE]; + + if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG | FSMSTATE::WALK | FSMSTATE::SPRINT)) { + + if (m_pFSM->IsEnable_Previous(FSMSTATE::WALK)) { + pairAnimInfo = m_Animation[STATEANIM::WALK_STOP]; + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::SPRINT)) { + pairAnimInfo = m_Animation[STATEANIM::JOG_STOP]; + } + + else if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG)) { + pairAnimInfo = m_Animation[STATEANIM::JOG_STOP]; + } + } + m_bSprintToggle = false; + m_bWalkToggle = false; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_IdleExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + // S_OK -> 현 상태 유지 + // E_FAIL -> 현 상태 탈출 + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_SPACE)) { + m_pFSM->Change_State(FSMSTATE::JUMP); + } + else if (m_pGameInstance->Key_Down(DIK_LCONTROL)) { + m_pFSM->Change_State(FSMSTATE::DODGE); + } + else if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + return E_FAIL; + } + + if (SUCCEEDED(InputMove())) { + + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + + if (m_pModelCom->IsFinishedAnim()) + { + pairAnimInfo = m_Animation[STATEANIM::IDLE]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return S_OK; +} + +void CPlayer::Behavior_IdleExit() +{ + m_pFSM->Disable_State(FSMSTATE::IDLE); +} + +void CPlayer::Behavior_MoveEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + _bool bFoward = m_pGameInstance->Key_Pressing(DIK_W); + _bool bLeft = m_pGameInstance->Key_Pressing(DIK_A); + _bool bRight = m_pGameInstance->Key_Pressing(DIK_D); + _bool bBackward = m_pGameInstance->Key_Pressing(DIK_S); + m_pFSM->Enable_State(FSMSTATE::MOVE); + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::DODGE)) { + if (true == m_bSprintToggle) { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_bWalkToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + } + else if (true == m_bWalkToggle) { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_bSprintToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else if (true == bBackward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_BWD]; + } + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_bSprintToggle = false; + m_bWalkToggle = false; + if (bFoward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + else if (bBackward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; + m_fAmount = 0.2f; + } + + } + } + else { // While Moving + if (true == m_bSprintToggle) { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_bWalkToggle = false; + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + + } + else if (true == m_bWalkToggle) { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_bSprintToggle = false; + if (true == bFoward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else if (true == bBackward) { + pairAnimInfo = m_Animation[STATEANIM::WALK_BWD]; + } + } + else { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_bSprintToggle = false; + m_bWalkToggle = false; + if (bFoward) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + } + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount); + m_fAmount = 1.f; +} + +HRESULT CPlayer::Behavior_MoveExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_SPACE)) { + m_pFSM->Change_State(FSMSTATE::JUMP); + } + else if (m_pGameInstance->Key_Down(DIK_LCONTROL)) { + m_pFSM->Change_State(FSMSTATE::DODGE); + } + else if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } + else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) { + m_bSprintToggle = !m_bSprintToggle; + m_bWalkToggle = false; + if (m_bSprintToggle) + { + m_pFSM->Enable_State(FSMSTATE::SPRINT); + m_pFSM->Disable_State(FSMSTATE::JOG); + pairAnimInfo = m_Animation[STATEANIM::SPRINT]; + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_pFSM->Disable_State(FSMSTATE::SPRINT); + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + else if (m_pGameInstance->Key_Down(DIK_C)) { + m_bWalkToggle = !m_bWalkToggle; + m_bSprintToggle = false; + if (m_bWalkToggle) + { + m_pFSM->Enable_State(FSMSTATE::WALK); + m_pFSM->Disable_State(FSMSTATE::JOG); + pairAnimInfo = m_Animation[STATEANIM::WALK_FWD]; + } + else + { + m_pFSM->Enable_State(FSMSTATE::JOG); + m_pFSM->Disable_State(FSMSTATE::WALK); + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return E_FAIL; + } + if (SUCCEEDED(InputMove())) { + if (m_pModelCom->IsFinishedAnim() && m_pFSM->IsEnable(FSMSTATE::JOG)) + { + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + return S_OK; + } + + m_pFSM->Change_State(FSMSTATE::IDLE); + + return E_FAIL; +} + +void CPlayer::Behavior_MoveExit() +{ + m_pFSM->Disable_State(FSMSTATE::MOVE | FSMSTATE::SPRINT | FSMSTATE::JOG | FSMSTATE::WALK); +} + +void CPlayer::Behavior_JumpEnter() +{ + pair<_uint, _bool> pairAnimInfo; + m_pFSM->Enable_State(FSMSTATE::JUMP); + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE | FSMSTATE::WALK | FSMSTATE::JOG | FSMSTATE::SPRINT)) { + if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP); + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::SPRINT)) { + pairAnimInfo = m_Animation[STATEANIM::JUMP_SPRINT]; + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::WALK)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP); + } + else if (m_pFSM->IsEnable_Previous(FSMSTATE::JOG)) { + pairAnimInfo = Get_AnimInfo(STATEANIM::JUMP_JOG); + } + } + else { + // Drop? + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_JumpExitCheck() +{ + if (IsCurrentKeyFrame("Jump")) { + m_pFSM->Change_State(FSMSTATE::LAND); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_JumpExit() +{ + m_pFSM->Disable_State(FSMSTATE::JUMP); +} + +void CPlayer::Behavior_LandEnter() +{ + m_pFSM->Enable_State(FSMSTATE::LAND); + pair<_uint, _bool> pairAnimInfo = Get_AnimInfo(STATEANIM::LAND); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_LandExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } // 혹시 Land to (Jog, Sprint, Dodge) 같은 애니메이션 있으면 여기에 분기 조건 넣으면 됨 + + if (SUCCEEDED(InputMove())) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_LandExit() +{ + m_pFSM->Disable_State(FSMSTATE::LAND); +} + +void CPlayer::Behavior_DodgeEnter() +{ + // 혹시 @@ to Dodge 있으면 여기에 + m_pFSM->Enable_State(FSMSTATE::DODGE); + pair<_uint, _bool> pairAnimInfo = Get_AnimInfo(STATEANIM::DODGE); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_DodgeExitCheck() +{ + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + + if (SUCCEEDED(InputMove())&&IsCurrentKeyFrame("Dodge")) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + return S_OK; +} + +void CPlayer::Behavior_DodgeExit() +{ + m_pFSM->Disable_State(FSMSTATE::DODGE); +} + +void CPlayer::Behavior_CombatEnter() +{ + pair<_uint, _bool> pairAnimInfo = {}; + m_pFSM->Enable_State(FSMSTATE::COMBAT); + + if (m_pGameInstance->Key_Down(DIK_R)) { + m_pFSM->Enable_State(FSMSTATE::SKILL); + pairAnimInfo = m_Animation[STATEANIM::SKILL]; + } + else if (m_pGameInstance->Key_Down(DIK_Q)) { + m_pFSM->Enable_State(FSMSTATE::SKILL2); + pairAnimInfo = m_Animation[STATEANIM::SKILL2]; + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) { + m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + } + else if (SUCCEEDED(InputSpell())) { + m_pFSM->Enable_State(FSMSTATE::SPELL); + if (m_eSpell != STATEANIM::END) + { + switch (m_eSpell) + { + case STATEANIM::DEPULSO: + pairAnimInfo = m_Animation[STATEANIM::DEPULSO]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DIFFINDO: + pairAnimInfo = m_Animation[STATEANIM::DIFFINDO]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DISILLUSION_ENTER: + pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_ENTER]; + m_eSpell = STATEANIM::END; + break; + case STATEANIM::DISILLUSION_EXIT: + pairAnimInfo = m_Animation[STATEANIM::DISILLUSION_EXIT]; + m_eSpell = STATEANIM::END; + break; + default: + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + break; + } + } + else + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + } + else if (m_pGameInstance->Key_Down(DIK_V)) { + m_pFSM->Enable_State(FSMSTATE::MAPHELP); + pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; + + } + + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); +} + +HRESULT CPlayer::Behavior_CombatExitCheck() +{ + pair<_uint, _bool> pairAnimInfo; + if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell())) { + if (m_pGameInstance->Key_Down(DIK_R)) + { + m_pFSM->Enable_State(FSMSTATE::SKILL); + } + else if (m_pGameInstance->Key_Down(DIK_Q)) + { + m_pFSM->Enable_State(FSMSTATE::SKILL2); + pairAnimInfo = m_Animation[STATEANIM::SKILL2]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) + { + m_pFSM->Enable_State(FSMSTATE::LIGHT_ATTACK); + _uint iIndex = m_pModelCom->Get_AnimIndex(); + if (m_Animation[STATEANIM::LIGHT_ATTACK].first <= iIndex && m_Animation[STATEANIM::LIGHT_ATTACK].first + 3 > iIndex) { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (fRatio >= 0.1f) { + pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK]; + pairAnimInfo.first = iIndex + 1; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + } + else if (SUCCEEDED(InputSpell())) + { + m_pFSM->Enable_State(FSMSTATE::SPELL); + _uint iIndex = m_pModelCom->Get_AnimIndex(); + if (m_Animation[STATEANIM::SPELL].first <= iIndex && m_Animation[STATEANIM::SPELL].first + 3 > iIndex) { + _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio(); + if (fRatio >= 0.15f) { + pairAnimInfo = m_Animation[STATEANIM::SPELL]; + pairAnimInfo.first = iIndex + 1; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + } + else if (m_pGameInstance->Key_Down(DIK_V)) + { + m_pFSM->Enable_State(FSMSTATE::MAPHELP); + pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } + } + + if (m_pFSM->IsEnable(FSMSTATE::SPELL) && IsCurrentKeyFrame("Combat")) + { + if (m_eSpell != STATEANIM::END) + { + switch (m_eSpell) + { + case STATEANIM::ACCIO: + pairAnimInfo = m_Animation[STATEANIM::ACCIO]; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, nullptr, this))) { + assert(false); + return E_FAIL; + } + + + break; + case STATEANIM::DESCENDO: + { + pairAnimInfo = m_Animation[STATEANIM::DESCENDO]; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), CURRENT_LEVEL, LAYER_HITBOX, nullptr, this))) { + assert(false); + return E_FAIL; + } + } + break; + default: + break; + } + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_eSpell = STATEANIM::END; + return E_FAIL; + } + } + + if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + + if (m_pModelCom->IsFinishedAnim()) { + m_pFSM->Change_State(FSMSTATE::IDLE); + return E_FAIL; + } + + return E_FAIL; +} + +void CPlayer::Behavior_CombatExit() +{ + m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP); +} + +void CPlayer::Add_FSM() +{ +#pragma region Behavior_Movement_NotFocus + { + CState_Idle::STATE_IDLE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_IdleEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_IdleExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_IdleExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc)); + } + { + CState_Move::STATE_MOVE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_MoveExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Movement_Focus + { + CState_Jump::STATE_JUMP_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_JumpEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_JumpExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_JumpExit(); }; + m_States.emplace(FSMSTATE::JUMP, CState_Jump::Create(&Desc)); + } + { + CState_Land::STATE_LAND_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_LandEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_LandExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_LandExit(); }; + m_States.emplace(FSMSTATE::LAND, CState_Land::Create(&Desc)); + } + { + CState_Dodge::STATE_DODGE_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_DodgeEnter(); }; + Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_DodgeExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_DodgeExit(); }; + Desc.funcPriorityUpdate = [this](_float fTimeDelta) { + if (m_pGameInstance->Key_Pressing(DIK_A)) { m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta); } + if (m_pGameInstance->Key_Pressing(DIK_D)) { m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta); }; + }; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::DODGE, CState_Dodge::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_NotFocus + { + CState_Combat::STATE_COMBAT_DESC Desc{}; + Desc.pOwner = this; + Desc.funcEnterEvent = [this]() { Behavior_CombatEnter(); }; + Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_CombatExitCheck(); }; + Desc.funcExitEvent = [this]() { Behavior_CombatExit(); }; + Desc.funcPriorityUpdate = nullptr; + Desc.funcLateUpdate = nullptr; + m_States.emplace(FSMSTATE::COMBAT, CState_Combat::Create(&Desc)); + } +#pragma endregion +#pragma region Behavior_Combat_Focus + +#pragma endregion + +} + +void CPlayer::Set_Anim() +{ + m_Animation[STATEANIM::IDLE] = { 266,true }; + m_Animation[STATEANIM::IDLE_TURN_L] = { 270,false }; + m_Animation[STATEANIM::IDLE_TURN_R] = { 430,false }; + m_Animation[STATEANIM::IDLE_TURN_BWD] = { 268,false }; + + m_Animation[STATEANIM::WALK_FWD] = { 625,true }; + m_Animation[STATEANIM::WALK_BWD] = { 166,true }; + m_Animation[STATEANIM::WALK_STOP] = { 344,false }; + + m_Animation[STATEANIM::JOG_FWD] = { 167,true }; + m_Animation[STATEANIM::JOG_BWD] = { 154,false}; + m_Animation[STATEANIM::JOG_STOP] = { 289,false }; + + m_Animation[STATEANIM::JUMP] = { 205,false }; + m_Animation[STATEANIM::JUMP_JOG] = { 203,false }; + m_Animation[STATEANIM::JUMP_SPRINT] = { 207,false }; + + m_Animation[STATEANIM::SPRINT] = { 599,true }; + + m_Animation[STATEANIM::LAND] = { 259,false }; + + m_Animation[STATEANIM::DODGE] = { 802,false }; + m_Animation[STATEANIM::DODGE_BLINK] = { 799,true }; + + m_Animation[STATEANIM::SKILL] = { 593,false }; + m_Animation[STATEANIM::SKILL2] = { 915,false }; + m_Animation[STATEANIM::LIGHT_ATTACK] = { 413,false }; + m_Animation[STATEANIM::SPELL] = { 696,false }; + m_Animation[STATEANIM::MAPHELP] = { 122,false }; + m_Animation[STATEANIM::ACCIO] = { 417,false }; + m_Animation[STATEANIM::DESCENDO] = { 418,false }; + m_Animation[STATEANIM::DEPULSO] = { 782,false }; + m_Animation[STATEANIM::DIFFINDO] = { 786,false }; + m_Animation[STATEANIM::LUMOS] = { 782,false }; + m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false }; + m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false }; +} +#pragma endregion State + diff --git a/Jusin154_Team3D/Editor/Private/Potion.cpp b/Jusin154_Team3D/Editor/Private/Potion.cpp new file mode 100644 index 000000000..49ede637d --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Potion.cpp @@ -0,0 +1,222 @@ +#include "pch.h" +#include "Potion.h" +#include "GameInstance.h" + +CPotion::CPotion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CPotion::CPotion(const CPotion& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CPotion::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CPotion::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 220.f; + Desc.fY = 180.f; + Desc.fSizeX = 144.f; + Desc.fSizeY = 24.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 1.f; + return S_OK; +} + +void CPotion::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + + +void CPotion::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + m_fTime += fTimeDelta * m_fTimeMult; + + __super::Update(fTimeDelta); +} + +void CPotion::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CPotion::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CPotion::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CPotion::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + return S_OK; +} + +HRESULT CPotion::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_WoundCleaning"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + return S_OK; +} + +CPotion* CPotion::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CPotion* pInstance = new CPotion(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CPotion"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CPotion::Clone(void* pArg, CGameObject* pOwner) +{ + CPotion* pInstance = new CPotion(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSpell_Image"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CPotion::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CPotion::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp index a9fda49f4..489dd2283 100644 --- a/Jusin154_Team3D/Editor/Private/RootModelPart.cpp +++ b/Jusin154_Team3D/Editor/Private/RootModelPart.cpp @@ -2,7 +2,7 @@ #include "RootModelPart.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "ModelParts.h" #include "Body.h" #include "Head.h" @@ -71,6 +71,7 @@ void CRootModelPart::Update_Anim(_float fTimeDelta) { pModel->Set_PlayAnim(m_pMainModel->Get_PlayAnim()); pModel->Set_AnimSpeed(m_pMainModel->Get_AnimSpeed()); + pModel->ComputeAnimation(); pModel->Play_Animation(fTimeDelta,m_pTransformCom); } } @@ -98,7 +99,8 @@ void CRootModelPart::Change_Model(_uint iIndex) CModel* pModel = m_ModelParts[iIndex]->Get_Component(); pModel->Set_AnimationIndex(m_iAnimIndex); - pModel->Set_CurrentTrackPosition(m_fTrackPosition); + pModel->Set_CurrentTrackPosition(m_fTrackPosition); + pModel->ComputeAnimation(); pModel->Play_Animation(0.f, m_pTransformCom); if (iIndex == ENUM_CLASS(PARTSTYPE::BODY)) @@ -112,6 +114,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex) { m_pMainModel->Set_AnimationIndex(iAnimIndex); m_pMainModel->Set_CurrentTrackPosition(0.f); + m_pMainModel->ComputeAnimation(); m_pMainModel->Play_Animation(0.f, m_pTransformCom); for (auto& PartObject : m_ModelParts) { @@ -120,6 +123,7 @@ void CRootModelPart::Set_Animation(_uint iAnimIndex) { pModel->Set_AnimationIndex(m_pMainModel->Get_AnimIndex()); pModel->Set_CurrentTrackPosition(m_pMainModel->Get_CurrentTrackPosition()); + pModel->ComputeAnimation(); pModel->Play_Animation(0.f, m_pTransformCom); } } diff --git a/Jusin154_Team3D/Editor/Private/Slot_Number.cpp b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp new file mode 100644 index 000000000..c595674a8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Slot_Number.cpp @@ -0,0 +1,297 @@ +#include "pch.h" +#include "Slot_Number.h" +#include "GameInstance.h" + +CSlot_Number::CSlot_Number(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CSlot_Number::CSlot_Number(const CSlot_Number& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CSlot_Number::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CSlot_Number::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 0.f; + Desc.fY = 0.f; + Desc.fSizeX = 35.f; + Desc.fSizeY = 35.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + m_fAlpha = 1.f; + m_fTimeMult = 3.f; + m_fAlphaTime = 1.f; + m_fOffSetX = 101.f; + m_fOffSetY = 101.f; + m_iCols = 4; + UV(); + m_pVIBufferCom->Set_Cloned(true); + m_pVIBufferCom->Set_Pos(350.f, 30.f, m_fOffSetX, m_fOffSetY, m_iCols); + m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY); + m_pVIBufferCom->Set_ImageUV(pUVDesc); + return S_OK; +} + +void CSlot_Number::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CSlot_Number::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + m_fTime += fTimeDelta * m_fTimeMult; + __super::Update(fTimeDelta); +} + +void CSlot_Number::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + } + __super::Late_Update(fTimeDelta); +} + +HRESULT CSlot_Number::Render() +{ + if (FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ALPHABLEND)))) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) + { + return E_FAIL; + } + + return S_OK; +} + +_vector CSlot_Number::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +void CSlot_Number::SizeUpX(_float fSizeX) +{ + m_fSizeX = fSizeX; + m_pVIBufferCom->Set_SizeX(m_fSizeX); +} + +void CSlot_Number::SizeUpY(_float fSizeY) +{ + m_fSizeY = fSizeY; + m_pVIBufferCom->Set_SizeY(m_fSizeY); +} + +void CSlot_Number::SizeUpdate(_float fSizeX, _float fSizeY) +{ + m_fSizeX = fSizeX; + m_fSizeY = fSizeY; + m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY); +} + +HRESULT CSlot_Number::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CSlot_Number::Ready_Components(void* pArg) +{ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Slot_Number_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Number"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +void CSlot_Number::UV() +{ + pUVDesc[0].fUVStart = Meter_Index(1); + pUVDesc[0].fUVEnd = Compute_UVY(1); + pUVDesc[1].fUVStart = Meter_Index(2); + pUVDesc[1].fUVEnd = Compute_UVY(2); + pUVDesc[2].fUVStart = Meter_Index(3); + pUVDesc[2].fUVEnd = Compute_UVY(3); + pUVDesc[3].fUVStart = Meter_Index(4); + pUVDesc[3].fUVEnd = Compute_UVY(4); +} + +_float2 CSlot_Number::Meter_Index(_uint Number) +{ + m_fIamge_Size = { 320.f, 128.f }; + + _uint iXCount = 5; + _uint iYCount = 2; + + _float frameWidth = 64.f; + _float frameHeight = 64.f; + + _uint frameX = Number % iXCount; + _uint frameY = Number / iXCount; + + _float2 UVStart; + UVStart.x = frameX * frameWidth / m_fIamge_Size.x; + UVStart.y = frameY * frameHeight / m_fIamge_Size.y; + + return UVStart; +} + +_float2 CSlot_Number::Compute_UVY(_uint Number) +{ + m_fIamge_Size = { 320.f, 128.f }; + + _float frameWidth = 64.f; + _float frameHeight = 64.f; + + // Start 구함 + _float2 UVStart = Meter_Index(Number); + + _float2 UVEnd; + UVEnd.x = UVStart.x + (frameWidth / m_fIamge_Size.x); + UVEnd.y = UVStart.y + (frameHeight / m_fIamge_Size.y); + + return UVEnd; +} + +CSlot_Number* CSlot_Number::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CSlot_Number* pInstance = new CSlot_Number(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CSlot_Number"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CSlot_Number::Clone(void* pArg, CGameObject* pOwner) +{ + CSlot_Number* pInstance = new CSlot_Number(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSlot_Number"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CSlot_Number::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CSlot_Number::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp index 2fb1a9823..9e7923d0b 100644 --- a/Jusin154_Team3D/Editor/Private/Spell_Image.cpp +++ b/Jusin154_Team3D/Editor/Private/Spell_Image.cpp @@ -21,10 +21,10 @@ HRESULT CSpell_Image::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -160.f; - Desc.fY = 50.f; - Desc.fSizeX = 140.f; - Desc.fSizeY = 140.f; + Desc.fX = 380.f; + Desc.fY = 0.f; + Desc.fSizeX = 100.f; + Desc.fSizeY = 100.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -42,7 +42,6 @@ HRESULT CSpell_Image::Initialize(void* pArg) m_fAlpha = 1.f; m_fAlphaTime = 1.f; m_fSortZ = 1.f; - m_iSkillType = ENUM_CLASS(SKILLTYPE::SHADOW); return S_OK; } @@ -97,9 +96,7 @@ void CSpell_Image::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } __super::Late_Update(fTimeDelta); } } @@ -161,10 +158,6 @@ HRESULT CSpell_Image::Bind_ShaderResources() { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSkillType, sizeof(_float)))) - { - return E_FAIL; - } if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) { return E_FAIL; @@ -179,6 +172,7 @@ HRESULT CSpell_Image::Bind_ShaderResources() } return S_OK; } + HRESULT CSpell_Image::Ready_Components(void* pArg) { if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) diff --git a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp index 9c7d3c578..efb75a6a9 100644 --- a/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp +++ b/Jusin154_Team3D/Editor/Private/Spell_Overlay.cpp @@ -21,10 +21,10 @@ HRESULT CSpell_Overlay::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -160.f; - Desc.fY = 50.f; - Desc.fSizeX = 140.f; - Desc.fSizeY = 140.f; + Desc.fX = 380.f; + Desc.fY = 0.f; + Desc.fSizeX = 100.f; + Desc.fSizeY = 100.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -116,9 +116,7 @@ void CSpell_Overlay::Late_Update(_float fTimeDelta) return; } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } } __super::Late_Update(fTimeDelta); } @@ -129,7 +127,7 @@ HRESULT CSpell_Overlay::Render() { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLTYPE)))) { return E_FAIL; } @@ -233,7 +231,7 @@ HRESULT CSpell_Overlay::Ready_Components(void* pArg) { return E_FAIL; } - if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellType_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp index 13a2b9e6b..ab7432f97 100644 --- a/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp +++ b/Jusin154_Team3D/Editor/Private/Spell_Slot.cpp @@ -21,10 +21,10 @@ HRESULT CSpell_Slot::Initialize(void* pArg) { CUIObject::UIOBJECT_DESC Desc{}; - Desc.fX = -160.f; - Desc.fY = 50.f; - Desc.fSizeX = 140.f; - Desc.fSizeY = 140.f; + Desc.fX = 0.f; + Desc.fY = 0.f; + Desc.fSizeX = 100.f; + Desc.fSizeY = 100.f; m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; @@ -39,8 +39,15 @@ HRESULT CSpell_Slot::Initialize(void* pArg) m_fAlpha = 1.f; m_fTimeMult = 3.f; - m_fAngle = XMConvertToRadians(-135); + m_fAngle = XMConvertToRadians(45); m_fAlphaTime = 1.f; + m_fOffSetX = 101.f; + m_fOffSetY = 101.f; + m_iCols = 4; + m_pVIBufferCom->Set_Cloned(true); + m_pVIBufferCom->Set_Pos(380.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols); + m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY); + m_pVIBufferCom->Set_ImageUV(); return S_OK; } @@ -85,7 +92,6 @@ void CSpell_Slot::Update(_float fTimeDelta) } m_fTime += fTimeDelta * m_fTimeMult; __super::Update(fTimeDelta); - } void CSpell_Slot::Late_Update(_float fTimeDelta) @@ -96,10 +102,7 @@ void CSpell_Slot::Late_Update(_float fTimeDelta) } if (m_bVisible) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) - { m_pGameInstance->Add_RenderGroup(RENDER::UI, this); - } } __super::Late_Update(fTimeDelta); } @@ -110,7 +113,7 @@ HRESULT CSpell_Slot::Render() { return E_FAIL; } - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT)))) + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { return E_FAIL; } @@ -131,6 +134,25 @@ _vector CSpell_Slot::Get_WorldPostion() return m_pTransformCom->Get_State(STATE::POSITION); } +void CSpell_Slot::SizeUpX(_float fSizeX) +{ + m_fSizeX = fSizeX; + m_pVIBufferCom->Set_SizeX(m_fSizeX); +} + +void CSpell_Slot::SizeUpY(_float fSizeY) +{ + m_fSizeY = fSizeY; + m_pVIBufferCom->Set_SizeY(m_fSizeY); +} + +void CSpell_Slot::SizeUpdate(_float fSizeX, _float fSizeY) +{ + m_fSizeX = fSizeX; + m_fSizeY = fSizeY; + m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY); +} + HRESULT CSpell_Slot::Bind_ShaderResources() { if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) @@ -169,12 +191,13 @@ HRESULT CSpell_Slot::Bind_ShaderResources() { return E_FAIL; } + return S_OK; } HRESULT CSpell_Slot::Ready_Components(void* pArg) { - if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr))) { return E_FAIL; } @@ -182,7 +205,7 @@ HRESULT CSpell_Slot::Ready_Components(void* pArg) { return E_FAIL; } - if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr))) { return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp b/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp new file mode 100644 index 000000000..9820becb0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Spell_Slot_Preview.cpp @@ -0,0 +1,231 @@ +#include "pch.h" +#include "Spell_Slot_Preview.h" +#include "GameInstance.h" + +CSpell_Slot_Preview::CSpell_Slot_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CSpell_Slot_Preview::CSpell_Slot_Preview(const CSpell_Slot_Preview& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CSpell_Slot_Preview::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CSpell_Slot_Preview::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 0.f; + Desc.fY = 0.f; + Desc.fSizeX = 100.f; + Desc.fSizeY = 100.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fAlpha = 1.f; + m_fTimeMult = 3.f; + m_fAngle = XMConvertToRadians(45); + m_fAlphaTime = 1.f; + m_pVIBufferCom->Set_Cloned(true); + //m_pVIBufferCom->Set_Pos(0.f, 0.f, m_fOffSetX, m_fOffSetY, m_iCols); + m_pVIBufferCom->Set_Size(m_fSizeX, m_fSizeY); + m_pVIBufferCom->Set_ImageUV(); + return S_OK; +} + +void CSpell_Slot_Preview::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CSpell_Slot_Preview::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + m_fTime += fTimeDelta * m_fTimeMult; + __super::Update(fTimeDelta); +} + +void CSpell_Slot_Preview::Late_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + if (m_bVisible) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + } + __super::Late_Update(fTimeDelta); +} + +HRESULT CSpell_Slot_Preview::Render() +{ + if(FAILED(Bind_ShaderResources())) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) + { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) + { + return E_FAIL; + } + + return S_OK; +} + +_vector CSpell_Slot_Preview::Get_WorldPostion() +{ + return m_pTransformCom->Get_State(STATE::POSITION); +} + +HRESULT CSpell_Slot_Preview::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CSpell_Slot_Preview::Ready_Components(void* pArg) +{ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Spell_Slot_Previe_UI_Instance"), (CComponent**)&m_pVIBufferCom, nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIINSTANCE, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +CSpell_Slot_Preview* CSpell_Slot_Preview::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CSpell_Slot_Preview* pInstance = new CSpell_Slot_Preview(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CSpell_Slot_Preview"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CSpell_Slot_Preview::Clone(void* pArg, CGameObject* pOwner) +{ + CSpell_Slot_Preview* pInstance = new CSpell_Slot_Preview(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSpell_Slot"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CSpell_Slot_Preview::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CSpell_Slot_Preview::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/Spell_UI.cpp b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp new file mode 100644 index 000000000..f6f8fe911 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Spell_UI.cpp @@ -0,0 +1,307 @@ +#include "pch.h" +#include "Spell_UI.h" +#include "GameInstance.h" + +CSpell_UI::CSpell_UI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + :CElementObject(pDevice, pContext) +{ +} + +CSpell_UI::CSpell_UI(const CSpell_UI& rhs) + :CElementObject(rhs) +{ +} + +HRESULT CSpell_UI::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CSpell_UI::Initialize(void* pArg) +{ + CUIObject::UIOBJECT_DESC Desc{}; + + Desc.fX = 650.f; + Desc.fY = -90.f; + Desc.fSizeX = 180.f; + Desc.fSizeY = 50.f; + + m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) }; + + if (FAILED(__super::Initialize(&Desc))) + { + return E_FAIL; + } + if (FAILED(Ready_Components(pArg))) + { + return E_FAIL; + } + + m_fTimeMult = 3.f; + m_fAlpha = 1.f; + m_fAlphaTime = 3.f; + //m_vImageUV[0] = Image_UV(0); + //m_vImageUV[1] = Alphabet_UV('R'); + //m_vImageUV[2] = Image_UV(1); + //m_vImageUV[3] = Alphabet_UV('T'); + Set_ImagePos(); + return S_OK; +} + +_float4 CSpell_UI::Alphabet_UV(_tchar Alphabet) +{ + _uint Number = CMyTools::AlphabetToInt(Alphabet); + + _float2 fIamge_Size = { 320.f, 384.f }; + + _uint iXCount = 5; + _uint iYCount = 6; + + _float frameWidth = 64.f; + _float frameHeight = 64.f; + + _uint frameX = Number % iXCount; + _uint frameY = Number / iXCount; + + _float2 UVStart; + UVStart.x = frameX * frameWidth / fIamge_Size.x; + UVStart.y = frameY * frameHeight / fIamge_Size.y; + + _float2 UVEnd; + UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x); + UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y); + + _float4 UV{}; + + return UV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y); +} + +_float4 CSpell_UI::Image_UV(_uint Index) +{ + _float2 fIamge_Size = { 256.f, 128.f }; + + _uint iXCount = 2; + _uint iYCount = 1; + + _float frameWidth = 128.f; + _float frameHeight = 128.f; + + _uint frameX = Index % iXCount; + _uint frameY = Index / iXCount; + + _float2 UVStart; + UVStart.x = frameX * frameWidth / fIamge_Size.x; + UVStart.y = frameY * frameHeight / fIamge_Size.y; + + _float2 UVEnd; + UVEnd.x = UVStart.x + (frameWidth / fIamge_Size.x); + UVEnd.y = UVStart.y + (frameHeight / fIamge_Size.y); + + _float4 UV{}; + + return UV = _float4(UVStart.x, UVStart.y, UVEnd.x, UVEnd.y); +} + +void CSpell_UI::Set_ImagePos() +{ + m_vUV[0] = _float2(16,25); + m_vUV[1] = _float2(42,25); + m_vUV[2] = _float2(138,25); + m_vUV[3] = _float2(164,25); +} + +void CSpell_UI::Priority_Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + __super::Priority_Update(fTimeDelta); +} + +void CSpell_UI::Update(_float fTimeDelta) +{ + if (!__super::Chack_Visible()) + { + return; + } + m_fTime += fTimeDelta * m_fTimeMult; + + if (m_bFadeIn == true) + { + if (m_fAlpha <= 1.f) + m_fAlpha += fTimeDelta * m_fAlphaTime; + + if (m_fAlpha >= 1.f) + { + m_bFadeIn = false; + m_fAlpha = 1.f; + } + } + + if (m_bFadeOut == true) + { + if (m_fAlpha >= 0.f) + m_fAlpha -= fTimeDelta; + + if (m_fAlpha <= 0.f) + { + m_bFadeOut = false; + m_fAlpha = 0.f; + } + } + + __super::Update(fTimeDelta); +} + +void CSpell_UI::Late_Update(_float fTimeDelta) +{ + if (__super::Chack_Visible()) + { + m_pGameInstance->Add_RenderGroup(RENDER::UI, this); + __super::Late_Update(fTimeDelta); + } +} + +HRESULT CSpell_UI::Render() +{ + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Bind_Resources())) { + return E_FAIL; + } + if (FAILED(m_pVIBufferCom->Render())) { + return E_FAIL; + } + + return S_OK; +} + +_vector CSpell_UI::Get_WorldPostion() +{ + return m_pOwner->Get_WorldPostion(); +} + +HRESULT CSpell_UI::Bind_ShaderResources() +{ + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix))) + { + return E_FAIL; + } + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0))) + { + return E_FAIL; + } + //if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0))) + //{ + // return E_FAIL; + //} + //if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0))) + //{ + // return E_FAIL; + //} + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float)))) + { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float)))) + { + return E_FAIL; + } + //if (FAILED(m_pShaderCom->Bind_RawValue("g_fPosition", m_vUV, sizeof(m_vUV)))) + //{ + // return E_FAIL; + //} + //if (FAILED(m_pShaderCom->Bind_RawValue("g_fImagesUV", m_vImageUV, sizeof(m_vImageUV)))) + //{ + // return E_FAIL; + //} + return S_OK; +} + +HRESULT CSpell_UI::Ready_Components(void* pArg) +{ + if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Revelio_SpellSelectionGridIcon"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Revelio_SpellSelectionGridIcon"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Keyboard"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr))) + { + return E_FAIL; + } + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + return S_OK; +} + +CSpell_UI* CSpell_UI::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CSpell_UI* pInstance = new CSpell_UI(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CSpell_UI"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CSpell_UI::Clone(void* pArg, CGameObject* pOwner) +{ + CSpell_UI* pInstance = new CSpell_UI(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CSpell_UI"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CSpell_UI::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pDiffuse_TextureCom1); + SAFE_RELEASE(m_pDiffuse_TextureCom2); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pVIBufferCom); +} + +void CSpell_UI::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/State_Cast.cpp b/Jusin154_Team3D/Editor/Private/State_Cast.cpp deleted file mode 100644 index 3915da0eb..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Cast.cpp +++ /dev/null @@ -1,75 +0,0 @@ -#include "pch.h" -#include "State_Cast.h" -#include "Unit.h" - - -CState_Cast::CState_Cast() - :CState() -{ -} - -void CState_Cast::Enter() -{ - if (m_pFSM->Get_PrevState() == FSMSTATE::CAST) - return; - - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::CAST); - m_pModel->Set_AnimationIndex(anim.first, anim.second); -} - -void CState_Cast::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Cast::Exit() -{ -} - -_bool CState_Cast::CheckExitState() -{ - if (m_pModel->IsFinishedAnim()) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::IDLE); - return true; - } - - if (m_pOwner->Check(FSMSTATE::CAST)) - { - _uint combo = m_pOwner->Next_LightCombo(); - m_pOwner->Set_LightCombo(combo); - if (combo >= 3) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::IDLE); - return true; - } - - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::CAST); - m_pModel->Set_AnimationIndex(anim.first + combo, anim.second); - - m_pFSM->Change_State(FSMSTATE::CAST); - - return true; - } - - if (m_pOwner->Check(FSMSTATE::SKILL2)) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::SKILL2); - return true; - } - - return false; -} - -void CState_Cast::Free() -{ - __super::Free(); -} - -void CState_Cast::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Combat.cpp b/Jusin154_Team3D/Editor/Private/State_Combat.cpp index 932fe1f57..1e8e15653 100644 --- a/Jusin154_Team3D/Editor/Private/State_Combat.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Combat.cpp @@ -4,47 +4,55 @@ CState_Combat::CState_Combat() - :CState() + :CState_Root() { } void CState_Combat::Enter() { - + __super::Enter(); } -void CState_Combat::Update(_float fTimeDelta) +HRESULT CState_Combat::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; } void CState_Combat::Exit() { + __super::Exit(); } -_bool CState_Combat::CheckExitState() +HRESULT CState_Combat::Initialize(STATE_COMBAT_DESC* pDesc) { - if (m_pOwner->Check(FSMSTATE::MOVE) && - !m_pOwner->Check(FSMSTATE::COMBAT)) - { - m_pFSM->Change_State(FSMSTATE::MOVE); - - if (m_pOwner->Check(FSMSTATE::WALK)) - m_pFSM->Change_State(FSMSTATE::WALK); - - if (m_pOwner->Check(FSMSTATE::SPRINT)) - m_pFSM->Change_State(FSMSTATE::SPRINT); - - if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); - - return true; + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); - return false; + return S_OK; } +CState_Combat* CState_Combat::Create(STATE_COMBAT_DESC* pDesc) +{ + CState_Combat* pInstance = new CState_Combat; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} void CState_Combat::Free() { diff --git a/Jusin154_Team3D/Editor/Private/State_Dodge.cpp b/Jusin154_Team3D/Editor/Private/State_Dodge.cpp index e2052ad0b..b2c342f49 100644 --- a/Jusin154_Team3D/Editor/Private/State_Dodge.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Dodge.cpp @@ -4,35 +4,54 @@ CState_Dodge::CState_Dodge() - :CState() + :CState_Root() { } void CState_Dodge::Enter() { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::DODGE); - m_pModel->Set_AnimationIndex(anim.first, anim.second); + __super::Enter(); } -void CState_Dodge::Update(_float fTimeDelta) +HRESULT CState_Dodge::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (FAILED(__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; } void CState_Dodge::Exit() { + __super::Exit(); } -_bool CState_Dodge::CheckExitState() +HRESULT CState_Dodge::Initialize(STATE_DODGE_DESC* pDesc) { - if (m_pModel->IsFinishedAnim()) - m_pFSM->Change_State(FSMSTATE::IDLE); + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); - if (m_pOwner->Check(FSMSTATE::WALK) && m_pOwner->IsCurrentKeyFrame("Dodge")) - m_pFSM->Change_State(FSMSTATE::WALK); + return S_OK; +} - return false; +CState_Dodge* CState_Dodge::Create(STATE_DODGE_DESC* pDesc) +{ + CState_Dodge* pInstance = new CState_Dodge; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; } void CState_Dodge::Free() diff --git a/Jusin154_Team3D/Editor/Private/State_Idle.cpp b/Jusin154_Team3D/Editor/Private/State_Idle.cpp index fc24940e1..63497dcb1 100644 --- a/Jusin154_Team3D/Editor/Private/State_Idle.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Idle.cpp @@ -3,75 +3,54 @@ #include "Unit.h" CState_Idle::CState_Idle() - :CState() + :CState_Root() { } void CState_Idle::Enter() { - if (m_pFSM->Get_PrevState() == FSMSTATE::WALK) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::WALK_STOP); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - return; - } - else - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::IDLE); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } + __super::Enter(); } -void CState_Idle::Update(_float fTimeDelta) +HRESULT CState_Idle::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; } void CState_Idle::Exit() { + __super::Exit(); } -_bool CState_Idle::CheckExitState() +HRESULT CState_Idle::Initialize(STATE_IDLE_DESC* pDesc) { - if (m_pOwner->Check(FSMSTATE::MOVE)) - { - m_pFSM->Change_State(FSMSTATE::MOVE); - - if (m_pOwner->Check(FSMSTATE::WALK)) - m_pFSM->Change_State(FSMSTATE::WALK); - - if (m_pOwner->Check(FSMSTATE::SPRINT)) - m_pFSM->Change_State(FSMSTATE::SPRINT); - - if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); - if (m_pOwner->Check(FSMSTATE::COMBAT)) - { - m_pFSM->Change_State(FSMSTATE::COMBAT); + return S_OK; +} - if (m_pOwner->Check(FSMSTATE::SKILL)) - m_pFSM->Change_State(FSMSTATE::SKILL); - - if (m_pOwner->Check(FSMSTATE::SKILL2)) - m_pFSM->Change_State(FSMSTATE::SKILL2); - - if (m_pOwner->Check(FSMSTATE::LIGHT_ATTACK)) - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - - if (m_pOwner->Check(FSMSTATE::CAST)) - m_pFSM->Change_State(FSMSTATE::CAST); +CState_Idle* CState_Idle::Create(STATE_IDLE_DESC* pDesc) +{ + CState_Idle* pInstance = new CState_Idle; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); } - - if (m_pOwner->Check(FSMSTATE::IDLE_TURN)) - m_pFSM->Change_State(FSMSTATE::IDLE_TURN); - - if (m_pOwner->Check(FSMSTATE::JUMP)) - m_pFSM->Change_State(FSMSTATE::JUMP); - - return false; + return pInstance; } void CState_Idle::Free() diff --git a/Jusin154_Team3D/Editor/Private/State_Idle_Turn.cpp b/Jusin154_Team3D/Editor/Private/State_Idle_Turn.cpp deleted file mode 100644 index d0b9f1712..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Idle_Turn.cpp +++ /dev/null @@ -1,88 +0,0 @@ -#include "pch.h" -#include "State_Idle_Turn.h" -#include "Unit.h" - -CState_Idle_Turn::CState_Idle_Turn() - :CState() -{ -} - -void CState_Idle_Turn::Enter() -{ - if (m_pGameInstance->Key_Down(DIK_LEFT)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::IDLE_TURN_L); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } - if (m_pGameInstance->Key_Down(DIK_RIGHT)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::IDLE_TURN_R); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } - if (m_pGameInstance->Key_Down(DIK_DOWN)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::IDLE_TURN_BWD); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } -} - -void CState_Idle_Turn::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Idle_Turn::Exit() -{ -} - -_bool CState_Idle_Turn::CheckExitState() -{ - if (m_pOwner->Check(FSMSTATE::MOVE)) - { - m_pFSM->Change_State(FSMSTATE::MOVE); - - if (m_pOwner->Check(FSMSTATE::WALK)) - m_pFSM->Change_State(FSMSTATE::WALK); - - if (m_pOwner->Check(FSMSTATE::SPRINT)) - m_pFSM->Change_State(FSMSTATE::SPRINT); - - if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); - } - - if (m_pOwner->Check(FSMSTATE::COMBAT)) - { - m_pFSM->Change_State(FSMSTATE::COMBAT); - - if (m_pOwner->Check(FSMSTATE::SKILL)) - m_pFSM->Change_State(FSMSTATE::SKILL); - - if (m_pOwner->Check(FSMSTATE::SKILL2)) - m_pFSM->Change_State(FSMSTATE::SKILL2); - - if (m_pOwner->Check(FSMSTATE::LIGHT_ATTACK)) - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - - if (m_pOwner->Check(FSMSTATE::CAST)) - m_pFSM->Change_State(FSMSTATE::CAST); - } - - if (m_pModel->IsFinishedAnim()) - m_pFSM->Change_State(FSMSTATE::IDLE); - - if (m_pOwner->Check(FSMSTATE::JUMP)) - m_pFSM->Change_State(FSMSTATE::JUMP); - - return false; -} - -void CState_Idle_Turn::Free() -{ - __super::Free(); -} - -void CState_Idle_Turn::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Jog.cpp b/Jusin154_Team3D/Editor/Private/State_Jog.cpp deleted file mode 100644 index 3831f9943..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Jog.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include "pch.h" -#include "State_Jog.h" -#include "Unit.h" - -CState_Jog::CState_Jog() - :CState() -{ -} - -void CState_Jog::Enter() -{ - if (m_pOwner->Check(FSMSTATE::WALK_FWD)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::WALK_FWD); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } - - if (m_pOwner->Check(FSMSTATE::WALK_BWD)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::WALK_BWD); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } -} - -void CState_Jog::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Jog::Exit() -{ -} - -_bool CState_Jog::CheckExitState() -{ - if (m_pOwner->Check(FSMSTATE::SPRINT)) - m_pFSM->Change_State(FSMSTATE::SPRINT); - - else if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); - - else if (!m_pOwner->Check(FSMSTATE::JOG)) - m_pFSM->Change_State(FSMSTATE::IDLE); - - return false; -} - -void CState_Jog::Free() -{ - __super::Free(); -} - -void CState_Jog::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Jump.cpp b/Jusin154_Team3D/Editor/Private/State_Jump.cpp index c2c175863..753110099 100644 --- a/Jusin154_Team3D/Editor/Private/State_Jump.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Jump.cpp @@ -4,50 +4,51 @@ CState_Jump::CState_Jump() - :CState() + :CState_Root() { } void CState_Jump::Enter() { - if (m_pOwner->Check(FSMSTATE::SPRINT)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::JUMP_SPRINT); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - return; - } - if (m_pOwner->Check(FSMSTATE::WALK)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::JUMP_WALK); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - return; - } - - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::JUMP); - m_pModel->Set_AnimationIndex(anim.first, anim.second); + __super::Enter(); } -void CState_Jump::Update(_float fTimeDelta) +HRESULT CState_Jump::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; } void CState_Jump::Exit() { + __super::Exit(); } -_bool CState_Jump::CheckExitState() +HRESULT CState_Jump::Initialize(STATE_JUMP_DESC* pDesc) { - if (m_pOwner->IsCurrentKeyFrame("Jump")) - m_pFSM->Change_State(FSMSTATE::LAND); + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); - return false; + return S_OK; +} + +CState_Jump* CState_Jump::Create(STATE_JUMP_DESC* pDesc) +{ + CState_Jump* pInstance = new CState_Jump; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; } void CState_Jump::Free() { - __super::Free(); + __super::Free(); } void CState_Jump::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/State_Land.cpp b/Jusin154_Team3D/Editor/Private/State_Land.cpp index d6fb4ea3c..f1b64c618 100644 --- a/Jusin154_Team3D/Editor/Private/State_Land.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Land.cpp @@ -4,40 +4,51 @@ CState_Land::CState_Land() - :CState() + :CState_Root() { } void CState_Land::Enter() { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::LAND); - m_pModel->Set_AnimationIndex(anim.first, anim.second); + __super::Enter(); } -void CState_Land::Update(_float fTimeDelta) +HRESULT CState_Land::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + return S_OK; } void CState_Land::Exit() { + __super::Exit(); } -_bool CState_Land::CheckExitState() +HRESULT CState_Land::Initialize(STATE_LAND_DESC* pDesc) { - if (m_pModel->IsFinishedAnim()) - m_pFSM->Change_State(FSMSTATE::IDLE); + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; + } + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); - if (m_pOwner->Check(FSMSTATE::WALK)) - m_pFSM->Change_State(FSMSTATE::WALK); + return S_OK; +} - return false; +CState_Land* CState_Land::Create(STATE_LAND_DESC* pDesc) +{ + CState_Land* pInstance = new CState_Land; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; } void CState_Land::Free() { - __super::Free(); + __super::Free(); } void CState_Land::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/State_LightAttack.cpp b/Jusin154_Team3D/Editor/Private/State_LightAttack.cpp deleted file mode 100644 index ed27639b4..000000000 --- a/Jusin154_Team3D/Editor/Private/State_LightAttack.cpp +++ /dev/null @@ -1,77 +0,0 @@ -#include "pch.h" -#include "State_LightAttack.h" -#include "Unit.h" - - -CState_LightAttack::CState_LightAttack() - :CState() -{ -} - -void CState_LightAttack::Enter() -{ - if (m_pFSM->Get_PrevState() == FSMSTATE::LIGHT_ATTACK) - return; - - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::LIGHT_ATTACK); - m_pModel->Set_AnimationIndex(anim.first, anim.second); -} - -void CState_LightAttack::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_LightAttack::Exit() -{ -} - -_bool CState_LightAttack::CheckExitState() -{ - if (m_pModel->IsFinishedAnim()) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::IDLE); - return true; - } - - if (m_pOwner->Check(FSMSTATE::LIGHT_ATTACK)) - { - _uint combo = m_pOwner->Next_LightCombo(); - m_pOwner->Set_LightCombo(combo); - if (combo >= 4) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::IDLE); - return true; - } - - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::LIGHT_ATTACK); - m_pModel->Set_AnimationIndex(anim.first + combo, anim.second); - - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - - return true; - } - - - if (m_pOwner->Check(FSMSTATE::SKILL2)) - { - m_pOwner->Reset_LightCombo(); - m_pFSM->Change_State(FSMSTATE::SKILL2); - return true; - } - - return false; -} - - -void CState_LightAttack::Free() -{ - __super::Free(); -} - -void CState_LightAttack::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Move.cpp b/Jusin154_Team3D/Editor/Private/State_Move.cpp index 351df59db..71621a370 100644 --- a/Jusin154_Team3D/Editor/Private/State_Move.cpp +++ b/Jusin154_Team3D/Editor/Private/State_Move.cpp @@ -4,50 +4,56 @@ CState_Move::CState_Move() - :CState() + :CState_Root() { } void CState_Move::Enter() { - + __super::Enter(); } -void CState_Move::Update(_float fTimeDelta) +HRESULT CState_Move::Update(_float fTimeDelta) { - if (CheckExitState()) - return; + if (nullptr != m_funcPriorityUpdate) { + m_funcPriorityUpdate(fTimeDelta); + } + if (E_FAIL == (__super::Update(fTimeDelta))) { + return E_FAIL; + } + if (nullptr != m_funcLateUpdate) { + m_funcLateUpdate(fTimeDelta); + } + return S_OK; } void CState_Move::Exit() { + __super::Exit(); } -_bool CState_Move::CheckExitState() +HRESULT CState_Move::Initialize(STATE_MOVE_DESC* pDesc) { - if (m_pOwner->Check(FSMSTATE::COMBAT) && - !m_pOwner->Check(FSMSTATE::MOVE)) - { - m_pFSM->Change_State(FSMSTATE::COMBAT); - - if (m_pOwner->Check(FSMSTATE::SKILL)) - m_pFSM->Change_State(FSMSTATE::SKILL); - - if (m_pOwner->Check(FSMSTATE::SKILL2)) - m_pFSM->Change_State(FSMSTATE::SKILL2); - - if (m_pOwner->Check(FSMSTATE::LIGHT_ATTACK)) - m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK); - - if (m_pOwner->Check(FSMSTATE::CAST)) - m_pFSM->Change_State(FSMSTATE::CAST); - - return true; + if (FAILED(__super::Initialize(pDesc))) { + return E_FAIL; } + m_funcPriorityUpdate = pDesc->funcPriorityUpdate; + m_funcLateUpdate = pDesc->funcLateUpdate; - return false; + m_pModel = m_pOwner->Get_Component(); + m_pFSM = m_pOwner->Get_Component(); + + return S_OK; } +CState_Move* CState_Move::Create(STATE_MOVE_DESC* pDesc) +{ + CState_Move* pInstance = new CState_Move; + if (FAILED(pInstance->Initialize(pDesc))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} void CState_Move::Free() { diff --git a/Jusin154_Team3D/Editor/Private/State_Root.cpp b/Jusin154_Team3D/Editor/Private/State_Root.cpp new file mode 100644 index 000000000..18349525b --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/State_Root.cpp @@ -0,0 +1,51 @@ +#include "pch.h" +#include "State_Root.h" +#include "Unit.h" + +CState_Root::CState_Root() + :CState() +{ +} + +void CState_Root::Enter() +{ + if (nullptr != m_funcEnterEvent) { + m_funcEnterEvent(); + } +} + +HRESULT CState_Root::Update(_float fTimeDelta) +{ + HRESULT hr = { S_OK }; + if (nullptr != m_funcExitCheck) { + hr = m_funcExitCheck(fTimeDelta); + } + return hr; +} + +void CState_Root::Exit() +{ + if (nullptr != m_funcExitEvent) { + m_funcExitEvent(); + } +} + +HRESULT CState_Root::Initialize(STATE_ROOT_DESC* pArg) +{ + if (FAILED(__super::Initialize(pArg))) { + return E_FAIL; + } + m_funcExitCheck = pArg->funcExitCheck; + m_funcEnterEvent = pArg->funcEnterEvent; + m_funcExitEvent = pArg->funcExitEvent; + return S_OK; +} + +void CState_Root::Free() +{ + __super::Free(); +} + +void CState_Root::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Editor/Private/State_Skill.cpp b/Jusin154_Team3D/Editor/Private/State_Skill.cpp deleted file mode 100644 index d842e203d..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Skill.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "pch.h" -#include "State_Skill.h" -#include "Unit.h" - - -CState_Skill::CState_Skill() - :CState() -{ -} - -void CState_Skill::Enter() -{ - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::SKILL); - m_pModel->Set_AnimationIndex(anim.first, anim.second); -} - -void CState_Skill::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Skill::Exit() -{ -} - -_bool CState_Skill::CheckExitState() -{ - if (m_pModel->IsFinishedAnim()) - m_pFSM->Change_State(FSMSTATE::IDLE); - - return false; -} - -void CState_Skill::Free() -{ - __super::Free(); -} - -void CState_Skill::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Skill2.cpp b/Jusin154_Team3D/Editor/Private/State_Skill2.cpp deleted file mode 100644 index 03704ac90..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Skill2.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "pch.h" -#include "State_Skill2.h" -#include "Unit.h" - - -CState_Skill2::CState_Skill2() - :CState() -{ -} - -void CState_Skill2::Enter() -{ - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::SKILL2); - m_pModel->Set_AnimationIndex(anim.first, anim.second); -} - -void CState_Skill2::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Skill2::Exit() -{ -} - -_bool CState_Skill2::CheckExitState() -{ - if (m_pModel->IsFinishedAnim()) - m_pFSM->Change_State(FSMSTATE::IDLE); - - return false; -} - -void CState_Skill2::Free() -{ - __super::Free(); -} - -void CState_Skill2::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Sprint.cpp b/Jusin154_Team3D/Editor/Private/State_Sprint.cpp deleted file mode 100644 index eccc2dd30..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Sprint.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include "pch.h" -#include "State_Sprint.h" -#include "Unit.h" - -CState_Sprint::CState_Sprint() - :CState() -{ -} - -void CState_Sprint::Enter() -{ - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::SPRINT); - m_pModel->Set_AnimationIndex(anim.first, anim.second); -} - -void CState_Sprint::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; - -} - -void CState_Sprint::Exit() -{ -} - -_bool CState_Sprint::CheckExitState() -{ - if (!m_pOwner->Check(FSMSTATE::SPRINT)) - { - m_pOwner->Reset_Sprint(); - m_pFSM->Change_State(FSMSTATE::WALK); - } - - else if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); - - if (m_pOwner->Check(FSMSTATE::JUMP)) - m_pFSM->Change_State(FSMSTATE::JUMP); - - return false; -} - -void CState_Sprint::Free() -{ - __super::Free(); -} - -void CState_Sprint::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/State_Walk.cpp b/Jusin154_Team3D/Editor/Private/State_Walk.cpp deleted file mode 100644 index 967bbbeba..000000000 --- a/Jusin154_Team3D/Editor/Private/State_Walk.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include "pch.h" -#include "State_Walk.h" -#include "Unit.h" - -CState_Walk::CState_Walk() - :CState() -{ -} - -void CState_Walk::Enter() -{ - if(m_pOwner->Check(FSMSTATE::WALK_FWD)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::WALK_FWD); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } - - if (m_pOwner->Check(FSMSTATE::WALK_BWD)) - { - auto anim = m_pOwner->Get_AnimInfo(STATEANIM::WALK_BWD); - m_pModel->Set_AnimationIndex(anim.first, anim.second); - } -} - -void CState_Walk::Update(_float fTimeDelta) -{ - if (CheckExitState()) - return; -} - -void CState_Walk::Exit() -{ -} - -_bool CState_Walk::CheckExitState() -{ - if (m_pOwner->Check(FSMSTATE::SPRINT)) - m_pFSM->Change_State(FSMSTATE::SPRINT); - - else if (m_pOwner->Check(FSMSTATE::DODGE)) - m_pFSM->Change_State(FSMSTATE::DODGE); - - else if (!m_pOwner->Check(FSMSTATE::WALK)) - m_pFSM->Change_State(FSMSTATE::IDLE); - - if (m_pOwner->Check(FSMSTATE::JUMP)) - m_pFSM->Change_State(FSMSTATE::JUMP); - - return false; -} - -void CState_Walk::Free() -{ - __super::Free(); -} - -void CState_Walk::Describe_Entity() -{ -} diff --git a/Jusin154_Team3D/Editor/Private/Terrain.cpp b/Jusin154_Team3D/Editor/Private/Terrain.cpp index 617f3f48a..bba59e573 100644 --- a/Jusin154_Team3D/Editor/Private/Terrain.cpp +++ b/Jusin154_Team3D/Editor/Private/Terrain.cpp @@ -2,8 +2,9 @@ #include "Terrain.h" #include "GameInstance.h" -#include "DebugCamera.h" +#include "Camera_Debug.h" #include "VIBuffer_Terrain.h" +#include "AlphaMap.h" CTerrain::CTerrain(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) : CGameObject(pDevice, pContext) @@ -28,29 +29,99 @@ HRESULT CTerrain::Initialize(void* pArg) if (FAILED(Ready_Components())) return E_FAIL; + if (FAILED(Ready_AlphaMap())) + return E_FAIL; + + m_fUsingSurfaceParams = 15.f / 27.f; + m_vRotation = _float3{ 0.f, 0.f, 0.f }; + m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-194, 18.5f, -153.f, 1.f)); + + //m_pVIBufferCom->Set_CullingRadius(0.04f); + + m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin"); + + if (FAILED(m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin"))) + return E_FAIL; + return S_OK; } void CTerrain::Priority_Update(_float fTimeDelta) { + GUI::Begin("Terrain"); +#pragma region ALPHA_MAP + //GUI::InputInt("Color", &m_iColorIndex); + //m_iColorIndex = max(0, min(4, m_iColorIndex)); + + //GUI::InputInt("Rnage", (_int*)(&m_iMaskRange)); + //GUI::DragFloat("Value", &m_fMaskValue, 0.01f, -1.0f, 1.f); + //if (GUI::Button("Save", ImVec2(100.f, 30.f))) + //{ + // m_pAlphaMap->Save_ToFile("Hogsmeade_AlphaMap.bin"); + //} + //if (GUI::Button("Load", ImVec2(100.f, 30.f))) + //{ + // m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin"); + //} + + + //GUI::DragFloat("Up", &m_fUpValue, 0.01f, -1.0f, 1.f); + if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) + { + if (m_pGameInstance->isPicking(&m_vPickingPosition)) + { + if (m_pGameInstance->Key_Pressing(DIK_PERIOD)) + m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue); + if (m_pGameInstance->Key_Pressing(DIK_COMMA)) + m_pVIBufferCom->FitY(m_pTransformCom->Get_XMWorldMatrix(), m_fUpValue * -1.f); + + + //XMStoreFloat3(&m_vPickingPosition, XMVector3TransformCoord(XMLoadFloat3(&m_vPickingPosition), m_pTransformCom->Get_WorldMatrixInv())); + + //m_pAlphaMap->Update(m_vPickingPosition, m_iColorIndex, m_fMaskValue, m_iMaskRange); + + } + } +#pragma endregion + +#pragma region HEIGHT MAP + //HRESULT hr = {}; + //if(GUI::Button("Save HeightMap")) + // hr = m_pVIBufferCom->Save_HeightMap("Hogsmeade_HeightMap.bin"); + //if(GUI::Button("Load HeightMap")) + // hr = m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin"); +#pragma endregion + + //_float4 vPos = {}; + //_float3 vRotation = {}; + //XMStoreFloat4(&vPos, m_pTransformCom->Get_State(STATE::POSITION)); + //GUI::DragFloat3("Pos", (_float*)(&vPos)); + //GUI::DragFloat3("Rota", (_float*)(&m_vRotation)); + + //m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z)); + //m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat4(&vPos)); + + //GUI::DragFloat("Culling Radius", &m_fCullingRadius, 0.01f, 0.01f, 2.f); + + GUI::End(); } void CTerrain::Update(_float fTimeDelta) { - GUI::Begin("Picking Position"); - if (m_pGameInstance->Mouse_Down(0)) - m_pVIBufferCom->Picking(m_pTransformCom, m_vPickingPosition); - - GUI::DragFloat3("Pos", (_float*)(&m_vPickingPosition)); - GUI::End(); + //m_pVIBufferCom->Culling(XMMatrixIdentity()); + + if(m_pGameInstance->Key_Down(DIK_LSHIFT) && m_pGameInstance->Key_Down(DIK_W)) + { + m_bWasWireFrame = !m_bWasWireFrame; + } } void CTerrain::Late_Update(_float fTimeDelta) { - if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + //if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this); - } + //} } HRESULT CTerrain::Render() @@ -58,9 +129,18 @@ HRESULT CTerrain::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - - if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::TERRAIN)))) { - return E_FAIL; + + if(m_bWasWireFrame) + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::TERRAIN)))) { + return E_FAIL; + } + } + else + { + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NORTEX::DEFAULT)))) { + return E_FAIL; + } } if (FAILED(m_pVIBufferCom->Bind_Resources())) { @@ -89,7 +169,20 @@ HRESULT CTerrain::Ready_Components() return E_FAIL; /* Com_Texture */ - if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("TerrainTest"), reinterpret_cast(&m_pTextureCom), nullptr))) { + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Diffuse"), reinterpret_cast(&m_pDiffuseTextureCom), nullptr))) { + return E_FAIL; + } + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Normal"), reinterpret_cast(&m_pNormalTextureCom), nullptr))) { + return E_FAIL; + } + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_MRO"), reinterpret_cast(&m_pMROTextureCom), nullptr))) { + return E_FAIL; + } + + /* Com_Texture */ + if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Terrain_Mask"), reinterpret_cast(&m_pMaskTextureCom), nullptr))) { return E_FAIL; } @@ -112,9 +205,31 @@ HRESULT CTerrain::Bind_ShaderResources() return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_SRV("g_DiffuseTexture", m_pTextureCom->Get_SRV(0)))) { + if (FAILED(m_pDiffuseTextureCom->Bind_ShaderResources(m_pShaderCom, "g_DiffuseTextures", 0, m_pDiffuseTextureCom->Get_Size()))){ return E_FAIL; } + if (FAILED(m_pNormalTextureCom->Bind_ShaderResources(m_pShaderCom, "g_NormalTextures", 0, m_pNormalTextureCom->Get_Size()))){ + return E_FAIL; + } + if (FAILED(m_pMROTextureCom->Bind_ShaderResources(m_pShaderCom, "g_SurfaceParamsTextures", 0, m_pMROTextureCom->Get_Size()))){ + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_SRV("g_MaskTexture", m_pAlphaMap->Get_SRV()))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fUsingSurfaceParams", &m_fUsingSurfaceParams, sizeof(_float)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CTerrain::Ready_AlphaMap() +{ + m_pAlphaMap = CAlphaMap::Create(m_pDevice, m_pContext, 2048, 2048); + + if(nullptr == m_pAlphaMap) + return E_FAIL; return S_OK; } @@ -149,9 +264,13 @@ void CTerrain::Free() { __super::Free(); + SAFE_RELEASE(m_pAlphaMap); SAFE_RELEASE(m_pShaderCom); SAFE_RELEASE(m_pVIBufferCom); - SAFE_RELEASE(m_pTextureCom); + SAFE_RELEASE(m_pDiffuseTextureCom); + SAFE_RELEASE(m_pNormalTextureCom); + SAFE_RELEASE(m_pMROTextureCom); + SAFE_RELEASE(m_pMaskTextureCom); } void CTerrain::Describe_Entity() diff --git a/Jusin154_Team3D/Editor/Private/TestEffect.cpp b/Jusin154_Team3D/Editor/Private/TestEffect.cpp index 89d9d462c..c8960fd4f 100644 --- a/Jusin154_Team3D/Editor/Private/TestEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/TestEffect.cpp @@ -44,7 +44,7 @@ void CTestEffect::Update(_float fTimeDelta) void CTestEffect::Late_Update(_float fTimeDelta) { if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { - m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this); + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); } } diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp new file mode 100644 index 000000000..faaa7dbe6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp @@ -0,0 +1,733 @@ +#include "pch.h" +#include "TrailObject.h" + +#include "GameInstance.h" +#include "Trail.h" + + +CTrailObject::CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CPartObject{ pDevice, pContext } +{ +} + +CTrailObject::CTrailObject(const CTrailObject& rhs) + : CPartObject(rhs) +{ +} + +HRESULT CTrailObject::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CTrailObject::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + return S_OK; +} + +void CTrailObject::Priority_Update(_float fTimeDelta) +{ + +} + +void CTrailObject::Update(_float fTimeDelta) +{ + + if (m_bVisible == false) + return; + + + + if (m_TrailInfo.vDistortionTime.y == 0) + return; + + m_TrailInfo.vDistortionTime.x += fTimeDelta; + + if (m_TrailInfo.vDistortionTime.x > m_TrailInfo.vDistortionTime.y) + { + m_TrailInfo.vDistortionTime.x = 0.f; + } +} + +void CTrailObject::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + if (m_TrailInfo.isBlur == true) + { + m_pGameInstance->Add_RenderGroup(RENDER::BLUR, this); + } + + if (m_TrailInfo.isOnlyBlur == true) + return; + + if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pTransformCom->Get_Radius())) { + m_pGameInstance->Add_RenderGroup(RENDER::EFFECT, this); + } + +} + +void CTrailObject::Set_Target(CTransform* pTargetTransform) +{ + + SAFE_RELEASE(m_pParentTransformCom); + + if(pTargetTransform != nullptr) + m_pParentTransformCom = pTargetTransform; +} + +void CTrailObject::Trail_Update(_fmatrix WorldMat, _float fTimeDelta) +{ + m_pTrailCom->Trail_Update(fTimeDelta, WorldMat); +} + +#ifdef _DEBUG + + +HRESULT CTrailObject::Save_Trail(const _char* pPath) +{ + _string strPerfectFilePath = pPath; + + m_strPath = pPath; + + strPerfectFilePath += ".trail"; + + HANDLE hFile = CreateFile(CMyTools::ToWstring(strPerfectFilePath).c_str(), + GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE, + NULL, CREATE_ALWAYS, + FILE_ATTRIBUTE_NORMAL, NULL + ); + + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"트레일 오브젝트 저장 실패", L"System Message", MB_OK); + return E_FAIL; + } + + DWORD dwByte; + + size_t iComponentLength = m_strTrailDiffuseName.length(); + const _char* pFileComponentPath = m_strTrailDiffuseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + iComponentLength = m_strTrailNoiseName.length(); + pFileComponentPath = m_strTrailNoiseName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + + iComponentLength = m_strTrailMaskingName.length(); + pFileComponentPath = m_strTrailMaskingName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + iComponentLength = m_strTrailDistortionName.length(); + pFileComponentPath = m_strTrailDistortionName.c_str(); + + if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + if (!WriteFile(hFile, pFileComponentPath, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + } + + m_pTrailCom->Save_Trail(hFile); + + + if (!WriteFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + CloseHandle(hFile); + + MessageBox(NULL, L"트레일 저장 성공", L"System Message", MB_OK); + return S_OK; +} + +#endif + +HRESULT CTrailObject::Load_Trail(const _char* pPath, LEVEL eLevel) +{ + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pDistortion_TextureCom); + + _string strPerfectFilePath = pPath; + + strPerfectFilePath += ".trail"; + + DWORD dwByte(0); + + HANDLE hFile = CreateFileW( + CMyTools::ToWstring(strPerfectFilePath).c_str(), // 파일 이름 + GENERIC_READ, // 읽기 모드 + FILE_SHARE_READ, // 다른 프로세스도 읽기 가능 + NULL, + OPEN_EXISTING, // 기존 파일 열기 + FILE_ATTRIBUTE_NORMAL, + NULL + ); + + m_strPath = strPerfectFilePath; + + if (hFile == INVALID_HANDLE_VALUE) { + MessageBox(NULL, L"오브젝트 읽기 실패", L"System Message", MB_OK); + return E_FAIL; + } + + size_t iComponentLength = {}; + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailDiffuseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDiffuseName), + reinterpret_cast(&m_pDiffuse_TextureCom)))) + return E_FAIL; + } + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailNoiseName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailNoiseName), + reinterpret_cast(&m_pNoise_TextureCom)))) + return E_FAIL; + + } + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailMaskingName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailMaskingName), + reinterpret_cast(&m_pMasking_TextureCom)))) + return E_FAIL; + } + + + if (!ReadFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { + return E_FAIL; + } + + if (iComponentLength != 0) + { + _char szName[MAX_PATH] = {}; + + if (!ReadFile(hFile, &szName, sizeof(_char) * ((DWORD)iComponentLength + 1), &dwByte, nullptr)) { + return E_FAIL; + } + + m_strTrailDistortionName = szName; + + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strTrailDistortionName), + reinterpret_cast(&m_pDistortion_TextureCom)))) + return E_FAIL; + + } + + + m_pTrailCom->Load_Trail(hFile); + + + if (!ReadFile(hFile, &m_TrailInfo, sizeof(TRAIL_INFO), &dwByte, nullptr)) { + return E_FAIL; + } + + CloseHandle(hFile); + + return S_OK; +} + +HRESULT CTrailObject::Ready_Components(void* pArg) +{ + + if (FAILED(__super::Ready_Components(nullptr))) { + return E_FAIL; + } + + if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_POSTEX, (CComponent**)&m_pShaderCom, nullptr))) + { + return E_FAIL; + } + + CTrail::TRAIL_DESC pTrailDesc; + + pTrailDesc.vHigh = _float3(0.f, 1.f, 0.f); + pTrailDesc.vLow = _float3(0.f, -1.f, 0.f); + + if (FAILED(Add_Component(ENUM_CLASS(LEVEL::EFFECT), &m_pTrailCom, &pTrailDesc))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTrailObject::Render() +{ + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL)))) + return E_FAIL; + + + if (FAILED(m_pTrailCom->Render())) + return E_FAIL; + + return S_OK; +} + +HRESULT CTrailObject::Render_Blur() +{ + + if (FAILED(Bind_ShaderResources())) + return E_FAIL; + + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fBlurIntensity", &m_TrailInfo.fBlurIntensity, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_iBlurWeight", &m_TrailInfo.iBlurWeight, sizeof(_int)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_POSTEX::TRAIL_BLUR)))) + return E_FAIL; + + + + if (FAILED(m_pTrailCom->Render())) + return E_FAIL; + + return S_OK; +} + + + + +CTrailObject* CTrailObject::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CTrailObject* pInstance = new CTrailObject(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CTrailObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CTrailObject::Clone(void* pArg, CGameObject* pOwner) +{ + CTrailObject* pInstance = new CTrailObject(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CTrailObject"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CTrailObject::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pDiffuse_TextureCom); + SAFE_RELEASE(m_pMasking_TextureCom); + SAFE_RELEASE(m_pNoise_TextureCom); + SAFE_RELEASE(m_pDistortion_TextureCom); + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pTrailCom); +} + +void CTrailObject::Describe_Entity() +{ + + if (GUI::TreeNode("TRAIL")) + { + m_pTrailCom->Describe_Entity(); + + m_pShaderCom->Describe_Entity(); + + GUI::Checkbox("Diffuse", &m_TrailInfo.isDiffuse); + GUI::Checkbox("Masking", &m_TrailInfo.isMask); + GUI::Checkbox("Noise", &m_TrailInfo.isNoise); + GUI::Checkbox("Distortion", &m_TrailInfo.isDistortion); + + + GUI::ColorEdit4("MixColor", (_float*)&m_TrailInfo.vColor); + + if (GUI::TreeNode("TRAIL BLUR")) + { + GUI::Checkbox("Blur", &m_TrailInfo.isBlur); + GUI::Checkbox("OnlyBlur", &m_TrailInfo.isOnlyBlur); + + ImGui::PushItemWidth(80); + GUI::DragFloat("BlurIntensity", &m_TrailInfo.fBlurIntensity, 0.005f, 0.f, 1.f); + GUI::DragInt("BlurWeight", &m_TrailInfo.iBlurWeight, 2.f, 0, 128); + ImGui::PopItemWidth(); + + GUI::TreePop(); + } + + /* 이미시브 */ + if (GUI::TreeNode("TRAIL EMISSIVE")) + { + GUI::ColorEdit4("MixColor", (_float*)&m_TrailInfo.vEmissive); + + ImGui::PushItemWidth(80); + + GUI::DragFloat("EmissiveStrength", &m_TrailInfo.fEmissiveStrength, 0.01f, 0.f); + GUI::DragFloat("SoftenExp", &m_TrailInfo.fSoftenExp, 0.01f, 0.f); + GUI::DragFloat("SoftStrength", &m_TrailInfo.fSoftStrength, 0.01f, 0.f); + GUI::DragFloat("CoreBoost", &m_TrailInfo.fCoreBoost, 0.01f, 0.f); + GUI::DragFloat("Radius", &m_TrailInfo.fRadius, 0.01f, 0.f , 1.f); + + ImGui::PopItemWidth(); + + GUI::TreePop(); + } + + if (m_TrailInfo.isDiffuse == true) + { + if (GUI::TreeNode("TRAIL DIFFUSE")) + { + _string strName = {}; + + ImGui::PushItemWidth(80); + GUI::DragFloat("Diffuse Alpha", &m_TrailInfo.fDiffuseAlpha, 0.01f, 0.f, 1.f); + ImGui::PopItemWidth(); + + if (GUI::TreeNode("DIFFUSE TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); + + GUI::TreePop(); + } + + if (strName != "") { + m_strTrailDiffuseName = strName; + } + + GUI::TreePop(); + } + } + + if (m_TrailInfo.isMask == true) + { + if (GUI::TreeNode("TRAIL MASK")) + { + _string strName = {}; + + ImGui::PushItemWidth(80); + GUI::DragFloat("SoftMask", &m_TrailInfo.fSoftMask, 0.01f, 0.f); + GUI::DragFloat("fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, 0.01f, 0.f); + ImGui::PopItemWidth(); + + if (GUI::TreeNode("MASK TEX")) + { + + strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASK_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this); + + if (strName != "") { + m_strTrailMaskingName = strName; + } + + GUI::TreePop(); + } + + GUI::TreePop(); + } + } + + if (m_TrailInfo.isNoise == true) + { + if (GUI::TreeNode("TRAIL NOISE")) + { + _string strName = {}; + + ImGui::PushItemWidth(80); + GUI::Checkbox("NoiseColor", &m_TrailInfo.isNoiseColor); + GUI::Checkbox("NoiseAlpha", &m_TrailInfo.isNoiseAlpha); + GUI::DragFloat("NoiseStrength", &m_TrailInfo.fNoiseStrength, 0.01f, 0.f); + ImGui::PopItemWidth(); + + if (GUI::TreeNode("NOISE TEX")) + { + + strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this); + + if (strName != "") { + m_strTrailNoiseName = strName; + } + + + GUI::TreePop(); + } + + GUI::TreePop(); + } + } + + if (m_TrailInfo.isDistortion == true) + { + if (GUI::TreeNode("TRAIL DISTORTION")) + { + _string strName = {}; + + _float2 vDiffuseDistortioUVAmount = {}; + _float2 vMaskDistortionUVAmount = {}; + + ImGui::PushItemWidth(80); + GUI::DragFloat("DistortionIntensity", &m_TrailInfo.fDistortionIntensity, 0.005f, 0.f, 1.f); + GUI::InputFloat("DistortionTime", &m_TrailInfo.vDistortionTime.y, 0.1f, 0.f); + + GUI::DragFloat2("DiffuseDistortionUVAmount", (_float*)&m_TrailInfo.vDiffuseDistortioUVAmount, 0.1f); + GUI::DragFloat2("MaskDistortionUVAmount", (_float*)&m_TrailInfo.vMaskDistortionUVAmount, 0.1f); + + ImGui::PopItemWidth(); + + if (GUI::TreeNode("DISTORTION TEX")) + { + + strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DISTORTION_TEXTURE", (CComponent**)&m_pDistortion_TextureCom, nullptr, this); + + if (strName != "") { + m_strTrailDistortionName = strName; + } + + + GUI::TreePop(); + } + + GUI::TreePop(); + } + } + + + GUI::TreePop(); + } + + GUI::Separator(); + GUI::Spacing(); + +} + +HRESULT CTrailObject::Bind_ShaderResources() +{ + + if (FAILED(m_pTrailCom->Bind_Resources())) + return E_FAIL; + + if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + /* 디퓨즈 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDiffuse", &m_TrailInfo.isDiffuse, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDiffuseAlpha", &m_TrailInfo.fDiffuseAlpha, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vColor", &m_TrailInfo.vColor, sizeof(_float4)))) { + return E_FAIL; + } + + /* 마스크 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isMask", &m_TrailInfo.isMask, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMask", &m_TrailInfo.fSoftMask, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftMaskEdge", &m_TrailInfo.fSoftMaskEdge, sizeof(_float)))) { + return E_FAIL; + } + + /* 노이즈 */ + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoise", &m_TrailInfo.isNoise, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseColor", &m_TrailInfo.isNoiseColor, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_isNoiseAlpha", &m_TrailInfo.isNoiseAlpha, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fNoiseStrength", &m_TrailInfo.fNoiseStrength, sizeof(_float)))) { + return E_FAIL; + } + + /* 디스토션 */ + if (FAILED(m_pShaderCom->Bind_RawValue("g_isDistortion", &m_TrailInfo.isDistortion, sizeof(_bool)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDistortionTime", &m_TrailInfo.vDistortionTime, sizeof(_float2)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_vDiffuseDistortionUVGainAmount", &m_TrailInfo.vDiffuseDistortioUVAmount, sizeof(_float2)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_fDistortionIntensity", &m_TrailInfo.fDistortionIntensity, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_RawValue("g_vMaskDistortionUVGainAmount", &m_TrailInfo.vMaskDistortionUVAmount, sizeof(_float2)))) { + return E_FAIL; + } + + + + /* 이미시브 */ + if (FAILED(m_pShaderCom->Bind_RawValue("g_vEmissive", &m_TrailInfo.vEmissive, sizeof(_float4)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fEmissiveStrength", &m_TrailInfo.fEmissiveStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftenExp", &m_TrailInfo.fSoftenExp, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fSoftStrength", &m_TrailInfo.fSoftStrength, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoreBoost", &m_TrailInfo.fCoreBoost, sizeof(_float)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fRadius", &m_TrailInfo.fRadius, sizeof(_float)))) { + return E_FAIL; + } + + + if (m_pDiffuse_TextureCom != nullptr) + { + if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DiffuseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pNoise_TextureCom != nullptr) + { + if (FAILED(m_pNoise_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_NoiseTexture", 0))) { + return E_FAIL; + } + } + + if (m_pMasking_TextureCom != nullptr) + { + if (FAILED(m_pMasking_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_MaskingTexture", 0))) { + return E_FAIL; + } + } + + if (m_pDistortion_TextureCom != nullptr) + { + if (FAILED(m_pDistortion_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_DistortionTexture", 0))) { + return E_FAIL; + } + } + + return S_OK; +} diff --git a/Jusin154_Team3D/Editor/Private/Wand.cpp b/Jusin154_Team3D/Editor/Private/Wand.cpp new file mode 100644 index 000000000..6c085e83f --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Wand.cpp @@ -0,0 +1,204 @@ +#include "pch.h" +#include "Wand.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "TrailObject.h" + +CWand::CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CPartObject(pDevice, pContext) +{ +} + +CWand::CWand(const CWand& Prototype) + : CPartObject(Prototype) +{ +} + +HRESULT CWand::Initialize_Prototype() +{ + return S_OK; +} + +HRESULT CWand::Initialize(void* pArg) +{ + WAND_DESC* pDesc = static_cast (pArg); + m_pSocketMatrices = pDesc->pSocketMatrices; + + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + + if (FAILED(Ready_Components())) + return E_FAIL; + + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Trail"), &PartsDesc, this, &m_pTrail))) { + assert(false); + return E_FAIL; + } + + if (FAILED(m_pTrail->Load_Trail("../Bin/Resources/Data/Effect/Trail/Bombard_Trail", static_cast(NEXT_LEVEL)))) + return E_FAIL; + + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, &m_pEffectParts))) { + assert(false); + return E_FAIL; + } + + m_pEffectParts->Load("../Bin/Resources/Data/Effect/Lumos/Lumos", static_cast(NEXT_LEVEL)); + m_pEffectParts->Set_Visible(true); + + return S_OK; +} + +void CWand::Priority_Update(_float fTimeDelta) +{ + _matrix socketMatrix = {}; + + socketMatrix = XMLoadFloat4x4(m_pSocketMatrices); + + for (int i = 0; i < 3; ++i) { + socketMatrix.r[i] = XMVector3Normalize(socketMatrix.r[i]); + } + m_pTransformCom->Set_WorldMatrix(socketMatrix * XMLoadFloat4x4(m_pParentTransformCom->Get_WorldMatrixPtr())); +} + +void CWand::Update(_float fTimeDelta) +{ + + Describe_Entity(); + + m_pModelCom->Combined_BoneMatrix(); + + _matrix BoneMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr("root")); + + BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix(); + + + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * m_vOffset.x; + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * m_vOffset.y; + BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * m_vOffset.z; + + m_pEffectParts->Get_Component()->Set_WorldMatrix(BoneMatrix); + + m_pTrail->Trail_Update(BoneMatrix, fTimeDelta); + +} + +void CWand::Late_Update(_float fTimeDelta) +{ + m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this); +} + +HRESULT CWand::Render() +{ + if (!m_pModelCom) + return S_OK; + + if (FAILED(Bind_ShaderResources())) { + return E_FAIL; + } + + _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); + + for (_uint i = 0; i < iNumMeshes; i++) + { + if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) { + return E_FAIL; + } + + if (FAILED(m_pModelCom->Render(i))) { + return E_FAIL; + } + } + + return S_OK; +} + + +HRESULT CWand::Ready_Components() +{ + __super::Ready_Components(nullptr); + + + /* Com_Model */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Wand_Model"), + reinterpret_cast(&m_pModelCom)))) + return E_FAIL; + + /* Com_Shader */ + if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH, + reinterpret_cast(&m_pShaderCom)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CWand::Bind_ShaderResources() +{ + if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) { + return E_FAIL; + } + if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { + return E_FAIL; + } + + if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { + return E_FAIL; + } + + return S_OK; +} + + +CWand* CWand::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CWand* pInstance = new CWand(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CWand"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CGameObject* CWand::Clone(void* pArg, CGameObject* pOwner) +{ + CWand* pInstance = new CWand(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CWand"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CWand::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pShaderCom); + SAFE_RELEASE(m_pModelCom); +} + +void CWand::Describe_Entity() +{ + +} diff --git a/Jusin154_Team3D/Editor/Public/Action_Panel.h b/Jusin154_Team3D/Editor/Public/Action_Panel.h index b0177509a..24b4b938a 100644 --- a/Jusin154_Team3D/Editor/Public/Action_Panel.h +++ b/Jusin154_Team3D/Editor/Public/Action_Panel.h @@ -3,10 +3,6 @@ #include "Editor_Define.h" #include "PanelObject.h" -NS_BEGIN(Engine) -class CGameObject; -NS_END - NS_BEGIN(Editor) class CAction_Panel final : public CPanelObject @@ -23,6 +19,10 @@ class CAction_Panel final : public CPanelObject virtual HRESULT Render() override; virtual _vector Get_WorldPostion() override; +private: + void Magic_Meter_Visible(_uint iIndex, _bool bVisible); + void Magic_Meter_UV(); + void Matic_Meter_Move(); private: virtual HRESULT Bind_ShaderResources() override; virtual HRESULT Ready_Components(void* pArg) override; @@ -35,10 +35,21 @@ class CAction_Panel final : public CPanelObject CShader* m_pShaderCom = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + _float2 m_vMagic_MeterUV[5] = {}; + _uint m_iMagic_Meter_Count{}; + CGameObject* m_pSpell_Slot = { nullptr }; CGameObject* m_pSpell_Image = { nullptr }; CGameObject* m_pSpell_Overlay = { nullptr }; - + CGameObject* m_pSlot_Number = { nullptr }; + CGameObject* m_pHpBarBG= { nullptr }; + CGameObject* m_pMagic_Meter1 = { nullptr }; + CGameObject* m_pMagic_Meter2 = { nullptr }; + CGameObject* m_pMagic_Meter3 = { nullptr }; + CGameObject* m_pMagic_Meter4 = { nullptr }; + CGameObject* m_pMagic_Meter5 = { nullptr }; + CGameObject* m_pMagic_Icon = { nullptr }; + CGameObject* m_pSpell_UI = { nullptr }; public: static CAction_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Public/AlphaMap.h b/Jusin154_Team3D/Editor/Public/AlphaMap.h new file mode 100644 index 000000000..b172d45c2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/AlphaMap.h @@ -0,0 +1,43 @@ +#include "Editor_Define.h" +#include "Base.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Editor) + +class CAlphaMap final : public CBase +{ +private: + CAlphaMap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual ~CAlphaMap() = default; + +public: + void Update(_float3& vPosition, _uint iColorIndex, _float fValue, _uint iRange); + ID3D11ShaderResourceView* Get_SRV() { return m_pSRV; } + + void Save_ToFile(const _char* pFilePath); + void Load_ToFile(const _char* pFilePath); +private: + ID3D11Device* m_pDevice = { nullptr }; + ID3D11DeviceContext* m_pContext = { nullptr }; + ID3D11Texture2D* m_pTexture2D = { nullptr }; + ID3D11ShaderResourceView* m_pSRV = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + + _uint m_iNumPixels = {}; + _uint m_iNumPixelW = {}; + _uint m_iNumPixelH = {}; + + _float4* m_pPixels = { nullptr }; + +private: + HRESULT Initialize( _uint iSizeX, _uint iSizeY); + +public: + static CAlphaMap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iSizeX, _uint iSizeY); + virtual void Free(); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Bombard.h b/Jusin154_Team3D/Editor/Public/Bombard.h new file mode 100644 index 000000000..3f5f2e52a --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Bombard.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CBombard final : public CEffect_Container +{ +private: + CBombard(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CBombard(const CBombard& rhs); + virtual ~CBombard() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CDummy_PhysXEffectHitBox* m_pPhysHitBox = {}; + class CPartObject* m_pLight_Projectile = {}; +public: + static CBombard* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Broom.h b/Jusin154_Team3D/Editor/Public/Broom.h index caebcc248..9aa0fbb71 100644 --- a/Jusin154_Team3D/Editor/Public/Broom.h +++ b/Jusin154_Team3D/Editor/Public/Broom.h @@ -1,7 +1,7 @@ #pragma once #include "Editor_Define.h" -#include "PartObject.h" +#include "GameObject.h" NS_BEGIN(Engine) class CShader; diff --git a/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_Behavior.h b/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_Behavior.h new file mode 100644 index 000000000..45111b908 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_Behavior.h @@ -0,0 +1,47 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Editor) + +class CCallBack_EffectHitBox_Behavior final : public PSX::PxControllerBehaviorCallback +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_EffectHitBox_Behavior(); +public: + ~CCallBack_EffectHitBox_Behavior(); + +public: + // PxControllerBehaviorCallback을(를) 통해 상속됨 + // 충돌알림이 아닌, 행동정책 정해주기. CCT vs CCT는 지원안함 + // slopeLimit로 미끄러져 갈 수 있는지 없는지 이분법적인 계산 대신, 원하는 물체에 대해서만 미끄러운 표면으로 정의해줌 + // 주인이 되는 CCT가 이 물체에 대해 이 물체를 어떻게 해야 할까? -> (타고 올라갈까? Ride?) (미끄러져갈까? Slide?) ( 직접 내가 구현할까? user defined ride? ) + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxShape& shape, const PSX::PxActor& actor) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxController& controller) override; + + virtual PSX::PxControllerBehaviorFlags getBehaviorFlags(const PSX::PxObstacle& obstacle) override; + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_EffectHitBox_Behavior* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_HitReport.h b/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_HitReport.h new file mode 100644 index 000000000..8b32963ae --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CallBack_EffectHitBox_HitReport.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CGameInstance; +NS_END + +NS_BEGIN(Editor) + +class CCallBack_EffectHitBox_HitReport final : public PSX::PxUserControllerHitReport +{ + // 구현 예시 + // CCT는 RigidBody의 PxSimulationEventCallback에 안걸리고, 이 전용 콜백에서 처리되는 구조임 + // + // PxUserControllerHitReport = "무엇과 부딪혔는지 알려줌(이벤트 알림)" + // PxControllerBehaviorCallback = "부딪힌 것에 대해 어떤 행동 정책을 쓸지 물어봄(질의)" + // PxSimulationEventCallback = "씬 전체에 대한 글로벌 콜백(일반 물리 이벤트)" +private: + CCallBack_EffectHitBox_HitReport(); +public: + ~CCallBack_EffectHitBox_HitReport(); + +public: + // PxUserControllerHitReport을(를) 통해 상속됨 + // 충돌알림!! + // 주인이 되는 CCT가 이 물체에 대해 어떻게 반응해야 할까? + virtual void onShapeHit(const PSX::PxControllerShapeHit& hit) override; // statc, rigid 등과 부딪힌 경우 + + virtual void onControllerHit(const PSX::PxControllersHit& hit) override; // 다른 CCT와 부딪힌 경우 + + virtual void onObstacleHit(const PSX::PxControllerObstacleHit& hit) override; // 사용자 정의 장애물과 부딪힌 경우 + +public: + HRESULT Initialize(CCharacter_Controller* pController, CRigidBody_Dynamic* pPartDynamicObject); + HRESULT Finalize(); +private: + CCharacter_Controller* m_pController = { nullptr }; + CRigidBody_Dynamic* m_pPartDynamicBody = { nullptr }; + CGameInstance* m_pGameInstance = { nullptr }; + +public: + static CCallBack_EffectHitBox_HitReport* Create(); +}; +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CamPosition.h b/Jusin154_Team3D/Editor/Public/CamPosition.h new file mode 100644 index 000000000..d4f8bc9f4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CamPosition.h @@ -0,0 +1,37 @@ +#pragma once + +#include "Editor_Define.h" + +#include "PartObject.h" + +NS_BEGIN(Editor) + +class CCamPosition abstract : public CPartObject +{ +public: + typedef struct tagCamPosition : public CPartObject::PARTOBJECT_DESC + { + + }CAMERAPOSITION_DESC; +protected: + CCamPosition(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition(const CCamPosition& rhs); + virtual ~CCamPosition() = default; + +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + + +public: + CGameObject* Clone(void* pArg, CGameObject* pOwner)PURE; + + virtual void Free() override; + + void Describe_Entity() override; + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CamPosition_Arm.h b/Jusin154_Team3D/Editor/Public/CamPosition_Arm.h new file mode 100644 index 000000000..f1bee5f84 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CamPosition_Arm.h @@ -0,0 +1,44 @@ +#pragma once +#include "Editor_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Editor) + +class CCamPosition_Arm final : public CCamPosition +{ +public: + typedef struct tagCameraArm_Desc : public CCamPosition::CAMERAPOSITION_DESC + { + _float3 fEye{}, fAt{}; + _float fMouseSensor{}; + _float fDistance{}; + }CameraArm_DESC; +private: + CCamPosition_Arm(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Arm(const CCamPosition_Arm& rhs); + virtual ~CCamPosition_Arm() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources(); + _bool m_bMovable = true; + _float m_fMouseSensor = {}; + _float m_fDistance = {}; + _float m_fAccDegreeY = { }; + +public: + static CCamPosition_Arm* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Arm* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h b/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h new file mode 100644 index 000000000..fbaff6adb --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CamPosition_Shoulder.h @@ -0,0 +1,64 @@ +#pragma once +#include "Editor_Define.h" +#include "CamPosition.h" +#include "CamPosition_Target.h" + +NS_BEGIN(Editor) + +class CCamPosition_Shoulder final : public CCamPosition +{ +public: + typedef struct tagCameraShoulder_Desc : public CCamPosition::CAMERAPOSITION_DESC + { + _float fMouseSensor = { 0.5f }; + _float fShoulderDistance = { 2.f }; + _float fBackFrontRatio = { 0.9f }; + _float fCameraFocalLength = { 10.f }; + _float3 vInitialLook = { 1.f, 2.f, -1.f }; + }CAMERA_SHOULDER_DESC; +private: + CCamPosition_Shoulder(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Shoulder(const CCamPosition_Shoulder& rhs); + virtual ~CCamPosition_Shoulder() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Ready_SubParts(); + + _bool m_bMovable = { true }; + _float m_fMouseSensor = { 0.5f }; + _float m_fShoulderDistance = { 2.f }; + _float m_fCameraFocalLength = { 10.f }; + _float m_fBackFrontRatio = { 0.9f }; + _float2 m_vAccDegreeXY = {}; + _float3 m_vShoulderPosRatio = { 1.f, 2.f, -1.f }; + + _float3 m_vShoulderStartRatio = { 1.f, 2.f, -1.f }; + _float3 m_vShoulderOtherRatio = { 1.f, 2.f, -1.f }; + + _bool m_bLerp = { false }; + _float2 m_vLerpTimer = { 0.f, 1.f }; + + + CCamPosition_Target* m_pTarget_LookPart = { nullptr }; + CCamPosition_Target* m_pTarget_FollowPart = { nullptr }; + class CCamera_Gaze* m_pBinded_Camera = { nullptr }; + +public: + static CCamPosition_Shoulder* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Shoulder* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CamPosition_Socket.h b/Jusin154_Team3D/Editor/Public/CamPosition_Socket.h new file mode 100644 index 000000000..8b826a0a0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CamPosition_Socket.h @@ -0,0 +1,39 @@ +#pragma once +#include "Editor_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Editor) + +class CCamPosition_Socket final : public CCamPosition +{ +public: + typedef struct tagCamPosition_Player : public CCamPosition::CAMERAPOSITION_DESC + { + const _float4x4* pSocketMatrices = { }; + }CAMERAPOSITION_PLAYER_DESC; +private: + CCamPosition_Socket(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Socket(const CCamPosition_Socket& rhs); + virtual ~CCamPosition_Socket() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; +private: + const _float4x4* m_pSocketMatrices = { }; + +public: + static CCamPosition_Socket* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Socket* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/CamPosition_Target.h b/Jusin154_Team3D/Editor/Public/CamPosition_Target.h new file mode 100644 index 000000000..bef83e130 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/CamPosition_Target.h @@ -0,0 +1,37 @@ +#pragma once +#include "Editor_Define.h" +#include "CamPosition.h" + +NS_BEGIN(Editor) + +class CCamPosition_Target final : public CCamPosition +{ +public: + typedef struct tagCamPosition_Target : public CCamPosition::CAMERAPOSITION_DESC + { + }CAMERAPOSITION_TARGET_DESC; +private: + CCamPosition_Target(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamPosition_Target(const CCamPosition_Target& rhs); + virtual ~CCamPosition_Target() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + HRESULT Ready_Components(void* pArg); + HRESULT Bind_ShaderResources() override; + +public: + static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CCamPosition_Target* Clone(void* pArg, class CGameObject* pOWner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/DebugCamera.h b/Jusin154_Team3D/Editor/Public/Camera_Debug.h similarity index 76% rename from Jusin154_Team3D/Editor/Public/DebugCamera.h rename to Jusin154_Team3D/Editor/Public/Camera_Debug.h index 56c07bc30..d10732bea 100644 --- a/Jusin154_Team3D/Editor/Public/DebugCamera.h +++ b/Jusin154_Team3D/Editor/Public/Camera_Debug.h @@ -5,7 +5,7 @@ NS_BEGIN(Editor) -class CDebugCamera final : public CCamera +class CCamera_Debug final : public CCamera { public: typedef struct tagCamera_Debug : public CCamera::CAMERA_DESC @@ -14,9 +14,9 @@ class CDebugCamera final : public CCamera _float fMouseSensor{}; }CAMERA_DEBUG_DESC; private: - CDebugCamera(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CDebugCamera(const CDebugCamera& rhs); - virtual ~CDebugCamera() = default; + CCamera_Debug(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamera_Debug(const CCamera_Debug& rhs); + virtual ~CCamera_Debug() = default; public: virtual void Priority_Update(_float fTimeDelta) override; @@ -37,11 +37,11 @@ class CDebugCamera final : public CCamera void Set_InitialPos(); public: - static CDebugCamera* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + static CCamera_Debug* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override; virtual void Free() override; void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Camera_Gaze.h b/Jusin154_Team3D/Editor/Public/Camera_Gaze.h new file mode 100644 index 000000000..47c8cfcf8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Camera_Gaze.h @@ -0,0 +1,43 @@ +#pragma once + +#include "Editor_Define.h" +#include "Camera.h" + +NS_BEGIN(Editor) + +class CCamera_Gaze final : public CCamera +{ +public: + typedef struct tagCamera_Gaze : public CCamera::CAMERA_DESC + { + }CAMERA_GAZE_DESC; +private: + CCamera_Gaze(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CCamera_Gaze(const CCamera_Gaze& rhs); + virtual ~CCamera_Gaze() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + void Update_LerpTimer(Engine::_float fTimeDelta); + void Enable_FollowLerp(); + void Enable_LookLerp(); + void Toggle_Priority(); + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Bind_ShaderResources() override; + +public: + static CCamera_Gaze* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Decendo.h b/Jusin154_Team3D/Editor/Public/Decendo.h new file mode 100644 index 000000000..156d4cadd --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Decendo.h @@ -0,0 +1,50 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CDecendo final : public CEffect_Container +{ +private: + CDecendo(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDecendo(const CDecendo& rhs); + virtual ~CDecendo() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CDummy_PhysXEffectHitBox* m_pPhysHitBox = {}; + + class CPartObject* m_pProjectile = {}; + class CPartObject* m_pProjectile_Blur = {}; + + _vector m_vRotateUp = {}; + _float m_fAccTime = {}; + _float m_fLerpAmount = {}; + _float m_fTurnValue = {}; + _vector m_vOwnerLook = {}; +public: + static CDecendo* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Dummy_Globe.h b/Jusin154_Team3D/Editor/Public/Dummy_Globe.h new file mode 100644 index 000000000..5ed94c890 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Dummy_Globe.h @@ -0,0 +1,48 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +NS_END + +NS_BEGIN(Editor) + +class CDummy_Globe final : public CGameObject +{ +public: + typedef struct tagGlobeDesc { + _wstring wstrKey = {}; + _float3 vPos = {}; + }GLOBE_DESC; +private: + CDummy_Globe(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_Globe(const CDummy_Globe& rhs); + virtual ~CDummy_Globe() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummy_Globe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXEffectHitBox.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXEffectHitBox.h new file mode 100644 index 000000000..eaca4fb15 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXEffectHitBox.h @@ -0,0 +1,61 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" +#include "CallBack_EffectHitBox_Behavior.h" +#include "CallBack_EffectHitBox_HitReport.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +class CRigidBody; +NS_END + +NS_BEGIN(Editor) + +class CDummy_PhysXEffectHitBox final : public CGameObject +{ +public: + typedef struct tagPhysXDummyDesc + { + _float3 vPos = {}; + _float3 vRotRPY = {}; + _uint iSubKind = {}; + _float3 vDeltaPos = {}; + _float2 vLifeTime = {}; + }PHYSXDUMMY_DESC; +private: + CDummy_PhysXEffectHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_PhysXEffectHitBox(const CDummy_PhysXEffectHitBox& rhs); + virtual ~CDummy_PhysXEffectHitBox() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CCallBack_EffectHitBox_Behavior* m_pCallBack_Behavior = { nullptr }; + CCallBack_EffectHitBox_HitReport* m_pCallBack_HitReport = { nullptr }; + _float3 m_vDeltaPos = {}; + _float2 m_vLifeTime = { }; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummy_PhysXEffectHitBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Dummy_PhysXHitBox.h b/Jusin154_Team3D/Editor/Public/Dummy_PhysXHitBox.h new file mode 100644 index 000000000..300cb8182 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Dummy_PhysXHitBox.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CModel; +class CShader; +class CRigidBody; +NS_END + +NS_BEGIN(Editor) + +class CDummy_PhysXHitBox final : public CGameObject +{ +public: + typedef struct tagPhysXDummyDesc + { + _float3 vPos = {}; + _float3 vRotRPY = {}; + _uint iSubKind = {}; + }PHYSXDUMMY_DESC; +private: + CDummy_PhysXHitBox(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CDummy_PhysXHitBox(const CDummy_PhysXHitBox& rhs); + virtual ~CDummy_PhysXHitBox() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + CRigidBody* m_pRigidBody = { nullptr }; + const PSX::PxRigidDynamic* m_pActor = { nullptr }; + CModel* m_pModelCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + +public: + static CDummy_PhysXHitBox* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/EditEffect.h b/Jusin154_Team3D/Editor/Public/EditEffect.h index be9ec7891..e82f31a9f 100644 --- a/Jusin154_Team3D/Editor/Public/EditEffect.h +++ b/Jusin154_Team3D/Editor/Public/EditEffect.h @@ -6,6 +6,7 @@ NS_BEGIN(Engine) class CModel; class CShader; + NS_END NS_BEGIN(Editor) @@ -25,6 +26,7 @@ class CEditEffect final : public CEffectObject public: void Reference_Mat_For_EditEffect(); HRESULT Save_Effect(const _char* pPath); + HRESULT Save_Path(HANDLE hFile); private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; @@ -32,6 +34,13 @@ class CEditEffect final : public CEffectObject private: _int m_iSelectTextureNum = {}; + vector<_float> m_ValueVector = {}; + _float m_fInputValue = {}; + + _bool m_isGoStraight = {}; + _float m_fAccTime = {}; + _int m_iSign = { 1 }; + public: static CEditEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 337f65f8b..a78773c0b 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -13,18 +13,22 @@ namespace Editor const unsigned int g_iWinSizeX = 1920; const unsigned int g_iWinSizeY = 1080; - enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, END }; + enum class LEVEL { STATIC, LOADING, LOGO, LOBY, GAMEPLAY, RESTART, OBJECT, MAP, UI, EFFECT, PHYSX, BLOOM, END }; enum class COLLIDABLEOBJECT { PLAYER, MONSTER, HOSTILE_HITBOX, ALLY_HITBOX, NEUTRAL_HITBOX, ENVIRIONMENT, NPC, ITEM, TRIGGERBOX, REGION, NOCOLLIDE, END }; enum class MAPOBJECT_TYPE { CONTAINER, ELEMENT_STATIC, ELEMENT_INTERACT }; + enum class MAPOBJECT_RENDER_TYPE {NORMAL, DECAL, GLASS}; enum class SHADER_PASS_ANIM { DEFAULT, SHADOW, CAPTURE, BLUR, END }; enum class SHADER_PASS_CUBE { DEFAULT, SHADOW, BLUR, END }; - enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, END }; + enum class SHADER_PASS_MESH { DEFAULT, SHADOW, SKYBOX, ALPHABLEND, EFFECT_ALPHABLEND, EFFECT_BLEND, EFFECT_ALPHABLEND_CULL, EFFECT_BLEND_CULL, CAPTURE, BLUR, EFFECT_ALPHABLEND_UVMOVE, MAPTOOL, GLASS, END }; enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; - enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, END }; - enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END }; - enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, END }; + enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR ,END }; + enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND ,NON_WORLD , BLUR_NO_WORLD ,END }; + enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV,END }; + enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END }; + + enum class EFFECT_TYPE { EFFECT, TRAIL, END }; } using namespace Editor; diff --git a/Jusin154_Team3D/Editor/Public/Editor_Macro.h b/Jusin154_Team3D/Editor/Public/Editor_Macro.h index b6589b9d8..f7fcc05b2 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Macro.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Macro.h @@ -10,15 +10,16 @@ namespace Editor { #pragma region FX_NAME -#define FX_ANIMMESH TEXT("FX_ANIMMESH") -#define FX_MESH TEXT("FX_MESH") -#define FX_POSTEX TEXT("FX_POSTEX") -#define FX_NORTEX TEXT("FX_NORTEX") -#define FX_CELL TEXT("FX_CELL") -#define FX_DEFERRED TEXT("FX_DEFFERED") -#define FX_PARTICLE TEXT("FX_PARTICLE") -#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL") -#define FX_UIEDITOR TEXT("FX_UIEDITOR") +#define FX_ANIMMESH TEXT("FX_ANIMMESH") +#define FX_MESH TEXT("FX_MESH") +#define FX_POSTEX TEXT("FX_POSTEX") +#define FX_NORTEX TEXT("FX_NORTEX") +#define FX_CELL TEXT("FX_CELL") +#define FX_PARTICLE TEXT("FX_PARTICLE") +#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL") +#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL") +#define FX_UIEDITOR TEXT("FX_UIEDITOR") +#define FX_UIINSTANCE TEXT("FX_UIINSTANCE") #pragma endregion @@ -29,6 +30,8 @@ namespace Editor { #pragma endregion #pragma region OBJECT +#define CAMERA_DEBUG TEXT("CAMERA_DEBUG") +#define CAMERA_SHOULDER TEXT("CAMERA_SHOULDER") #pragma endregion #pragma region COMPONENT @@ -63,4 +66,4 @@ namespace Editor { #pragma endregion -} \ No newline at end of file +} diff --git a/Jusin154_Team3D/Editor/Public/Editor_Struct.h b/Jusin154_Team3D/Editor/Public/Editor_Struct.h index f7cec534e..a852a7670 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Struct.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Struct.h @@ -1,13 +1,15 @@ -#pragma once - +#pragma once NS_BEGIN(Engine) class CTransform; +class CModel; +class CRigidBody_Static; NS_END NS_BEGIN(Editor) typedef struct tagMapObject_Desc { - CTransform* pParentTransform = { nullptr }; + _uint iRenderType{}; + CTransform* pParentTransform = { nullptr }; _float3 vScale; _float3 vRotation; _float3 vPosition; @@ -27,4 +29,16 @@ typedef struct tagMapObjectLodDesc : public tagMapObject_Desc vector<_uint>* pModelPathIndices = { nullptr }; }MAPOBJECT_LOD_DESC; -NS_END \ No newline at end of file + +typedef struct tagFolderLoad { + _wstring pModelTag; + CModel* pLoadedModel; + filesystem::path pathModel; + + _bool bLoadTags; + vector<_wstring> pRigidBodyTags; + vector LoadedRigidBody; +}FOLDER_LOAD; + + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 8ec16cb71..bbcdc5e73 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -8,6 +8,7 @@ class CInstance_Model; class CShader; class CTexture; class CLight; +class CTrail; NS_END NS_BEGIN(Editor) @@ -50,18 +51,41 @@ class CEffectObject abstract : public CPartObject _bool isMaskUVMove = {}; _bool isBlur = {}; _bool isBillboard = {}; + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; _float fDiffuseAlpha = { 1.f }; _float fBlurIntensity = {}; _float fNoiseDistortionIntensity = {}; - _float fEmissiveCutAlpha = {}; + _float fEmissiveStrength = { 0.f }; LIGHT_DESC LightDesc = {}; RENDER eRenderOrder = { RENDER::EFFECT }; _bool isReverseDissolve = {}; + EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT }; + + _bool isEmissiveDissolve = { false }; + + _bool isMaskClampSample = { false }; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _bool isNomalDissolve = {}; + + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + _bool isEmissiveDissolveReverse = { false }; + _bool isOnlyBlur = { false }; + + SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; + }EFFECT_INFO; typedef struct tagPreEffectInfo @@ -104,10 +128,30 @@ class CEffectObject abstract : public CPartObject _float fDiffuseAlpha = { 1.f }; _float fBlurIntensity = {}; _float fNoiseDistortionIntensity = {}; - _float fEmissiveCutAlpha = {}; + _float fEmissiveStrength = {}; LIGHT_DESC LightDesc = {}; RENDER eRenderOrder = { RENDER::EFFECT }; + _bool isReverseDissolve = {}; + EFFECT_TYPE eEffectType = { EFFECT_TYPE::EFFECT }; + _bool isEmissiveDissolve = { false }; + _bool isMaskClampSample = { false }; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _bool isNomalDissolve = {}; + + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + _bool isEmissiveDissolveReverse = { false }; + _bool isOnlyBlur = { false }; + + SHADER_PASS_INSTANCE_MODEL eShaderPass = { SHADER_PASS_INSTANCE_MODEL::NON_NOMALMAP }; }PRE_EFFECT_INFO; @@ -124,7 +168,7 @@ class CEffectObject abstract : public CPartObject virtual HRESULT Render_Blur() override; public: HRESULT Load(const _char* pFilePath, LEVEL eLevel); - + HRESULT Load(); public: #ifdef _DEBUG HRESULT LoadPre(const _char* pFilePath, LEVEL eLevel); @@ -150,6 +194,7 @@ class CEffectObject abstract : public CPartObject CInstance_Model* m_pInstance_ModelCom = { nullptr }; + protected: EFFECT_INFO m_EffectInfo = {}; _string m_strDiffuseName = {}; @@ -160,6 +205,9 @@ class CEffectObject abstract : public CPartObject _string m_strEmissiveName = {}; _string m_strDistortionName = {}; + _string m_strPath = {}; + _string m_strName = {}; + public: virtual void Free() override; }; diff --git a/Jusin154_Team3D/Editor/Public/Effect_Container.h b/Jusin154_Team3D/Editor/Public/Effect_Container.h new file mode 100644 index 000000000..af94757a0 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Effect_Container.h @@ -0,0 +1,51 @@ +#pragma once + +#include "Editor_Define.h" +#include "ContainerObject.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CEffect_Container abstract : public CContainerObject +{ +protected: + CEffect_Container(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CEffect_Container(const CEffect_Container& rhs); + virtual ~CEffect_Container() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +public: + HRESULT Load_Directory(const _char* pPath); +protected: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + + void Update_Event(_float fTimeDelta); + +protected: + _wstring m_wstrEffectName = {}; + + _bool m_isLoop = {}; + + _float m_fAccTime = {}; + _float m_fPreAccTime = {}; + _float m_fDuration = {}; + _float m_fDelay = {}; + _bool m_isDelayed = { false }; + + map<_float, function> m_Events = {}; + +public: + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Effect_Editor.h b/Jusin154_Team3D/Editor/Public/Effect_Editor.h index 4080cf896..1c58e6652 100644 --- a/Jusin154_Team3D/Editor/Public/Effect_Editor.h +++ b/Jusin154_Team3D/Editor/Public/Effect_Editor.h @@ -1,7 +1,7 @@ #pragma once #include "Editor_Define.h" -#include "ContainerObject.h" +#include "Effect_Container.h" NS_BEGIN(Engine) class CModel; @@ -10,7 +10,7 @@ NS_END NS_BEGIN(Editor) -class CEffect_Editor final : public CContainerObject +class CEffect_Editor final : public CEffect_Container { private: CEffect_Editor(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -41,11 +41,17 @@ class CEffect_Editor final : public CContainerObject _string m_strCurrentEffectName = {}; _uint m_iNumPart = { 0 }; - class CEditEffect* m_pEditEffect = { nullptr }; + class CEditEffect* m_pEditEffect = { nullptr }; // 현재 선택된 이펙트 객체 + class CTrailObject* m_pTrailObject = { nullptr }; map<_wstring, vector>> m_MatFiles = {}; // map<머테리얼 이름, vector<텍스쳐이름 , 텍스쳐 경로>> _char m_szBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/"}; + _char m_szTrailBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/Trail/" }; + _char m_szPackageBuffer[MAX_PATH] = { "../Bin/Resources/Data/Effect/" }; + _string m_strSavePath = {}; + _string m_strTrailSavePath = {}; + _string m_strPackageSavePath = {}; public: static CEffect_Editor* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Goblin.h b/Jusin154_Team3D/Editor/Public/Goblin.h index 7e9cf43a0..db5bf848d 100644 --- a/Jusin154_Team3D/Editor/Public/Goblin.h +++ b/Jusin154_Team3D/Editor/Public/Goblin.h @@ -2,6 +2,8 @@ #include "Editor_Define.h" #include "Monster.h" +#include "CallBack_Monster_Behavior.h" +#include "CallBack_Monster_HitReport.h" NS_BEGIN(Editor) @@ -20,6 +22,13 @@ class CGoblin final : public CMonster virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; +private: + CCallBack_Monster_Behavior* m_pCallBack_Behavior = { nullptr }; + CCallBack_Monster_HitReport* m_pCallBack_HitReport = { nullptr }; + + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); @@ -29,6 +38,24 @@ class CGoblin final : public CMonster virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override; virtual void Free() override; virtual void Describe_Entity() override; + +private: + virtual void Add_FSM(); + virtual void Set_Anim(); + + + void Behavior_IdleEnter(); + HRESULT Behavior_IdleExitCheck(); + void Behavior_IdleExit(); + + void Behavior_MoveEnter(); + HRESULT Behavior_MoveExitCheck(); + void Behavior_MoveExit(); + + void Behavior_CombatEnter(); + HRESULT Behavior_CombatExitCheck(); + void Behavior_CombatExit(); + }; NS_END diff --git a/Jusin154_Team3D/Editor/Public/HpBarBG.h b/Jusin154_Team3D/Editor/Public/HpBarBG.h new file mode 100644 index 000000000..6c97eea15 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/HpBarBG.h @@ -0,0 +1,52 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CHpBarBG final : public CElementObject +{ +private: + CHpBarBG(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CHpBarBG(const CHpBarBG& rhs); + virtual ~CHpBarBG() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + virtual void Lerp_PosX(_float X) override; + +public: + void Heal(_float fTimeDelta); + void Hit(_float fTimeDelta); + virtual void SizeUpX(_float SizeX) override; +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pDiffuse_TextureCom1 = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + + _float m_fMaxHp{}; + _float m_fCurrentHp{}; + _float m_fHpBar{}; + _float m_fDamage{}; + _float m_fTargetHp{}; + _float2 m_fHpBG{}; +public: + static CHpBarBG* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Information.h b/Jusin154_Team3D/Editor/Public/Information.h deleted file mode 100644 index dc4c393dd..000000000 --- a/Jusin154_Team3D/Editor/Public/Information.h +++ /dev/null @@ -1,60 +0,0 @@ -#pragma once - -#include "Base.h" -#include "Editor_Define.h" - -NS_BEGIN(Editor) - -typedef class CInformation final : public CBase -{ - DECLARE_SINGLETON(CInformation) -public: - HRESULT Initialize_Info(ID3D11Device* pDevice = nullptr, ID3D11DeviceContext* pContext = nullptr); - HRESULT Release_Info(); -#pragma region WHOLEPART - _bool strListBox(const _char* Label, _int& iCurrentIndex, vector<_string>& contents); - _bool wstrListBox(const _char* Label, _int& iCurrentIndex, vector<_wstring>& contents); - -#pragma endregion // 전역 - -#pragma region OBJECTVIEWER - -#pragma endregion -#pragma region MAPVIEWER - -#pragma endregion -#pragma region EFFECTVIEWER - -#pragma endregion -#pragma region UIVIEWER - -#pragma endregion -#pragma region PHYSXVIEWER - -#pragma endregion -#pragma region COMBINEDVIEWER - -#pragma endregion - -public: -#pragma region LOG - void Log_Render(); - void Log_Push(const _char* pContents); - void Log_Clear(); -#pragma endregion - -private: - ID3D11Device* m_pDevice = { nullptr }; - ID3D11DeviceContext* m_pContext = { nullptr }; - class CGameInstance* m_pGameInstance = { nullptr }; - - _string m_strLog = {}; - - -private: - CInformation(); - virtual ~CInformation() = default; - virtual void Free() override; -}INFO; - -NS_END \ No newline at end of file diff --git a/Jusin154_Team3D/Editor/Public/InstancedProp.h b/Jusin154_Team3D/Editor/Public/InstancedProp.h new file mode 100644 index 000000000..16248e852 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/InstancedProp.h @@ -0,0 +1,73 @@ +#pragma once + +#include "Editor_Define.h" +#include "GameObject.h" + +NS_BEGIN(Engine) +class CVIBuffer_Model_Instance; +class CShader; +class CTexture; +NS_END + +NS_BEGIN(Editor) + +class CInstancedProp final : public CGameObject +{ +public: + typedef struct tagInstancedPropDesc + { + _bool bEditMode{}; + _wstring strPrototypeTag; + string strInstanceDataPath; + }INSTANCE_PROP_DESC; +private: + CInstancedProp(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CInstancedProp(const CInstancedProp& rhs); + virtual ~CInstancedProp() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + _bool m_bEditMode = {}; + CVIBuffer_Model_Instance* m_pVIBufferInstanceCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + + vector<_float4x4> m_WorldMatrices = {}; + _float4x4 m_WorldMatrixIdentity = {}; + _wstring m_strPrototypeTag; + + _float4 m_vPosition = {}; + _float3 m_vRotation = {}; + _float3 m_vScale = {}; +#ifdef _DEBUG + _char m_szFileName[MAX_PATH] = {}; + +#endif // _DEBUG + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Bind_ShaderResources() override; + + void Add_WorldMatrix(); + void Load_InstancedProp(const _char* pFilePath); + +#ifdef _DEBUG + void Save_InstancedProp(const _char* pFilePath); +#endif // _DEBUG + +public: + static CInstancedProp* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Land.h b/Jusin154_Team3D/Editor/Public/Land.h index 3daee86ce..9edc3490f 100644 --- a/Jusin154_Team3D/Editor/Public/Land.h +++ b/Jusin154_Team3D/Editor/Public/Land.h @@ -34,6 +34,9 @@ class CLand final : public CGameObject CShader* m_pShaderCom = { nullptr }; CModel* m_pModelCom = { nullptr }; _float4 m_vPosition = {}; + + _float4x4 m_ProjMatrix = {}; + _float4x4 m_ViewMatrix = {}; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; diff --git a/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h new file mode 100644 index 000000000..028c7e1a8 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Level_BloomViewer.h @@ -0,0 +1,31 @@ +#pragma once + +#include "Editor_Define.h" +#include "Level.h" + +NS_BEGIN(Editor) + +class CLevel_BloomViewer final : public CLevel +{ +private: + CLevel_BloomViewer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); + virtual ~CLevel_BloomViewer() = default; + +public: + virtual void Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + /* 이 레벨에서 쓰기위한 객체들을 생성한다. */ + virtual HRESULT Initialize() override; + HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); + HRESULT Ready_Layer_Light(); + HRESULT Ready_Layer_UI(const _wstring& strLayerTag); + HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); + +public: + static CLevel_BloomViewer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h index fc83d6863..9d32f6815 100644 --- a/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_EffectViewer.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -16,16 +16,17 @@ class CLevel_EffectViewer final : public CLevel virtual HRESULT Render() override; private: - /* ÀÌ ·¹º§¿¡¼­ ¾²±âÀ§ÇÑ °´üµéÀ» »ý¼ºÇѴÙ. */ + /* 이 레벨에서 쓰기위한 객체들을 생성한다. */ virtual HRESULT Initialize() override; HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_Light(); HRESULT Ready_Layer_UI(const _wstring& strLayerTag); HRESULT Ready_Layer_Effect(const _wstring& strLayerTag); + HRESULT Ready_Layer_PhysX(const _wstring& strLayerTag); public: static CLevel_EffectViewer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID); virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Level_Loading.h b/Jusin154_Team3D/Editor/Public/Level_Loading.h index 94e04b8e3..22297c591 100644 --- a/Jusin154_Team3D/Editor/Public/Level_Loading.h +++ b/Jusin154_Team3D/Editor/Public/Level_Loading.h @@ -1,10 +1,10 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" -/* 2. ÀڿøÀ» ·εåÇϴ µ¿¾È, ȭ¸鿡 ·εù »óŸ¦ ǥÇöÇØÁشÙ. */ +/* 2. 자원을 로드하는 동안, 화면에 로딩 상태를 표현해준다. */ NS_BEGIN(Editor) @@ -21,7 +21,7 @@ class CLevel_Loading final : public CLevel private: LEVEL m_eNextLevelID = { LEVEL::END }; - class CLoader* m_pLoader = { nullptr }; + class CLoader* m_pLoader = { nullptr }; private: virtual HRESULT Initialize(LEVEL eNextLevelID); @@ -36,4 +36,4 @@ class CLevel_Loading final : public CLevel }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h index 3891c2585..941fca2e3 100644 --- a/Jusin154_Team3D/Editor/Public/Level_MapViewer.h +++ b/Jusin154_Team3D/Editor/Public/Level_MapViewer.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -21,6 +21,7 @@ class CLevel_MapViewer final : public CLevel HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); HRESULT Ready_Layer_Background(const _wstring& strLayerTag); HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag); + HRESULT Ready_Layer_InstanceProp(const _wstring& strLayerTag); HRESULT Ready_Layer_BuildingContainer(const _wstring& strLayerTag); HRESULT Ready_Layer_MapObjectManager(const _wstring& strLayerTag); @@ -31,4 +32,4 @@ class CLevel_MapViewer final : public CLevel virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h index 2bca2fc94..277feddd1 100644 --- a/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h +++ b/Jusin154_Team3D/Editor/Public/Level_PhysXLab.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "Level.h" @@ -19,7 +19,6 @@ class CLevel_PhysXLab final : public CLevel virtual HRESULT Initialize() override; HRESULT Ready_Layer_Light(); HRESULT Ready_Layer_Camera(const _wstring& strLayerTag); - HRESULT Ready_Layer_Terrain(const _wstring& strLayerTag); HRESULT Ready_Layer_PhysXObjects(const _wstring& strLayerTag); @@ -29,4 +28,4 @@ class CLevel_PhysXLab final : public CLevel virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Loader.h b/Jusin154_Team3D/Editor/Public/Loader.h index 62caaffda..ee1e1ba89 100644 --- a/Jusin154_Team3D/Editor/Public/Loader.h +++ b/Jusin154_Team3D/Editor/Public/Loader.h @@ -29,12 +29,9 @@ class CLoader final : public CBase ID3D11DeviceContext* m_pContext = { nullptr }; LEVEL m_eNextLevelID = { LEVEL::END }; - HANDLE m_hThread = {}; - _wstring m_strMessage = {}; _bool m_isFinished = { false }; - CRITICAL_SECTION m_CriticalSection = {}; CGameInstance* m_pGameInstance = { nullptr }; @@ -48,10 +45,13 @@ class CLoader final : public CBase HRESULT Loading_For_UI(); HRESULT Loading_For_Effect(); HRESULT Loading_For_PhysXLevel(); + HRESULT Loading_For_Bloom(); private: HRESULT Asset_FileLoad(const _char* pDirectoryPath, const _tchar* pPreName, function AddPrototypeEvent); HRESULT MapFolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector<_wstring>& ModelPrototypeTags, vector& ModelPrototypePath); + future Deferred_FolderLoad(const _char* pDirectoryPath, const _char* pFileExt, _bool bUseTag, vector** OutContents); + future*> Deferred_ModelLoad(MODEL eType, const _char* pDirectoryPath, _fmatrix PreTransform, const _tchar* pPrototypeTag); public: static CLoader* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eNextLevelID); diff --git a/Jusin154_Team3D/Editor/Public/Magic_Icon.h b/Jusin154_Team3D/Editor/Public/Magic_Icon.h new file mode 100644 index 000000000..68ae18752 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Magic_Icon.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CMagic_Icon final : public CElementObject +{ +private: + CMagic_Icon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMagic_Icon(const CMagic_Icon& rhs); + virtual ~CMagic_Icon() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pDiffuse_TextureCom1 = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + +public: + static CMagic_Icon* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Magic_Meter.h b/Jusin154_Team3D/Editor/Public/Magic_Meter.h new file mode 100644 index 000000000..7373514df --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Magic_Meter.h @@ -0,0 +1,51 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CMagic_Meter final : public CElementObject +{ +private: + CMagic_Meter(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CMagic_Meter(const CMagic_Meter& rhs); + virtual ~CMagic_Meter() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +public: + void Meter_Index(_uint Number); + //void Set_ + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pDiffuse_TextureCom1 = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + + _uint m_iImageCount{}; + _float4 m_vGaugeUV{}; + _float m_fMaxGauge{}; + _float m_fCurrentGauge{}; + _float m_fGaugeBar{}; + _float m_fTargetGauge{}; +public: + static CMagic_Meter* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MapObject_Collision.h b/Jusin154_Team3D/Editor/Public/MapObject_Collision.h index 759b026a0..f7b62419f 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_Collision.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_Collision.h @@ -9,7 +9,7 @@ NS_END NS_BEGIN(Editor) -class CMapObject_Collision final : public CMapObject // LOD 모델이 없는 애들 +class CMapObject_Collision final : public CMapObject // 충돌용 Mesh { private: CMapObject_Collision(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/MapObject_LOD.h b/Jusin154_Team3D/Editor/Public/MapObject_LOD.h index b70c09f6a..937ded489 100644 --- a/Jusin154_Team3D/Editor/Public/MapObject_LOD.h +++ b/Jusin154_Team3D/Editor/Public/MapObject_LOD.h @@ -32,14 +32,15 @@ class CMapObject_LOD final : public CMapObject // LOD 있는 애들 } private: - CShader* m_pShaderCom = { nullptr }; - vector m_pModelComs; + MAPOBJECT_RENDER_TYPE m_Type = {}; + CShader* m_pShaderCom = { nullptr }; + vector m_pModelComs; - _uint m_iLodIndex = {}; - _uint m_iShaderPass = {}; + _uint m_iLodIndex = {}; + _uint m_iShaderPass = {}; - vector<_wstring> m_ModelPrototypeTags; - vector<_uint> m_ModelPathIndices = { }; + vector<_wstring> m_ModelPrototypeTags; + vector<_uint> m_ModelPathIndices = { }; private: HRESULT Ready_Components(); diff --git a/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h b/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h index df0515fe9..aa783559a 100644 --- a/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h +++ b/Jusin154_Team3D/Editor/Public/MiniMap_Panel.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "PanelObject.h" @@ -35,6 +35,7 @@ class CMiniMap_Panel final : public CPanelObject CShader* m_pShaderCom = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; CGameObject* m_pMiniMap_TrimBorder = { nullptr }; + CGameObject* m_pNoMountIcon = { nullptr }; public: @@ -44,4 +45,4 @@ class CMiniMap_Panel final : public CPanelObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/MissionBanner_Border.h b/Jusin154_Team3D/Editor/Public/MissionBanner_Border.h index b85bdb006..6d51ead7e 100644 --- a/Jusin154_Team3D/Editor/Public/MissionBanner_Border.h +++ b/Jusin154_Team3D/Editor/Public/MissionBanner_Border.h @@ -19,6 +19,10 @@ class CMissionBanner_Border final : public CElementObject virtual HRESULT Render() override; virtual _vector Get_WorldPostion() override; + virtual void SizeUpX(_float fSizeX) override; + virtual void Lerp_PosY(_float fSizeY) override; + void Size_LerpOn(_float LerpX, _float fTimeDelta); + void Size_LerpOff(_float fTimeDelta); private: virtual HRESULT Bind_ShaderResources() override; @@ -32,6 +36,9 @@ class CMissionBanner_Border final : public CElementObject CShader* m_pShaderCom = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + CGameObject* m_pMission_Icon = { nullptr }; + + _float m_fLerpTime{}; public: static CMissionBanner_Border* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Mission_Icon.h b/Jusin154_Team3D/Editor/Public/Mission_Icon.h index b7753e4d6..7cd6094ba 100644 --- a/Jusin154_Team3D/Editor/Public/Mission_Icon.h +++ b/Jusin154_Team3D/Editor/Public/Mission_Icon.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ElementObject.h" @@ -19,7 +19,9 @@ class CMission_Icon final : public CElementObject virtual HRESULT Render() override; virtual _vector Get_WorldPostion() override; - + virtual void MoveX(_float fX)override; + virtual void MoveY(_float fY)override; + virtual void Lerp_PosY(_float fLerpY) override; private: virtual HRESULT Bind_ShaderResources() override; virtual HRESULT Ready_Components(void* pArg) override; @@ -30,8 +32,8 @@ class CMission_Icon final : public CElementObject void QuestType(QUESTYPE eType); private: - CTexture* m_pDiffuse_TextureCom = { nullptr }; - CShader* m_pShaderCom = { nullptr }; + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; QUESTYPE m_eQuestType = QUESTYPE::END; _uint m_iType{}; @@ -43,4 +45,4 @@ class CMission_Icon final : public CElementObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Mission_Key.h b/Jusin154_Team3D/Editor/Public/Mission_Key.h index 0ea094ca1..662205cf4 100644 --- a/Jusin154_Team3D/Editor/Public/Mission_Key.h +++ b/Jusin154_Team3D/Editor/Public/Mission_Key.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "ElementObject.h" @@ -20,6 +20,9 @@ class CMission_Key final : public CElementObject virtual _vector Get_WorldPostion() override; +private: + _float4 AlphabetUV(_tchar Alphabet); + private: virtual HRESULT Bind_ShaderResources() override; virtual HRESULT Ready_Components(void* pArg) override; @@ -31,7 +34,7 @@ class CMission_Key final : public CElementObject CShader* m_pShaderCom = { nullptr }; CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; - + _float4 m_vUV{}; public: static CMission_Key* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; @@ -39,4 +42,4 @@ class CMission_Key final : public CElementObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Mission_Panel.h b/Jusin154_Team3D/Editor/Public/Mission_Panel.h index 0ec0bb886..aaf1e0291 100644 --- a/Jusin154_Team3D/Editor/Public/Mission_Panel.h +++ b/Jusin154_Team3D/Editor/Public/Mission_Panel.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "PanelObject.h" @@ -36,7 +36,6 @@ class CMission_Panel final : public CPanelObject CGameObject* m_pMissionBanner_Key = { nullptr }; CGameObject* m_pMission_KeyHold = { nullptr }; CGameObject* m_pMission_Key = { nullptr }; - CGameObject* m_pMission_Icon = { nullptr }; CGameObject* m_pActive_Icon = { nullptr }; public: @@ -46,4 +45,4 @@ class CMission_Panel final : public CPanelObject void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Monster.h b/Jusin154_Team3D/Editor/Public/Monster.h index 71ec3356d..dadcd638d 100644 --- a/Jusin154_Team3D/Editor/Public/Monster.h +++ b/Jusin154_Team3D/Editor/Public/Monster.h @@ -20,6 +20,10 @@ class CMonster abstract : public CUnit virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; +protected: + CTransform* m_pPlayerTransform = { nullptr }; + _float m_fTargetDistance = {}; + protected: HRESULT Ready_Components(void* pArg); HRESULT Bind_ShaderResources(); diff --git a/Jusin154_Team3D/Editor/Public/NoMountIcon.h b/Jusin154_Team3D/Editor/Public/NoMountIcon.h new file mode 100644 index 000000000..1bc86675b --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/NoMountIcon.h @@ -0,0 +1,42 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CNoMountIcon final : public CElementObject +{ +private: + CNoMountIcon(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CNoMountIcon(const CNoMountIcon& rhs); + virtual ~CNoMountIcon() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + + +public: + static CNoMountIcon* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/NomalJap.h b/Jusin154_Team3D/Editor/Public/NomalJap.h new file mode 100644 index 000000000..bf19461b7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/NomalJap.h @@ -0,0 +1,41 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CNomalJap final : public CEffect_Container +{ +private: + CNomalJap(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CNomalJap(const CNomalJap& rhs); + virtual ~CNomalJap() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + + +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + HRESULT Ready_Child(); + HRESULT Bind_ShaderResources() override; + virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override; +private: + _wstring m_wstrEffectName = {}; + class CDummy_PhysXEffectHitBox* m_pPhysHitBox = {}; +public: + static CNomalJap* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual void Free() override; + CGameObject* Clone(void* pArg, CGameObject* pOwner) override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Player.h b/Jusin154_Team3D/Editor/Public/Player.h index 66b3edc6c..b1b36c1da 100644 --- a/Jusin154_Team3D/Editor/Public/Player.h +++ b/Jusin154_Team3D/Editor/Public/Player.h @@ -7,35 +7,39 @@ NS_BEGIN(Editor) class CPlayer final : public CUnit { -public: - struct InputCondition - { - FSMSTATE::ESTATE state; - function<_bool()> checker; - }; - private: CPlayer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CPlayer(const CPlayer& Prototype); virtual ~CPlayer() = default; public: - virtual HRESULT Initialize_Prototype() override; - virtual HRESULT Initialize(void* pArg) override; virtual void Priority_Update(_float fTimeDelta) override; virtual void Update(_float fTimeDelta) override; virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; _bool Set_Sprint(_bool bSprint) { m_bSprintToggle = bSprint; } -private: - vector m_InputConditions; - _bool m_bSprintToggle = { false }; private: + _float m_fDirectionRadian = 0.f; + + _bool m_bSprintToggle = { false }; + _bool m_bWalkToggle = { false }; + + + class CCamPosition_Socket* m_pCamPosition_TopDown_LookPart = { nullptr }; + class CCamPosition_Arm* m_pCamPosition_TopDown_FollowPart = { nullptr }; + class CCamPosition_Shoulder* m_pCamPosition_ShoulderPart = { nullptr }; + + CCharacter_Controller* m_pCharacter_Controller = { nullptr }; + CRigidBody_Dynamic* m_pRigidBody = { nullptr }; + class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr }; + class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr }; +private: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; HRESULT Ready_Components(); + HRESULT Ready_Parts(); HRESULT Bind_ShaderResources(); - void Setup_InputConditions(); - void Key_Input(_float fTimeDelta); public: static CPlayer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -44,21 +48,47 @@ class CPlayer final : public CUnit virtual void Describe_Entity() override; #pragma region STATE -private: - virtual void Add_FSM(); - virtual void Set_FSM(); - virtual void Set_Anim(); - _bool Check(FSMSTATE::ESTATE state); - _bool IsSprint(); + public: virtual void Reset_Sprint() { m_bSprintToggle = false; } + virtual void Reset_Walk() { m_bWalkToggle = false; } +private: + void TestKeyInput(_float fTimeDelta); + virtual void Add_FSM(); + virtual void Set_Anim(); + + HRESULT InputAction(); + HRESULT InputMove(); + HRESULT InputSpell(); + + _float m_fAmount = { 1.f }; + + void Behavior_IdleEnter(); + HRESULT Behavior_IdleExitCheck(); + void Behavior_IdleExit(); + + void Behavior_MoveEnter(); + HRESULT Behavior_MoveExitCheck(); + void Behavior_MoveExit(); + + void Behavior_JumpEnter(); + HRESULT Behavior_JumpExitCheck(); + void Behavior_JumpExit(); + + void Behavior_LandEnter(); + HRESULT Behavior_LandExitCheck(); + void Behavior_LandExit(); + + void Behavior_DodgeEnter(); + HRESULT Behavior_DodgeExitCheck(); + void Behavior_DodgeExit(); + + void Behavior_CombatEnter(); + HRESULT Behavior_CombatExitCheck(); + void Behavior_CombatExit(); #pragma endregion - - - - }; NS_END diff --git a/Jusin154_Team3D/Editor/Public/Potion.h b/Jusin154_Team3D/Editor/Public/Potion.h new file mode 100644 index 000000000..604263141 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Potion.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CPotion final : public CElementObject +{ +private: + CPotion(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CPotion(const CPotion& rhs); + virtual ~CPotion() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + +public: + static CPotion* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Slot_Number.h b/Jusin154_Team3D/Editor/Public/Slot_Number.h new file mode 100644 index 000000000..340b9b872 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Slot_Number.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CSlot_Number final : public CElementObject +{ +private: + CSlot_Number(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CSlot_Number(const CSlot_Number& rhs); + virtual ~CSlot_Number() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + virtual void SizeUpX(_float fSizeX) override; + virtual void SizeUpY(_float fSizeY) override; + virtual void SizeUpdate(_float fSizeX, _float fSizeY) override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + void UV(); + _float2 Meter_Index(_uint Numver); + _float2 Compute_UVY(_uint Numver); + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr }; + CVIBuffer_UI_Instance::UI_ATLAS_DESC pUVDesc[4]; + + _float2 m_fIamge_Size{}; + _float m_fOffSetX{}; + _float m_fOffSetY{}; + _uint m_iCols{}; + +public: + static CSlot_Number* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Spell_Slot.h b/Jusin154_Team3D/Editor/Public/Spell_Slot.h index 92f3d582b..c83281309 100644 --- a/Jusin154_Team3D/Editor/Public/Spell_Slot.h +++ b/Jusin154_Team3D/Editor/Public/Spell_Slot.h @@ -19,6 +19,10 @@ class CSpell_Slot final : public CElementObject virtual HRESULT Render() override; virtual _vector Get_WorldPostion() override; + virtual void SizeUpX(_float fSizeX) override; + virtual void SizeUpY(_float fSizeY) override; + virtual void SizeUpdate(_float fSizeX, _float fSizeY) override; + private: virtual HRESULT Bind_ShaderResources() override; @@ -29,7 +33,11 @@ class CSpell_Slot final : public CElementObject private: CTexture* m_pDiffuse_TextureCom = { nullptr }; CShader* m_pShaderCom = { nullptr }; - CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr }; + + _float m_fOffSetX{}; + _float m_fOffSetY{}; + _uint m_iCols{}; public: static CSpell_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); diff --git a/Jusin154_Team3D/Editor/Public/Spell_Slot_Preview.h b/Jusin154_Team3D/Editor/Public/Spell_Slot_Preview.h new file mode 100644 index 000000000..5fa48e200 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Spell_Slot_Preview.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CSpell_Slot_Preview final : public CElementObject +{ +private: + CSpell_Slot_Preview(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CSpell_Slot_Preview(const CSpell_Slot_Preview& rhs); + virtual ~CSpell_Slot_Preview() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_UI_Instance* m_pVIBufferCom = { nullptr }; + +public: + static CSpell_Slot_Preview* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Spell_UI.h b/Jusin154_Team3D/Editor/Public/Spell_UI.h new file mode 100644 index 000000000..f0f3d3e49 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Spell_UI.h @@ -0,0 +1,50 @@ +#pragma once + +#include "Editor_Define.h" +#include "ElementObject.h" + +NS_BEGIN(Editor) + +class CSpell_UI final : public CElementObject +{ +private: + CSpell_UI(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CSpell_UI(const CSpell_UI& rhs); + virtual ~CSpell_UI() = default; + +public: + virtual void Priority_Update(_float fTimeDelta); + virtual void Update(_float fTimeDelta); + virtual void Late_Update(_float fTimeDelta); + virtual HRESULT Render() override; + virtual _vector Get_WorldPostion() override; + + +private: + virtual HRESULT Bind_ShaderResources() override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + +private: + _float4 Alphabet_UV(_tchar Alphabet); + _float4 Image_UV(_uint Index); + void Set_ImagePos(); +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pDiffuse_TextureCom1 = { nullptr }; + CTexture* m_pDiffuse_TextureCom2 = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Rect* m_pVIBufferCom = { nullptr }; + + _float2 m_vUV[4]; + _float4 m_vImageUV[4]; + +public: + static CSpell_UI* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_Cast.h b/Jusin154_Team3D/Editor/Public/State_Cast.h deleted file mode 100644 index 6a64c3881..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Cast.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - -class CState_Cast final : public CState -{ -public: - CState_Cast(); - virtual ~CState_Cast() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Combat.h b/Jusin154_Team3D/Editor/Public/State_Combat.h index 7fe636c65..858dc260a 100644 --- a/Jusin154_Team3D/Editor/Public/State_Combat.h +++ b/Jusin154_Team3D/Editor/Public/State_Combat.h @@ -1,19 +1,36 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Combat final : public CState +NS_BEGIN(Editor) + +class CState_Combat final : public CState_Root { public: + typedef struct tagCombat : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_COMBAT_DESC; +private: CState_Combat(); virtual ~CState_Combat() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_COMBAT_DESC* pDesc); + public: + static CState_Combat* Create(STATE_COMBAT_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_Dodge.h b/Jusin154_Team3D/Editor/Public/State_Dodge.h index 788056b67..ea28f476a 100644 --- a/Jusin154_Team3D/Editor/Public/State_Dodge.h +++ b/Jusin154_Team3D/Editor/Public/State_Dodge.h @@ -1,19 +1,32 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Dodge final : public CState +class CState_Dodge final : public CState_Root { +public: + typedef struct tagDodge : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_DODGE_DESC; public: CState_Dodge(); virtual ~CState_Dodge() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_DODGE_DESC* pDesc); + public: + static CState_Dodge* Create(STATE_DODGE_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; diff --git a/Jusin154_Team3D/Editor/Public/State_Idle.h b/Jusin154_Team3D/Editor/Public/State_Idle.h index 898162432..ef50909a4 100644 --- a/Jusin154_Team3D/Editor/Public/State_Idle.h +++ b/Jusin154_Team3D/Editor/Public/State_Idle.h @@ -1,20 +1,32 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Idle final : public CState +class CState_Idle final : public CState_Root { +public: + typedef struct tagIdle : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_IDLE_DESC; public: CState_Idle(); virtual ~CState_Idle() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_IDLE_DESC* pDesc); public: + static CState_Idle* Create(STATE_IDLE_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; diff --git a/Jusin154_Team3D/Editor/Public/State_Idle_Turn.h b/Jusin154_Team3D/Editor/Public/State_Idle_Turn.h deleted file mode 100644 index c39f90ee8..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Idle_Turn.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - -class CState_Idle_Turn final : public CState -{ -public: - CState_Idle_Turn(); - virtual ~CState_Idle_Turn() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); - -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; - diff --git a/Jusin154_Team3D/Editor/Public/State_Jog.h b/Jusin154_Team3D/Editor/Public/State_Jog.h deleted file mode 100644 index 5fa7c5008..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Jog.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - - -class CState_Jog final : public CState -{ -public: - CState_Jog(); - virtual ~CState_Jog() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); - -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Jump.h b/Jusin154_Team3D/Editor/Public/State_Jump.h index 1433dc4aa..02d35b154 100644 --- a/Jusin154_Team3D/Editor/Public/State_Jump.h +++ b/Jusin154_Team3D/Editor/Public/State_Jump.h @@ -1,20 +1,31 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Jump final : public CState +NS_BEGIN(Editor) + +class CState_Jump final : public CState_Root { public: + typedef struct tagJump : public CState_Root::STATE_ROOT_DESC { + + }STATE_JUMP_DESC; +private: CState_Jump(); virtual ~CState_Jump() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + HRESULT Initialize(STATE_JUMP_DESC* pDesc); public: + static CState_Jump* Create(STATE_JUMP_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_Land.h b/Jusin154_Team3D/Editor/Public/State_Land.h index 6cc48272b..6ebd50f2b 100644 --- a/Jusin154_Team3D/Editor/Public/State_Land.h +++ b/Jusin154_Team3D/Editor/Public/State_Land.h @@ -1,20 +1,31 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Land final : public CState +NS_BEGIN(Editor) + +class CState_Land final : public CState_Root { public: + typedef struct tagLand : public CState_Root::STATE_ROOT_DESC { + + }STATE_LAND_DESC; +private: CState_Land(); virtual ~CState_Land() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + HRESULT Initialize(STATE_LAND_DESC* pDesc); public: + static CState_Land* Create(STATE_LAND_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_LightAttack.h b/Jusin154_Team3D/Editor/Public/State_LightAttack.h deleted file mode 100644 index b048d0feb..000000000 --- a/Jusin154_Team3D/Editor/Public/State_LightAttack.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - -class CState_LightAttack final : public CState -{ -public: - CState_LightAttack(); - virtual ~CState_LightAttack() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Move.h b/Jusin154_Team3D/Editor/Public/State_Move.h index 18ef685af..87e0472fb 100644 --- a/Jusin154_Team3D/Editor/Public/State_Move.h +++ b/Jusin154_Team3D/Editor/Public/State_Move.h @@ -1,19 +1,36 @@ #pragma once #include "Editor_Define.h" -#include "State.h" +#include "State_Root.h" -class CState_Move final : public CState +NS_BEGIN(Editor) + +class CState_Move final : public CState_Root { public: + typedef struct tagMove : public CState_Root::STATE_ROOT_DESC { + function funcPriorityUpdate = { nullptr }; + function funcLateUpdate = { nullptr }; + }STATE_MOVE_DESC; +private: CState_Move(); virtual ~CState_Move() = default; public: virtual void Enter(); - virtual void Update(_float fTimeDelta); + virtual HRESULT Update(_float fTimeDelta); virtual void Exit(); - virtual _bool CheckExitState(); + +private: + function m_funcPriorityUpdate = { nullptr }; + function m_funcLateUpdate = { nullptr }; + +private: + HRESULT Initialize(STATE_MOVE_DESC* pDesc); + public: + static CState_Move* Create(STATE_MOVE_DESC* pDesc); virtual void Free() override; virtual void Describe_Entity(); }; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_Root.h b/Jusin154_Team3D/Editor/Public/State_Root.h new file mode 100644 index 000000000..0c36d0db2 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/State_Root.h @@ -0,0 +1,38 @@ +#pragma once +#include "Editor_Define.h" +#include "State.h" + +NS_BEGIN(Editor) + +class CState_Root abstract : public CState +{ +protected: + typedef struct tagStateRoot : public CState::STATEDESC { + function funcExitCheck = { nullptr }; + function funcEnterEvent = { nullptr }; + function funcExitEvent = { nullptr }; + }STATE_ROOT_DESC; + +protected: + CState_Root(); + virtual ~CState_Root() = default; + +protected: + virtual void Enter() override; + virtual HRESULT Update(_float fTimeDelta) override; + virtual void Exit() override; + +protected: + function m_funcExitCheck = { nullptr }; + function m_funcEnterEvent = { nullptr }; + function m_funcExitEvent = { nullptr }; + +protected: + HRESULT Initialize(STATE_ROOT_DESC* pArg); + +protected: + virtual void Free() override; + virtual void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/State_Skill.h b/Jusin154_Team3D/Editor/Public/State_Skill.h deleted file mode 100644 index 5866e87bb..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Skill.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - -class CState_Skill final : public CState -{ -public: - CState_Skill(); - virtual ~CState_Skill() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Skill2.h b/Jusin154_Team3D/Editor/Public/State_Skill2.h deleted file mode 100644 index 652630d4b..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Skill2.h +++ /dev/null @@ -1,19 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - -class CState_Skill2 final : public CState -{ -public: - CState_Skill2(); - virtual ~CState_Skill2() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Sprint.h b/Jusin154_Team3D/Editor/Public/State_Sprint.h deleted file mode 100644 index ae31033f4..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Sprint.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - - -class CState_Sprint final : public CState -{ -public: - CState_Sprint(); - virtual ~CState_Sprint() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); - -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/State_Walk.h b/Jusin154_Team3D/Editor/Public/State_Walk.h deleted file mode 100644 index 71ac52832..000000000 --- a/Jusin154_Team3D/Editor/Public/State_Walk.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once -#include "Editor_Define.h" -#include "State.h" - - -class CState_Walk final : public CState -{ -public: - CState_Walk(); - virtual ~CState_Walk() = default; - -public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); - -public: - virtual void Free() override; - virtual void Describe_Entity(); -}; diff --git a/Jusin154_Team3D/Editor/Public/Terrain.h b/Jusin154_Team3D/Editor/Public/Terrain.h index 7ece54b48..b1ca26178 100644 --- a/Jusin154_Team3D/Editor/Public/Terrain.h +++ b/Jusin154_Team3D/Editor/Public/Terrain.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Editor_Define.h" #include "GameObject.h" @@ -27,15 +27,34 @@ class CTerrain final : public CGameObject virtual HRESULT Render() override; private: - CShader* m_pShaderCom = { nullptr }; - CVIBuffer_Terrain* m_pVIBufferCom = { nullptr }; - CTexture* m_pTextureCom = { nullptr }; + CShader* m_pShaderCom = { nullptr }; + CVIBuffer_Terrain* m_pVIBufferCom = { nullptr }; + CTexture* m_pDiffuseTextureCom = { nullptr }; + CTexture* m_pNormalTextureCom = { nullptr }; + CTexture* m_pMROTextureCom = { nullptr }; + CTexture* m_pMaskTextureCom = { nullptr }; + _float m_fUsingSurfaceParams = {}; + _float m_fHeightRatio = {1.f}; _float3 m_vPickingPosition = {}; + _float3 m_vRotation = {}; + _float m_fCullingRadius = { 0.2f }; + + _uint m_iTextureIndex = {}; + + + class CAlphaMap* m_pAlphaMap = { nullptr }; + _uint m_iMaskRange = {1}; + _int m_iColorIndex = {0}; + _float m_fMaskValue = {0.1f}; + + _float m_fUpValue = { 0.01f }; + _bool m_bWasWireFrame = { false }; private: HRESULT Ready_Components(); HRESULT Bind_ShaderResources(); + HRESULT Ready_AlphaMap(); public: static CTerrain* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -44,4 +63,4 @@ class CTerrain final : public CGameObject virtual void Describe_Entity() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Editor/Public/TrailObject.h b/Jusin154_Team3D/Editor/Public/TrailObject.h new file mode 100644 index 000000000..70d17832d --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/TrailObject.h @@ -0,0 +1,116 @@ +#pragma once + +#include "Editor_Define.h" +#include "EffectObject.h" + +NS_BEGIN(Engine) +class CShader; +class CTexture; +class CTrail; +class CTransform; +NS_END + +NS_BEGIN(Editor) + +class CTrailObject final : public CPartObject +{ +public: + typedef struct tagTrailInfo + { + EFFECT_TYPE eEffectType = { EFFECT_TYPE::TRAIL }; + /* 디퓨즈 */ + _bool isDiffuse = {}; + _float fDiffuseAlpha = { 1.f }; + _float4 vColor = { 0.f ,0.f ,0.f ,1.f }; + + /* 마스크 */ + _bool isMask = {}; + _float fSoftMaskEdge = {}; + _float fSoftMask = {}; + + /* 노이즈 */ + _bool isNoise = {}; + _bool isNoiseColor = { false }; + _bool isNoiseAlpha = { false }; + _float fNoiseStrength = {}; + + /* 디스 토션 */ + _bool isDistortion = {}; + _float2 vDistortionTime = {}; + _float2 vDiffuseDistortioUVAmount = {}; + _float2 vMaskDistortionUVAmount = {}; + _float fDistortionIntensity = {}; + + /* 이미시브 */ + _float4 vEmissive = { 0.f ,0.f ,0.f ,0.f }; + + _float fEmissiveStrength = { 0.f }; + _float fSoftenExp = { 1.31429f }; + _float fSoftStrength = {}; + _float fCoreBoost = {}; + _float fRadius = {}; + + + /* 블러 */ + _bool isBlur = {}; + _bool isOnlyBlur = { false }; + _float fBlurIntensity = {}; + _int iBlurWeight = {}; + + }TRAIL_INFO; +private: + CTrailObject(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CTrailObject(const CTrailObject& rhs); + virtual ~CTrailObject() = default; + +public: + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + +public: + void Set_Target(class CTransform* pTargetTransform); + void Trail_Update(_fmatrix WorldMat, _float fTimeDelta); +public: +#ifdef _DEBUG + HRESULT Save_Trail(const _char* pPath); +#endif + HRESULT Load_Trail(const _char* pPath, LEVEL eLevel); +private: + HRESULT Bind_ShaderResources() override; + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Ready_Components(void* pArg) override; + virtual HRESULT Render() override; + virtual HRESULT Render_Blur() override; + + +public: + static CTrailObject* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override; + virtual void Free() override; + void Describe_Entity() override; + +private: + CTexture* m_pDiffuse_TextureCom = { nullptr }; + CTexture* m_pNoise_TextureCom = { nullptr }; + CTexture* m_pMasking_TextureCom = { nullptr }; + CTexture* m_pDistortion_TextureCom = { nullptr }; + + CShader* m_pShaderCom = { nullptr }; + CTrail* m_pTrailCom = { nullptr }; + + _string m_strTrailDiffuseName = {}; + _string m_strTrailNoiseName = {}; + _string m_strTrailMaskingName = {}; + _string m_strTrailDistortionName = {}; + + _string m_strPath = {}; + _string m_strName = {}; + + TRAIL_INFO m_TrailInfo = {}; + _float4x4* m_pParantsMatrix = {}; + +}; + +NS_END diff --git a/Jusin154_Team3D/Editor/Public/Wand.h b/Jusin154_Team3D/Editor/Public/Wand.h new file mode 100644 index 000000000..7b2859dd3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Wand.h @@ -0,0 +1,54 @@ +#pragma once + +#include "Editor_Define.h" +#include "PartObject.h" + +NS_BEGIN(Engine) +class CShader; +class CModel; +NS_END + +NS_BEGIN(Editor) + +class CWand final : public CPartObject +{ +public: + typedef struct tagWand : public CPartObject::PARTOBJECT_DESC + { + const _float4x4* pSocketMatrices = { }; + }WAND_DESC; +private: + CWand(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CWand(const CWand& Prototype); + virtual ~CWand() = default; + +public: + virtual HRESULT Initialize_Prototype() override; + virtual HRESULT Initialize(void* pArg) override; + virtual void Priority_Update(_float fTimeDelta) override; + virtual void Update(_float fTimeDelta) override; + virtual void Late_Update(_float fTimeDelta) override; + virtual HRESULT Render() override; + +private: + const _float4x4* m_pSocketMatrices = { }; + CShader* m_pShaderCom = { nullptr }; + CModel* m_pModelCom = { nullptr }; + + class CTrailObject* m_pTrail = { nullptr }; + class CEditEffect* m_pEffectParts = { nullptr }; + + _float3 m_vOffset = { 0.f , -0.3f ,0.f}; + +private: + HRESULT Ready_Components(); + HRESULT Bind_ShaderResources(); + +public: + static CWand* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override; + virtual void Free() override; + virtual void Describe_Entity() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli new file mode 100644 index 000000000..372ecfae5 --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Constants.hlsli @@ -0,0 +1,47 @@ +#ifndef ENGINE_SHADER_CONSTANTS_HLSLI +#define ENGINE_SHADER_CONSTANTS_HLSLI + +static const vector g_vMtrlDiffuse = 1.f; +static const vector g_vMtrlAmbient = 1.f; +static const vector g_vMtrlSpecular = 1.f; + +static const float PI = 3.14159265359; +static const float PI2 = 6.28318530718; + +static const float FLT_EPSILON7 = 1.192092896e-07; +static const float FLT_EPSILON5 = 1.192092896e-05; +static const float FLT_EPSILON3 = 1.192092896e-03; + + +static const float AI_TEXTURE_TYPE_NONE = 0.f / 27.f; +static const float AI_TEXTURE_TYPE_DIFFUSE = 1.f / 27.f; +static const float AI_TEXTURE_TYPE_SPECULAR = 2.f / 27.f; +static const float AI_TEXTURE_TYPE_AMBIENT = 3.f / 27.f; +static const float AI_TEXTURE_TYPE_EMISSIVE = 4.f / 27.f; +static const float AI_TEXTURE_TYPE_HEIGHT = 5.f / 27.f; +static const float AI_TEXTURE_TYPE_NORMALS = 6.f / 27.f; +static const float AI_TEXTURE_TYPE_SHININESS = 7.f / 27.f; +static const float AI_TEXTURE_TYPE_OPACITY = 8.f / 27.f; +static const float AI_TEXTURE_TYPE_DISPLACEMENT = 9.f / 27.f; +static const float AI_TEXTURE_TYPE_LIGHTMAP = 10.f / 27.f; +static const float AI_TEXTURE_TYPE_REFLECTION = 11.f / 27.f; +static const float AI_TEXTURE_TYPE_BASE_COLOR = 12.f / 27.f; +static const float AI_TEXTURE_TYPE_NORMAL_CAMERA = 13.f / 27.f; +static const float AI_TEXTURE_TYPE_EMISSION_COLOR = 14.f / 27.f; +static const float AI_TEXTURE_TYPE_METALNESS = 15.f / 27.f; +static const float AI_TEXTURE_TYPE_DIFFUSE_ROUGHNESS = 16.f / 27.f; +static const float AI_TEXTURE_TYPE_AMBIENT_OCCLUSION = 17.f / 27.f; +static const float AI_TEXTURE_TYPE_UNKNOWN = 18.f / 27.f; +static const float AI_TEXTURE_TYPE_SHEEN = 19.f / 27.f; +static const float AI_TEXTURE_TYPE_CLEARCOAT = 20.f / 27.f; +static const float AI_TEXTURE_TYPE_TRANSMISSION = 21.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_BASE = 22.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR = 23.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_COLOR = 24.f / 27.f; +static const float AI_TEXTURE_TYPE_MAYA_SPECULAR_ROUGHNESS = 25.f / 27.f; +static const float AI_TEXTURE_TYPE_ANISOTROPY = 26.f / 27.f; +static const float AI_TEXTURE_TYPE_GLTF_METALLIC_ROUGHNESS = 27.f / 27.f; + + + +#endif // ENGINE_SHADER_CONSTANTS_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli index 3ddc2f1e7..3ce9b7364 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli @@ -1,258 +1,12 @@ +#ifndef ENGINE_SHADER_DEFINES_HLSLI +#define ENGINE_SHADER_DEFINES_HLSLI -vector g_vMtrlDiffuse = 1.f; -vector g_vMtrlAmbient = 1.f; -vector g_vMtrlSpecular = 1.f; - -float PI = 3.14592; - -sampler DefaultSampler = sampler_state -{ - Filter = MIN_MAG_MIP_LINEAR; - AddressU = wrap; - AddressV = wrap; -}; - -sampler ClampSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = clamp; - AddressV = clamp; -}; - -sampler MirrorSampler = sampler_state -{ - Filter = MIN_MAG_MIP_LINEAR; - AddressU = mirror; - AddressV = mirror; -}; - -sampler BorderZeroSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = Border; - AddressV = Border; - BorderColor = float4(0, 0, 0, 0); -}; - -sampler PointSampler = sampler_state -{ - Filter = MIN_MAG_MIP_POINT; - AddressU = wrap; - AddressV = wrap; -}; - -RasterizerState RS_Default -{ - FillMode = Solid; - CullMode = Back; -}; - -RasterizerState RS_Nocull -{ - FillMode = Solid; - CullMode = None; - FrontCounterClockwise = false; - DepthClipEnable = false; -}; - -RasterizerState RS_Nocull_Wireframe -{ - FillMode = Wireframe; - CullMode = None; - FrontCounterClockwise = false; - DepthBias = 0; - SlopeScaledDepthBias = 0.f; - DepthBiasClamp = 0.f; - DepthClipEnable = false; - ScissorEnable = false; - MultisampleEnable = false; - AntialiasedLineEnable = false; -}; - -RasterizerState RS_Scissor -{ - FillMode = Solid; - CullMode = Back; - FrontCounterClockwise = false; - ScissorEnable = true; -}; - -DepthStencilState DSS_Default -{ - DepthEnable = true; - DepthWriteMask = all; - DepthFunc = less_equal; -}; - -DepthStencilState DSS_None -{ - DepthEnable = false; - DepthWriteMask = zero; -}; - -DepthStencilState DSS_Effect -{ - DepthEnable = true; - DepthWriteMask = zero; - DepthFunc = less_equal; - StencilEnable = false; -}; - -BlendState BS_None -{ - BlendEnable[0] = false; -}; - -BlendState BS_AlphaBlend // ALPHA_BLEND -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - // Ac * Aa + Bc * (1 - Aa); - SrcBlend = Src_Alpha; - DestBlend = Inv_Src_Alpha; - BlendOp = Add; -}; - -BlendState BS_Blend // ADDITIVE_BLEND -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - // Ac * (1) + Bc * (1); - SrcBlend = one; - DestBlend = one; - BlendOp = Add; -}; - -BlendState BS_UIBlend -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - SrcBlend = Src_Alpha; - DestBlend = Inv_Src_Alpha; - BlendOp = Add; - - SrcBlendAlpha = One; - DestBlendAlpha = Zero; - BlendOpAlpha = Add; - - RenderTargetWriteMask[0] = 0x0F; // RGBA 모두 출력 -}; - -BlendState BS_WB_Acc -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - SrcBlend[0] = one; - DestBlend[0] = one; - BlendOp[0] = Add; - - SrcBlend[1] = Zero; - DestBlend[1] = Inv_Src_Alpha; - BlendOp[1] = Add; +#include "Engine_Shader_Constants.hlsli" +#include "Engine_Shader_Structures.hlsli" +#include "Engine_Shader_Samplers.hlsli" +#include "Engine_Shader_States.hlsli" +#include "Engine_Shader_Functions.hlsli" - SrcBlend[2] = one; - DestBlend[2] = one; - BlendOp[2] = Add; -}; +#endif // ENGINE_SHADER_DEFINES_HLSLI -BlendState BS_WeightBlend -{ - BlendEnable[0] = true; - BlendEnable[1] = true; - BlendEnable[2] = true; - BlendEnable[3] = true; - BlendEnable[4] = true; - BlendEnable[5] = true; - BlendEnable[6] = true; - BlendEnable[7] = true; - - - SrcBlend[0] = Src_Alpha; - DestBlend[0] = Inv_Src_Alpha; - - BlendOp[0] = Add; - - - -}; - -float ShadowVisibility_hwPCF(Texture2D ShadowMap, float4 vLightClip, float2 vShadowMapSize, float bias) -{ - float2 uv = float2(vLightClip.x / vLightClip.w, -vLightClip.y / vLightClip.w) * 0.5f + 0.5f; - float fDepthCenter = saturate(vLightClip.z / vLightClip.w); - float2 vTexel = 1.f / vShadowMapSize; - - float fVisibility = 0.f; - for (int v = -1; v <= 1; ++v) - { - for (int u = -1; u <= 1; ++u) - { - float2 vOffset = float2(u, v) * vTexel; - float fDepth = ShadowMap.Sample(DefaultSampler, uv + vOffset).x; - fVisibility += (fDepthCenter - bias > fDepth) ? 0.f : 1.f; - } - } - return fVisibility / 9.f; -} - -float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float fRimPower, float fRimStrength) -{ - float fRimLight = (1 - dot(normalize(vCamPosition - vPosition), vNormal)); - fRimLight = pow(fRimLight, fRimPower); - fRimLight = fRimLight * fRimStrength; - return fRimLight; -} - -float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV) -{ - float2 vDelta = float2(fDeltaU, fDeltaV); - float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV); - return vOriginalUV * vDelta + vOffset; -} - -float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame) -{ - float2 UV = vUV; // 이미지의 UV값 - - int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지) - - int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지) - int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지) - - float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다. - float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다. - - UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다. - UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다. - - return UV; -} diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli new file mode 100644 index 000000000..7037ecd28 --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli @@ -0,0 +1,321 @@ +#ifndef ENGINE_SHADER_FUNCTIONS_HLSLI +#define ENGINE_SHADER_FUNCTIONS_HLSLI + +#include "Engine_Shader_Constants.hlsli" +#include "Engine_Shader_Structures.hlsli" +#include "Engine_Shader_Samplers.hlsli" + +bool AlmostEqual7(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON7; +} +bool AlmostEqual5(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON5; +} +bool AlmostEqual3(float fA, float fB) +{ + return abs(fA - fB) < FLT_EPSILON3; +} + +float ShadowVisibility_hwPCF(Texture2D ShadowMap, float4 vLightClip, float2 vShadowMapSize, float bias) +{ + float2 uv = float2(vLightClip.x / vLightClip.w, -vLightClip.y / vLightClip.w) * 0.5f + 0.5f; + float fDepthCenter = saturate(vLightClip.z / vLightClip.w); + float2 vTexel = 1.f / vShadowMapSize; + + float fVisibility = 0.f; + for (int v = -1; v <= 1; ++v) + { + for (int u = -1; u <= 1; ++u) + { + float2 vOffset = float2(u, v) * vTexel; + float fDepth = ShadowMap.Sample(DefaultSampler, uv + vOffset).x; + fVisibility += (fDepthCenter - bias > fDepth) ? 0.f : 1.f; + } + } + return fVisibility / 9.f; +} + +float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float fRimPower, float fRimStrength) +{ + float fRimLight = (1 - dot(normalize(vCamPosition - vPosition), vNormal)); + fRimLight = pow(fRimLight, fRimPower); + fRimLight = fRimLight * fRimStrength; + return fRimLight; +} + +float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV) +{ + float2 vDelta = float2(fDeltaU, fDeltaV); + float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV); + return vOriginalUV * vDelta + vOffset; +} + +float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame) +{ + float2 UV = vUV; // 이미지의 UV값 + + int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지) + + int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지) + int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지) + + float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다. + float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다. + + UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다. + UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다. + + return UV; +} + +// (Kd F(Lambert)) + (Ks F(cook-torrance)) + +//float LambertDiffuse(float c) +//{ +// return c / PI; +//} + +// F(cook-torrance) +// DFG / (4 (Wo dot N) (Wi dot N)) + +// D(distribution, NormalDistribution function), 표면의 거칠기에 영향을 받는 halfWay vector +// G(Geometry, GeometryFunc), 에너지 보존법칙 적용 +// F(Fresnel-Fresnel equation), 표면 각도에 따른 반사율 + +// F->D +float NDF_ggxtr(float3 vNormal, float3 vHalfWayVector, float fAlpha) // NormalDistributionGGXTR, (H, halfWay vector), (A, Roughness), (N, Normal) +{ + float a2 = fAlpha * fAlpha; + float NdotH = saturate(dot(vNormal, vHalfWayVector)); + float NdotH2 = NdotH * NdotH; + + float nom = a2; + float denom = (NdotH2 * (a2 - 1.f) + 1.f); + + denom = PI * denom * denom; + return (nom / denom); +} + +// F->G +// GschlickGGX(n, v, k) +// k는 이하 두개 조명 조건에 따라 가변적임 +// Direct // Kdir -> ((a + 1) * (a + 1)) / 8 // direct lighting 추천 +// IBL Lighting // Kibl -> a * a / 2 // 이미지 기반 조명기법 + +float Geometry_SchlickGGX(float NdotV, float fK) +{ + return NdotV / (NdotV * (1.0f - fK) + fK); +} + +float Geometry_Smith(float3 vNormal, float3 vFromView, float3 vFromLight, float k) +{ + // Geometry Obstruction + // 철이 있는, 주로 튀어나온 장애물 + float NdotV = saturate(dot(vNormal, vFromView)); + + // Geometry Shadowing + // 요가 있는, 주로 음푹 들어간 장애물 (그래서 셰도잉) + float NdotL = saturate(dot(vNormal, vFromLight)); + + // 요철이 골고루 있다고 가정하고 적당히 섞음 + return Geometry_SchlickGGX(NdotV, k) * Geometry_SchlickGGX(NdotL, k); +} + +// F -> F +float3 Fresnel_Schlick(float cosTheta, float3 F0) +{ + // 모서리 부분의 반사 + return F0 + (1.0f - F0) * pow(1.0f - cosTheta, 5.0f); +} + +PBR_LIGHT_OUT PBR_Lighting( + float3 vNormal, float3 vToView, float3 vToLight, + float3 vAlbedo, float fMetallic, float fRoughness, + float3 vLightColor, float fAttenuation, float3 vFO +) { + PBR_LIGHT_OUT Out; + Out.vShade = 0; + Out.vSpecular = 0; + + float3 vHalfVector = normalize(vToView + vToLight); + float NdotL = saturate(dot(vNormal, vToLight)); + float NdotV = saturate(dot(vNormal, vToView)); + if (NdotL <= 0 || NdotV <= 0) + { + return Out; + } + + float fAlpha = max(fRoughness * fRoughness, 0.04f); + float k = ((fRoughness + 1.f) * (fRoughness + 1.f)) / 8.f; + + float D = NDF_ggxtr(vNormal, vHalfVector, fAlpha); + float G = Geometry_Smith(vNormal, vToView, vToLight, k); + float3 F = Fresnel_Schlick(saturate(dot(vHalfVector, vToView)), vFO); + + float3 vNumerator = D * G * F; + float fDenominator = max(4.f * NdotL * NdotV, 1e-7); + float3 specularBRDF = vNumerator / fDenominator; + + float3 kS = F; + float3 kD = (1.f - kS) * (1.f -fMetallic); + + //Out.vShade = float(1.f, 1.f, 1. 1.f); + Out.vShade = (kD / PI) * (NdotL * fAttenuation) * vLightColor; + + Out.vSpecular = specularBRDF * vLightColor * fAttenuation * NdotL; + + return Out; +} +float GetBloomCurve(float x) +{ + float fResult = x; + float fThreshold = 0.68f * 2.f; + x *= 2.f; + + fResult = x * 0.05f // 최소 기본값 보장 + + max(0, x - fThreshold) // 밝기값 68 이하는 기본값으로하고 초과하면 그 값만큼 더해줌 + * 0.5f; // 0~2로 정규화 되어있기 때문에 강조 값 보정해줌 + + return fResult * 0.5f; +} + +// RG 노말맵에서 Z 벡터 복원 +float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv) +{ + float2 vSampledRG = (NormalMap.Sample(Samp, uv).rg * 2.f - 1.f); + + float z2 = 1.0f - saturate(dot(vSampledRG, vSampledRG)); + float z = sqrt(max(z2, 0.0f)); + + float3 n = float3(vSampledRG, z); + + return normalize(n); +} + +float4x4 RotateX(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateXMat = + { + 1, 0, 0, 0, + 0, fCos, -fSin, 0, + 0, fSin, fCos, 0, + 0, 0, 0, 1, + }; + + return RotateXMat; +} + +float4x4 RotateY(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateYMat = + { + fCos , 0, fSin, 0, + 0 , 1, 0, 0, + -fSin , 0, fCos, 0, + 0 , 0, 0, 1 + }; + + return RotateYMat; +} + +float4x4 RotateZ(float fAngle) +{ + float fCos = cos(radians(fAngle)); + float fSin = sin(radians(fAngle)); + + float4x4 RotateZMat = + { + fCos, -fSin, 0, 0, + fSin, fCos, 0, 0, + 0, 0, 1, 0, + 0, 0, 0, 1, + }; + + 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; + +} + +float2 SelectLerpUV(float2 fAmount, float _fRatio, int iSelectOption) +{ + if (iSelectOption < 0) + return float2(0, 0); + + float fRatio = _fRatio; + switch (iSelectOption) + { + case 0: + fRatio = fRatio; // Linear + break; + case 1: + fRatio = fRatio * fRatio; // EaseInQuad 후반에 속도 증가 + break; + case 2: + fRatio = 1 - (1 - fRatio * fRatio); // EaseOutQuad 초반에 속도 증가 + break; + case 3: + fRatio = fRatio * fRatio * fRatio; // EaseInCubic 더 강하게 후반 속도 증가 + break; + case 4: + fRatio = 1 - (1 - fRatio * fRatio * fRatio); // EaseOutCubic 더 강하게 초반 속도 증가 + break; + case 5: + fRatio = 0.5f * (1 - cos(PI * fRatio)); // EaseInOutSin 사인 곡선 + break; + case 6: + fRatio = sin(13 * PI * fRatio) * (1 - fRatio) * (1 - fRatio); // EaseInBack 뒤로갔다가 앞으로 + break; + case 7: + fRatio = pow(2, 10 * (fRatio - 1)); // Expo 지수 함수 + break; + case 8: + fRatio = 1 - pow(1 - fRatio * fRatio, 0.5); // 원형 궤적 + break; + } + + return fAmount * fRatio; + +} + +#endif // ENGINE_SHADER_FUNCTIONS_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli new file mode 100644 index 000000000..7b7ec1a3b --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Samplers.hlsli @@ -0,0 +1,40 @@ +#ifndef ENGINE_SHADER_SAMPLERS_HLSLI +#define ENGINE_SHADER_SAMPLERS_HLSLI + +sampler DefaultSampler = sampler_state +{ + Filter = MIN_MAG_MIP_LINEAR; + AddressU = wrap; + AddressV = wrap; +}; + +sampler ClampSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = clamp; + AddressV = clamp; +}; + +sampler MirrorSampler = sampler_state +{ + Filter = MIN_MAG_MIP_LINEAR; + AddressU = mirror; + AddressV = mirror; +}; + +sampler BorderZeroSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = Border; + AddressV = Border; + BorderColor = float4(0, 0, 0, 0); +}; + +sampler PointSampler = sampler_state +{ + Filter = MIN_MAG_MIP_POINT; + AddressU = wrap; + AddressV = wrap; +}; + +#endif // ENGINE_SHADER_SAMPLERS_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli new file mode 100644 index 000000000..3b37f3b2c --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_States.hlsli @@ -0,0 +1,168 @@ +#ifndef ENGINE_SHADER_STATES_HLSLI +#define ENGINE_SHADER_STATES_HLSLI + +RasterizerState RS_Default +{ + FillMode = Solid; + CullMode = Back; +}; + +RasterizerState RS_Nocull +{ + FillMode = Solid; + CullMode = None; + FrontCounterClockwise = false; + DepthClipEnable = false; +}; + +RasterizerState RS_Nocull_Wireframe +{ + FillMode = Wireframe; + CullMode = None; + FrontCounterClockwise = false; + DepthBias = 0; + SlopeScaledDepthBias = 0.f; + DepthBiasClamp = 0.f; + DepthClipEnable = false; + ScissorEnable = false; + MultisampleEnable = false; + AntialiasedLineEnable = false; +}; + +RasterizerState RS_Scissor +{ + FillMode = Solid; + CullMode = Back; + FrontCounterClockwise = false; + ScissorEnable = true; +}; + +DepthStencilState DSS_Default +{ + DepthEnable = true; + DepthWriteMask = all; + DepthFunc = less_equal; +}; + +DepthStencilState DSS_None +{ + DepthEnable = false; + DepthWriteMask = zero; +}; + +DepthStencilState DSS_Effect +{ + DepthEnable = true; + DepthWriteMask = zero; + DepthFunc = less_equal; + StencilEnable = false; +}; + +BlendState BS_None +{ + BlendEnable[0] = false; +}; + +BlendState BS_AlphaBlend // ALPHA_BLEND +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + // Ac * Aa + Bc * (1 - Aa); + SrcBlend = Src_Alpha; + DestBlend = Inv_Src_Alpha; + BlendOp = Add; +}; + +BlendState BS_Blend // ADDITIVE_BLEND +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + // Ac * (1) + Bc * (1); + SrcBlend = one; + DestBlend = one; + BlendOp = Add; +}; + +BlendState BS_UIBlend +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + SrcBlend = Src_Alpha; + DestBlend = Inv_Src_Alpha; + BlendOp = Add; + + SrcBlendAlpha = One; + DestBlendAlpha = Zero; + BlendOpAlpha = Add; + + RenderTargetWriteMask[0] = 0x0F; // RGBA 모두 출력 +}; + +BlendState BS_WB_Acc +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + SrcBlend[0] = one; + DestBlend[0] = one; + BlendOp[0] = Add; + + SrcBlend[1] = Inv_Src_Alpha; + DestBlend[1] = zero; + BlendOp[1] = Add; + + + SrcBlend[2] = one; + DestBlend[2] = one; + BlendOp[2] = Add; +}; + +BlendState BS_WeightBlend +{ + BlendEnable[0] = true; + BlendEnable[1] = true; + BlendEnable[2] = true; + BlendEnable[3] = true; + BlendEnable[4] = true; + BlendEnable[5] = true; + BlendEnable[6] = true; + BlendEnable[7] = true; + + + SrcBlend[0] = Src_Alpha; + DestBlend[0] = Inv_Src_Alpha; + + BlendOp[0] = Add; + + + +}; + +#endif // ENGINE_SHADER_STATES_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli new file mode 100644 index 000000000..7dcb70724 --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Structures.hlsli @@ -0,0 +1,10 @@ +#ifndef ENGINE_SHADER_STRUCTURES_HLSLI +#define ENGINE_SHADER_STRUCTURES_HLSLI + +struct PBR_LIGHT_OUT +{ + float3 vShade; + float3 vSpecular; +}; + +#endif // ENGINE_SHADER_STRUCTURES_HLSLI diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index 38eea62d7..eef8ea86c 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -33,16 +33,17 @@ Texture2D g_ShadowTexture; Texture2D g_PreShadowTexture; Texture2D g_BlurTexture; Texture2D g_BlurXTexture; -Texture2D g_BlurWeightTexture; +Texture2D g_BlurWeightTexture; +Texture2D g_BlurWeightXTexture; + +Texture2D g_SurfaceTexture; vector g_vLightDiffuse; vector g_vLightAmbient; vector g_vLightSpecular; - - struct VS_IN { float3 vPosition : POSITION; @@ -56,9 +57,9 @@ struct VS_OUT }; VS_OUT VS_MAIN(VS_IN In) { - VS_OUT Out; + VS_OUT Out; - matrix matWV, matWVP; + matrix matWV, matWVP; matWV = mul(g_WorldMatrix, g_ViewMatrix); matWVP = mul(matWV, g_ProjMatrix); @@ -66,7 +67,18 @@ VS_OUT VS_MAIN(VS_IN In) Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); Out.vTexcoord = In.vTexcoord; - return Out; + return Out; +} +VS_OUT VS_CAPTURE(VS_IN In) +{ + VS_OUT Out; + + float2 vClipPos = In.vPosition.xy * 2.0f; // → -1.0 ~ +1.0 + + Out.vPosition = float4(vClipPos, 0.0f, 1.0f); + Out.vTexcoord = In.vTexcoord; + + return Out; } struct PS_IN @@ -99,41 +111,69 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.0f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir) * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient)); + float fViewZ = vDepth.y * g_fFar; - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } - float fViewZ = vDepthDesc.y * g_fFar; - - vector vPosition; + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; + float fOcclusion = 1.f; + float fAttenuation = 1.f; -{ // vDepthDesc과 vTexcoord.xy로부터 World Position의 추론 - /* 직육면체의 NDC */ - /* LocalPos * World * View * Proj * ( 1 / w ) */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로 - /* [* (1 / w)] 소거*/ - /* z나누기를 되돌림 */ - vPosition = vPosition * fViewZ; -// vPosition.x = In.vTexcoord.x * 2.f - 1.f * Far; -// vPosition.y = In.vTexcoord.y * -2.f + 1.f * Far; -// vPosition.z = vDepthDesc.x * Far; -// vPosition.w = Far; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); -} - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(normalize(g_vLightDir), vNormal); + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient)); + Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f); - Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f); + return Out; + } + + float fDiffuseAOStrength = lerp(0.3f, 5.f, fOcclusion); + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + PBR_Out.vShade *= fDiffuseAOStrength; + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -142,38 +182,70 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float fViewZ = vDepth.y * g_fFar; - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); - - vector vLightDir = vPosition - (g_vLightPos + g_vLightPosOffset); - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + float fOcclusion = 1.f; + float fAttenuation = 1.f; - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로 + + { + float fDistance = length(vToLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) { discard; } + } + + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f)); + + return Out; + } + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } @@ -182,56 +254,105 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In) { PS_OUT_LIGHT Out; - vector vNormalDesc = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord); + float2 uv = In.vTexcoord; - float4 vNormal = vector(vNormalDesc.xyz * 2.f - 1.f, 0.f); + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1.f); + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); - float fViewZ = vDepthDesc.y * g_fFar; + float fViewZ = vDepth.y * g_fFar; - vector vPosition; - /* 0 ~ 1 에서 -1 ~ 1 */ - vPosition.x = In.vTexcoord.x * 2.f - 1.f; - vPosition.y = In.vTexcoord.y * -2.f + 1.f; - vPosition.z = vDepthDesc.x; - vPosition.w = 1.f; - vPosition = vPosition * fViewZ; - vPosition = mul(vPosition, g_invmatProj); - vPosition = mul(vPosition, g_invMatView); - - vector vLightDir = vPosition - g_vLightPos; - float fDistance = length(vLightDir); - float fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); - if (fAttenuation <= 0.f) + float4 vWorldPosition; { - discard; + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); } - vLightDir = normalize(vLightDir); - vector vSpotDir = normalize(g_vLightDir); - float fCosAngle = dot(vLightDir, vSpotDir); - if (fCosAngle < g_fSpotOuterAngle) + + float3 vF0 = float3(0.04f, 0.04f, 0.04f); + float fMetallic = 0.f; + float fRoughness = 0.5f; + float fOcclusion = 1.f; + float fAttenuation = 1.f; + + float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로 + float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로 + { - discard; + float fDistance = length(vToLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) { discard; } } - float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); + float fCosAngle = dot(vToView, g_vLightDir.xyz); + if (fCosAngle < g_fSpotOuterAngle) { discard; } + + float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); fAttenuation *= fSpotAttenenuation; - Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vLightDir * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic + { + float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_SPECULAR)) // Specular + { + fMetallic = 0.f; + float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb; + vF0 = vSRO.rrr; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + } + else // basic Lighting(phong blinn) // if you were here, you miss some assets. + { + Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (g_vLightAmbient * g_vMtrlAmbient))); + Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f)); - vector vLook = vPosition - g_vCamPosition; - vector vReflect = reflect(vLightDir, vNormal); + return Out; + } - Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(normalize(vLook) * -1.f, normalize(vReflect)), 0.f), 50.f)); + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); return Out; } -float g_fWeights[32] = +//float g_fWeights[32] = +//{ +// 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000, +// 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800, +// 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200, +// 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200 +//}; + +float g_fWeights[128] = { - 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000, - 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800, - 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200, - 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200 + 0.000209902, 0.000241594, 0.000277451, 0.000317919, 0.000363477, 0.000414637, 0.000471944, 0.000535974, + 0.000607333, 0.000686659, 0.000774615, 0.000871889, 0.00097919, 0.00109725, 0.00122679, 0.00136858, + 0.00152334, 0.00169183, 0.00187477, 0.00207285, 0.00228675, 0.0025171, 0.00276448, 0.0030294, + 0.00331231, 0.00361356, 0.00393342, 0.00427205, 0.00462949, 0.00500564, 0.0054003, 0.00581308, + 0.00624346, 0.00669075, 0.00715411, 0.0076325, 0.00812472, 0.0086294, 0.009145, 0.0096698, + 0.0102019, 0.0107393, 0.0112798, 0.0118211, 0.0123608, 0.0128962, 0.0134249, 0.0139441, + 0.0144511, 0.0149431, 0.0154174, 0.0158713, 0.0163021, 0.0167073, 0.0170844, 0.0174311, + 0.0177452, 0.0180246, 0.0182676, 0.0184726, 0.0186383, 0.0187635, 0.0188474, 0.0188895, + + 0.0188895, 0.0188474, 0.0187635, 0.0186383, 0.0184726, 0.0182676, 0.0180246, 0.0177452, + 0.0174311, 0.0170844, 0.0167073, 0.0163021, 0.0158713, 0.0154174, 0.0149431, 0.0144511, + 0.0139441, 0.0134249, 0.0128962, 0.0123608, 0.0118211, 0.0112798, 0.0107393, 0.0102019, + 0.0096698, 0.009145, 0.0086294, 0.00812472, 0.0076325, 0.00715411, 0.00669076, 0.00624346, + 0.00581308, 0.0054003, 0.00500564, 0.00462948, 0.00427205, 0.00393342, 0.00361356, 0.00331231, + 0.0030294, 0.00276448, 0.0025171, 0.00228675, 0.00207285, 0.00187477, 0.00169183, 0.00152334, + 0.00136858, 0.00122679, 0.00109725, 0.000979191, 0.000871889, 0.000774615, 0.000686658, 0.000607333, + 0.000535973, 0.000471944, 0.000414637, 0.000363477, 0.000317919, 0.000277451, 0.000241594, 0.000209902 }; @@ -252,8 +373,8 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) Out.vBackBuffer = vDiffuse * vShade + vSpecular; - vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); float fViewZ = vDepthDesc.y * g_fFar; @@ -271,6 +392,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) vPosition = mul(vPosition, g_invmatProj); vPosition = mul(vPosition, g_invMatView); vPreShadowPosition = vPosition; + /* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */ vPosition = mul(vPosition, g_LightViewMatrix); vPosition = mul(vPosition, g_LightProjMatrix); @@ -289,6 +411,7 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.0005f); Out.vBackBuffer.rgb *= lerp(0.5f, 1.f, min(fVisibility_Dynamic, fVisibility_Static)); + //float fShadowDepth = g_ShadowTexture.Sample(DefaultSampler, vTexcoord).x; //float fPreShadowDepth = g_PreShadowTexture.Sample(DefaultSampler, vPreShadowTexcoord).x; //bool IsShadow = { false }; @@ -306,29 +429,25 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) //} float4 vColor = 0.f; - //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; - //int iBlurMin; - //int iBlurMax; - //if (iBlurWeight % 2 == 0) - //{ - // iBlurMin = -1 * iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2; - //} - //else - //{ - // iBlurMin = -iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2 + 1; - //} + int iBlurWeight = (int)(round(g_BlurWeightXTexture.Sample(ClampSampler, In.vTexcoord).r) * 128.f); - //[loop] // 변수로 루프돌리려면 반드시 필요함 - for (int i = -15; i < 16; ++i) + int iBlurMin; + int iBlurMax; + + iBlurMin = -1 * (iBlurWeight / 2) + 1; + iBlurMax = iBlurWeight / 2; + + // // 변수로 루프돌리려면 반드시 필요함 + + + for (int i = -63; i < 64; ++i) { vTexcoord.x = In.vTexcoord.x; vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; - vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord); + vColor += g_fWeights[i + 63] * g_BlurXTexture.Sample(ClampSampler, vTexcoord); } Out.vBackBuffer += vColor; @@ -336,11 +455,70 @@ PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) return Out; } +PS_OUT_BACKBUFFER PS_MAIN_REFIT(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + Out.vBackBuffer = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord); + + return Out; +} + +PS_OUT_BACKBUFFER PS_MAIN_EMBOSS(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + float3 vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord).xyz; + + // temp 이거 키면 겁나 빤짞빤짞 빛남 ㄷㄷ + //vColor *= 3.f; + // temp + + //float fIntensity = dot(vColor, float3(0.3333f, 0.3333f, 0.3333f)); // 대략적인 밝기 + float fIntensity = dot(vColor, float3(0.2126f, 0.7152f, 0.0722f)); // 대략적인 밝기 ( 인간적인 ) + if (fIntensity <= 1e-4f) + { + Out.vBackBuffer = 0; + return Out; + } + float fBloomIntensity = GetBloomCurve(fIntensity); + + float3 bloomColor = (vColor * fBloomIntensity) / fIntensity; + Out.vBackBuffer = float4(bloomColor, 1.f); + + return Out; +} + struct PS_OUT_BLUR_X { float4 vBlurX : SV_TARGET0; + float4 vBlurWeight : SV_TARGET1; }; +PS_OUT_BACKBUFFER PS_MAIN_BLOOM_ACCUM(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + float3 vColorSrcA = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord).xyz; + float3 vColorSrcB = g_BlurTexture.Sample(PointSampler, In.vTexcoord).xyz; + + Out.vBackBuffer = float4(saturate(vColorSrcA + vColorSrcB), 1.f); + + return Out; +} + +PS_OUT_BACKBUFFER PS_MAIN_BLOOM_FINISH(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + vector vColor = g_DiffuseTexture.Sample(PointSampler, In.vTexcoord); + float3 vBloom = g_BlurTexture.Sample(PointSampler, In.vTexcoord).xyz; + Out.vBackBuffer = vColor; + Out.vBackBuffer += float4(vBloom, 1.f); + + return Out; +} + PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) { @@ -349,35 +527,37 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) float2 vTexcoord; float4 vColor = 0.f; - //TODO 블러 조절 해보려햇는데 실패함.. - - //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; - - //int iBlurMin; - //int iBlurMax; - - //if (iBlurWeight % 2 == 0) - //{ - // iBlurMin = -1 * iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2; - //} - //else - //{ - // iBlurMin = -iBlurWeight / 2; - // iBlurMax = iBlurWeight / 2 + 1; - //} - - //[loop] // 변수로 루프돌리려면 반드시 필요함 - - for (int i = -15; i < 16; ++i) + for (int i = -63; i < 64; ++i) { vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x; vTexcoord.y = In.vTexcoord.y; - vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord); + vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } - Out.vBlurX = vColor; + Out.vBlurX = vColor; + Out.vBlurWeight = 0.f; + + return Out; +} + +PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In) +{ + PS_OUT_BLUR_X Out; + + float2 vTexcoord; + float4 vColor = 0.f; + + for (int i = -63; i < 64; ++i) + { + vTexcoord.x = In.vTexcoord.x; + vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; + + vColor += g_fWeights[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); + } + + Out.vBlurX = vColor; + Out.vBlurWeight = 0.f; return Out; } @@ -385,7 +565,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) technique11 DefaultTechnique { - pass DebugPass + pass DebugPass // 0 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_Default, 0); @@ -395,7 +575,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DEBUG(); } - pass DirectionalPass + pass DirectionalPass // 1 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -405,7 +585,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_DIRECTIONAL(); } - pass PointPass + pass PointPass // 2 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -415,7 +595,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_POINT(); } - pass CombinedPass + pass CombinedPass // 3 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -425,7 +605,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_COMBINED(); } - pass BlurPass + pass BlurPass // 4 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -435,7 +615,7 @@ technique11 DefaultTechnique PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); } - pass SpotPass + pass SpotPass // 5 { SetRasterizerState(RS_Default); SetDepthStencilState(DSS_None, 0); @@ -444,4 +624,64 @@ technique11 DefaultTechnique GeometryShader = NULL; PixelShader = compile ps_5_0 PS_MAIN_SPOT(); } + + pass RefitPass // 6 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_REFIT(); + } + + pass EmbossingPass // 7 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_EMBOSS(); + } + + pass Bloom_BlurXPass // 8 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); + } + + pass Bloom_BlurYPass // 9 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLUR_Y(); + } + + pass Bloom_AccumPass // 10 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLOOM_ACCUM(); + } + + pass Bloom_FinishPass // 11 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_CAPTURE(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLOOM_FINISH(); + } } diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl index 5c8f5c81a..cb79ebc0b 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_LastColor.hlsl @@ -50,7 +50,7 @@ PS_OUT_BACKBUFFER PS_OUT_LASTCOLOR(PS_IN In) Out.vBackBuffer = float4(0.f, 0.f, 0.f, 0.f); - vector vColorTexture = g_ColorTexture.Sample(ClampSampler, In.vTexcoord); + vector vColorTexture = g_ColorTexture.Sample(DefaultSampler, In.vTexcoord); if (0.f == vColorTexture.a) { diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl new file mode 100644 index 000000000..645fd6d0c --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl @@ -0,0 +1,151 @@ +float PI = 3.141592; + +struct KeyFrame +{ + float3 vScale; + float4 vRotation; + float3 vTranslation; + float fTrackPosition; +}; + +struct Channel +{ + uint StartIndex; + uint KeyCount; + uint BoneIndex; +}; + +struct LocalPos +{ + float3 Scale; + float pad0; + + float4 Rotation; + + float3 Translation; + float pad1; +}; + + +StructuredBuffer g_KeyFrameBuffer : register(t0); +StructuredBuffer g_ChannelBuffer : register(t1); + +RWStructuredBuffer g_LocalPosOutput : register(u0); + + +cbuffer AnimCB : register(b0) +{ + float CurrentTime; + float Duration; + float Speed; + int BoneCount; + + row_major float4x4 PreTransformMatrix; +}; + +float4 quatSlerp(float4 q1, float4 q2, float t) +{ + float cosTheta = dot(q1, q2); + + if (cosTheta < 0.0f) + { + q2 = -q2; + cosTheta = -cosTheta; + } + + if (cosTheta > 0.9995f) + return normalize(lerp(q1, q2, t)); + + float theta = acos(cosTheta); + float sinTheta = sin(theta); + + float w1 = sin((1.0f - t) * theta) / sinTheta; + float w2 = sin(t * theta) / sinTheta; + + return q1 * w1 + q2 * w2; +} + + +[numthreads(256, 1, 1)] +void CS_LocalSRT(uint3 DTID : SV_DispatchThreadID) +{ + uint boneIndex = DTID.x; + if (boneIndex >= (uint) BoneCount) + return; + + float time = CurrentTime; + if (Duration > 0) + time = min(time, Duration); + + Channel channel = g_ChannelBuffer[boneIndex]; + + LocalPos result; + + if (channel.KeyCount == 0) + { + result.Scale = float3(1, 1, 1); + result.Rotation = float4(0, 0, 0, 1); + result.Translation = float3(0, 0, 0); + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + uint firstIndex = channel.StartIndex; + uint lastIndex = channel.StartIndex + channel.KeyCount - 1; + + KeyFrame keyframe1 = g_KeyFrameBuffer[firstIndex]; + KeyFrame keyframe2 = g_KeyFrameBuffer[lastIndex]; + + if (time <= keyframe1.fTrackPosition) + { + result.Scale = keyframe1.vScale; + result.Rotation = keyframe1.vRotation; + result.Translation = keyframe1.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + if (time >= keyframe2.fTrackPosition) + { + result.Scale = keyframe2.vScale; + result.Rotation = keyframe2.vRotation; + result.Translation = keyframe2.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + + for (uint i = 0; i < channel.KeyCount - 1; ++i) + { + uint A = channel.StartIndex + i; + uint B = channel.StartIndex + i + 1; + + KeyFrame ka = g_KeyFrameBuffer[A]; + KeyFrame kb = g_KeyFrameBuffer[B]; + + if (time >= ka.fTrackPosition && time <= kb.fTrackPosition) + { + float t = (time - ka.fTrackPosition) / (kb.fTrackPosition - ka.fTrackPosition); + + result.Scale = lerp(ka.vScale, kb.vScale, t); + result.Rotation = quatSlerp(ka.vRotation, kb.vRotation, t); + result.Translation = lerp(ka.vTranslation, kb.vTranslation, t); + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; + return; + } + } + + result.Scale = keyframe2.vScale; + result.Rotation = keyframe2.vRotation; + result.Translation = keyframe2.vTranslation; + result.pad0 = result.pad1 = 0.0f; + + g_LocalPosOutput[boneIndex] = result; +} diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_PBR.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_PBR.hlsl new file mode 100644 index 000000000..919c44c67 --- /dev/null +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_PBR.hlsl @@ -0,0 +1,544 @@ +#include "Engine_Shader_Defines.hlsli" + +matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix; +matrix g_invMatView, g_invmatProj; +matrix g_LightViewMatrix, g_LightProjMatrix; +matrix g_PreShadowLightViewMatrix, g_PreShadowLightProjMatrix; + +float g_fFar; +float g_fPreShadowFar; +uint g_iMaxShadowWidth; +uint g_iMaxShadowHeight; +float2 g_vResolution; + +Texture2D g_Texture; + +float g_fLightRange; +float g_fSpotInnerAngle; +float g_fSpotOuterAngle; + +vector g_vLightDir; +vector g_vLightPos; +vector g_vLightPosOffset; + +vector g_vCamPosition; + + +Texture2D g_NormalTexture; +Texture2D g_DiffuseTexture; +Texture2D g_ShadeTexture; +Texture2D g_DepthTexture; +Texture2D g_SpecularTexture; +Texture2D g_ShadowTexture; +Texture2D g_PreShadowTexture; +Texture2D g_BlurTexture; +Texture2D g_BlurXTexture; +Texture2D g_BlurWeightTexture; + +Texture2D g_MROTexture; +Texture2D g_SROTexture; + + +vector g_vLightDiffuse; +vector g_vLightAmbient; +vector g_vLightSpecular; + +struct VS_IN +{ + float3 vPosition : POSITION; + float2 vTexcoord : TEXCOORD0; +}; + +struct VS_OUT +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; +}; +VS_OUT VS_MAIN(VS_IN In) +{ + VS_OUT Out; + + matrix matWV, matWVP; + + matWV = mul(g_WorldMatrix, g_ViewMatrix); + matWVP = mul(matWV, g_ProjMatrix); + + Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP); + Out.vTexcoord = In.vTexcoord; + + return Out; +} + +struct PS_IN +{ + float4 vPosition : SV_POSITION; + float2 vTexcoord : TEXCOORD0; +}; + +struct PS_OUT_BACKBUFFER +{ + float4 vBackBuffer : SV_TARGET0; +}; + +PS_OUT_BACKBUFFER PS_MAIN_DEBUG(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + Out.vBackBuffer = g_Texture.Sample(DefaultSampler, In.vTexcoord); + + return Out; +} + +struct PS_OUT_LIGHT +{ + vector vShade : SV_TARGET0; + vector vSpecular : SV_TARGET1; +}; + +PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In) +{ + PS_OUT_LIGHT Out; + + float2 uv = In.vTexcoord; + + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); + + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); + + float fViewZ = vDepth.y * g_fFar; + + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } + + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; + + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 + + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } + + fAttenuation = 1.f; + + float fDiffuseAOStrength = lerp(0.3f, 1.f, fOcclusion); + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + PBR_Out.vShade *= fDiffuseAOStrength; + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); + + return Out; +} + +PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In) +{ + PS_OUT_LIGHT Out; + + float2 uv = In.vTexcoord; + + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); + + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); + + float fViewZ = vDepth.y * g_fFar; + + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } + + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 + + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; + + { + float fDistance = length(vFromLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) + { + discard; + } + } + + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, + vAlbedo, fMetallic, fRoughness, + g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); + + return Out; +} + +PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In) +{ + PS_OUT_LIGHT Out; + + float2 uv = In.vTexcoord; + + float3 vNormal = normalize(g_NormalTexture.Sample(DefaultSampler, uv).xyz * 2.f - 1); + + float4 vDepth = g_DepthTexture.Sample(DefaultSampler, uv); + + float fViewZ = vDepth.y * g_fFar; + + float4 vWorldPosition; + { + vWorldPosition.x = uv.x * 2 - 1; + vWorldPosition.y = uv.y * -2 + 1; + vWorldPosition.z = vDepth.x; + vWorldPosition.w = 1.f; + vWorldPosition *= fViewZ; + vWorldPosition = mul(vWorldPosition, g_invmatProj); + vWorldPosition = mul(vWorldPosition, g_invMatView); + } + + float3 vWPos = vWorldPosition.xyz; + float3 vFromView = normalize(vWPos - g_vCamPosition.xyz); // 카메라에서 픽셀로 가는 방향 + float3 vFromLight = normalize(g_vLightDir.xyz); // 라이트에서 오는 라이트 벡터 + + float3 vF0; + float fMetallic; + float fRoughness; + float fOcclusion; + float fAttenuation; + { + float fDistance = length(vFromLight); + fAttenuation = saturate((g_fLightRange - fDistance) / g_fLightRange); + if (fAttenuation <= 0.f) + { + discard; + } + } + float fCosAngle = dot(vFromLight, g_vLightDir.xyz); + if (fCosAngle < g_fSpotOuterAngle) + { + discard; + } + float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle)); + fAttenuation *= fSpotAttenenuation; + + float3 vAlbedo = g_DiffuseTexture.Sample(DefaultSampler, uv).rgb; + + if (1 == vDepth.b) // Metallic + { + float3 vMRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + fMetallic = vMRO.r; + fRoughness = vMRO.g; + fOcclusion = vMRO.b; + + vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + } + else // Specular + { + float3 vSRO = g_MROTexture.Sample(DefaultSampler, uv).rgb; + float3 vSpec = vSRO.r; + + fMetallic = 0.f; + fRoughness = vSRO.g; + fOcclusion = vSRO.b; + + + vF0 = vSpec.xxx; + } + + PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vFromView, vFromLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0); + + Out.vShade = float4(PBR_Out.vShade, 1.f); + Out.vSpecular = float4(PBR_Out.vSpecular, 1.f); + + return Out; +} + +float g_fWeights[32] = +{ + 0.000400, 0.000700, 0.001200, 0.002000, 0.003200, 0.005000, 0.007500, 0.011000, + 0.015700, 0.021700, 0.029000, 0.037300, 0.046200, 0.055200, 0.063600, 0.070800, + 0.075900, 0.078500, 0.078500, 0.075900, 0.070800, 0.063600, 0.055200, 0.046200, + 0.037300, 0.029000, 0.021700, 0.015700, 0.011000, 0.007500, 0.005000, 0.003200 +}; + + +PS_OUT_BACKBUFFER PS_MAIN_COMBINED(PS_IN In) +{ + PS_OUT_BACKBUFFER Out; + + vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord); + + if (0.f == vDiffuse.a) + { + discard; + } + + vector vShade = g_ShadeTexture.Sample(DefaultSampler, In.vTexcoord); + + vector vSpecular = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord); + + Out.vBackBuffer = vDiffuse * vShade + vSpecular; + + vector vDepthDesc = g_DepthTexture.Sample(DefaultSampler, In.vTexcoord); + + + float fViewZ = vDepthDesc.y * g_fFar; + + + vector vPosition, vPreShadowPosition; + + /* (로컬위치 * 월드 * 뷰 * 투영 / w) -> (로컬위치 * 월드) */ + vPosition.x = In.vTexcoord.x * 2.f - 1.f; + vPosition.y = In.vTexcoord.y * -2.f + 1.f; + vPosition.z = vDepthDesc.x; + vPosition.w = 1.f; + + vPosition = vPosition * fViewZ; + + vPosition = mul(vPosition, g_invmatProj); + vPosition = mul(vPosition, g_invMatView); + vPreShadowPosition = vPosition; + + /* (로컬위치 * 월드) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) */ + vPosition = mul(vPosition, g_LightViewMatrix); + vPosition = mul(vPosition, g_LightProjMatrix); + vPreShadowPosition = mul(vPreShadowPosition, g_PreShadowLightViewMatrix); + vPreShadowPosition = mul(vPreShadowPosition, g_PreShadowLightProjMatrix); + + /* (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 ) -> (로컬위치 * 월드 * 광원의 뷰 * 광원의 투영 * (/w) */ + float2 vTexcoord, vPreShadowTexcoord; + vTexcoord.x = (vPosition.x / vPosition.w) * 0.5f + 0.5f; + vTexcoord.y = (vPosition.y / vPosition.w) * -0.5f + 0.5f; + vPreShadowTexcoord.x = (vPreShadowPosition.x / vPreShadowPosition.w) * 0.5f + 0.5f; + vPreShadowTexcoord.y = (vPreShadowPosition.y / vPreShadowPosition.w) * -0.5f + 0.5f; + + /* 광원의 NDC에서 샘플링 */ + float fVisibility_Dynamic = ShadowVisibility_hwPCF(g_ShadowTexture, vPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.0005f); + float fVisibility_Static = ShadowVisibility_hwPCF(g_PreShadowTexture, vPreShadowPosition, float2(g_iMaxShadowWidth, g_iMaxShadowHeight), 0.0005f); + + Out.vBackBuffer.rgb *= lerp(0.5f, 1.f, min(fVisibility_Dynamic, fVisibility_Static)); + //float fShadowDepth = g_ShadowTexture.Sample(DefaultSampler, vTexcoord).x; + //float fPreShadowDepth = g_PreShadowTexture.Sample(DefaultSampler, vPreShadowTexcoord).x; + //bool IsShadow = { false }; + //if (vPosition.z - 0.0005f > fShadowDepth) + //{ + // IsShadow = true; + //} + //if (vPreShadowPosition.z - 0.0005f > fPreShadowDepth) + //{ + // IsShadow = true; + //} + //if (true == IsShadow) + //{ + // Out.vBackBuffer *= 0.5f; + //} + float4 vColor = 0.f; + + //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; + + //int iBlurMin; + //int iBlurMax; + + //if (iBlurWeight % 2 == 0) + //{ + // iBlurMin = -1 * iBlurWeight / 2; + // iBlurMax = iBlurWeight / 2; + //} + //else + //{ + // iBlurMin = -iBlurWeight / 2; + // iBlurMax = iBlurWeight / 2 + 1; + //} + + //[loop] // 변수로 루프돌리려면 반드시 필요함 + for (int i = -15; i < 16; ++i) + { + vTexcoord.x = In.vTexcoord.x; + vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; + + vColor += g_fWeights[i + 15] * g_BlurXTexture.Sample(ClampSampler, vTexcoord); + } + + Out.vBackBuffer += vColor; + + return Out; +} + +struct PS_OUT_BLUR_X +{ + float4 vBlurX : SV_TARGET0; +}; + + +PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) +{ + PS_OUT_BLUR_X Out; + + float2 vTexcoord; + float4 vColor = 0.f; + + //TODO 블러 조절 해보려햇는데 실패함.. + + //int iBlurWeight = g_BlurWeightTexture.Sample(ClampSampler, In.vTexcoord).r * 32.f; + + //int iBlurMin; + //int iBlurMax; + + //if (iBlurWeight % 2 == 0) + //{ + // iBlurMin = -1 * iBlurWeight / 2; + // iBlurMax = iBlurWeight / 2; + //} + //else + //{ + // iBlurMin = -iBlurWeight / 2; + // iBlurMax = iBlurWeight / 2 + 1; + //} + + //[loop] // 변수로 루프돌리려면 반드시 필요함 + + for (int i = -15; i < 16; ++i) + { + vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x; + vTexcoord.y = In.vTexcoord.y; + + vColor += g_fWeights[i + 15] * g_BlurTexture.Sample(ClampSampler, vTexcoord); + } + + Out.vBlurX = vColor; + + return Out; +} + + +technique11 DefaultTechnique +{ + pass DebugPass // 0 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_Default, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_DEBUG(); + } + + pass DirectionalPass // 1 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_DIRECTIONAL(); + } + + pass PointPass // 2 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_POINT(); + } + + pass CombinedPass // 3 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_COMBINED(); + } + + pass BlurPass // 4 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_BLUR_X(); + } + + pass SpotPass // 5 + { + SetRasterizerState(RS_Default); + SetDepthStencilState(DSS_None, 0); + SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff); + VertexShader = compile vs_5_0 VS_MAIN(); + GeometryShader = NULL; + PixelShader = compile ps_5_0 PS_MAIN_SPOT(); + } +} 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 0dea26c43..91a72f9db 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -1,5 +1,4 @@ - -float PI = 3.141592; +#include "Engine_Shader_Functions.hlsli" struct Particle { @@ -30,7 +29,16 @@ struct ParticleValue float2 vAniIndex; float fGravity; - float3 vSinAmount; + float3 vSinAmount; + float3 vDeltaAngle; + float3 vDeltaAxisAngle; + + float fDrag; + float3 vPivot; + + float fSizeDrag; + float3 vDeltaSize; + float2 vDelay; }; @@ -42,12 +50,22 @@ RWStructuredBuffer g_ParticleValueOutput : register(u1); cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함 { - row_major matrix CamViewInvMatrix; + row_major matrix WorldMatrix; bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라 bool isDrop; bool isMoveForward; bool isSinWave; + + bool isTurn; + bool isAxisTurn; + bool isPivotMove; + bool isSizeMove; + + bool isNoWorld; + bool isPadding0; + bool isPadding1; + bool isPadding2; float fTimeDelta; float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다. @@ -67,18 +85,42 @@ void CS_MAIN( ParticleValue particleValue = g_ParticleValueBufferInput[iIndex]; - // 라이프타임 움직임 + particleValue.vDelay.x += fTimeDelta; + + if (particleValue.vDelay.x < particleValue.vDelay.y) + { + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return; + } + + if (particle.vLifeTime.x <= FLT_EPSILON5) + { + if (isNoWorld) + { + float4x4 CurMat = { particle.vRight, particle.vUp, particle.vLook, particle.vTranslation }; + + + CurMat = mul(CurMat, WorldMatrix); + + particle.vRight = CurMat[0].xyzw; + particle.vUp = CurMat[1].xyzw; + particle.vLook = CurMat[2].xyzw; + particle.vTranslation = CurMat[3].xyzw; + } + } + // 라이프타임 움직임 particle.vLifeTime.x += fTimeDelta; if (particle.vLifeTime.x >= particle.vLifeTime.y) { if (isLoop == false) { - - - return; + return ; } - //초기화 particle.vRight = particleValue.vOriginRight; particle.vUp = particleValue.vOriginUp; @@ -86,15 +128,47 @@ void CS_MAIN( particle.vTranslation = particleValue.vOriginTranslation; particle.vLifeTime.x = 0.f; - + particleValue.vAniIndex.x = 0.f; + particleValue.vDelay.x = 0.f; + + + + g_VBInstanceOutput[iIndex] = particle; + g_ParticleValueOutput[iIndex] = particleValue; + + return ; } if (isMoveForward) { - float4 vVelocity = vector(normalize(particleValue.vOriginLook.xyz) * particleValue.fSpeed, 1.f); + 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) @@ -107,6 +181,87 @@ void CS_MAIN( { particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f); } + + if (isTurn == true) + { + /* ROTATE */ + float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta); + float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta); + float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta); + + + float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat)); + + float4x4 CurRotatemat = {particle.vRight, particle.vUp, particle.vLook, vector(0.f , 0.f, 0.f, 1.f)}; + + + + CurRotatemat = mul(CombinedRotMat, CurRotatemat); + + particle.vRight = CurRotatemat[0].xyzw; + particle.vUp = CurRotatemat[1].xyzw; + 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/Default/Engine.vcxproj b/Jusin154_Team3D/Engine/Default/Engine.vcxproj index 2430cdce9..f8e80124c 100644 --- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj +++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj @@ -29,7 +29,7 @@ DynamicLibrary true - v145 + v143 Unicode @@ -110,7 +110,7 @@ Level3 true - EDITOR_PROJECT;ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;EDITOR_PROJECT;$(USERNAME);_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true stdcpp17 ../Public/;%(AdditionalIncludeDirectories) @@ -148,7 +148,7 @@ call Update_Lib.bat true true true - EDITOR_PROJECT;ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + ENGINE_EXPORTS;IMGUI_EXPORTS;TINYXML2_EXPORT;$(USERNAME);NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true stdcpp17 ../Public/;%(AdditionalIncludeDirectories) @@ -207,6 +207,7 @@ call Update_Lib.bat + true true @@ -298,10 +299,12 @@ call Update_Lib.bat + NotUsing + NotUsing @@ -313,6 +316,7 @@ call Update_Lib.bat + @@ -418,6 +422,7 @@ call Update_Lib.bat + true true @@ -540,7 +545,9 @@ call Update_Lib.bat + + @@ -554,12 +561,54 @@ call Update_Lib.bat + - + + Document + + + Effect + 5.0 + + + Document + + + Effect + 5.0 + + + Document + + + Effect + 5.0 + + + Document + + + Effect + 5.0 + + + Document + + + Effect + 5.0 + + + Document + + + Effect + 5.0 + @@ -577,6 +626,10 @@ call Update_Lib.bat + + Effect + 5.0 + Effect 5.0 @@ -590,10 +643,14 @@ call Update_Lib.bat Effect 5.0 + Effect + 5.0 Effect 5.0 + Effect + 5.0 Effect diff --git a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters index 918b88407..ffed8f443 100644 --- a/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters +++ b/Jusin154_Team3D/Engine/Default/Engine.vcxproj.filters @@ -264,7 +264,7 @@ {a4560f1b-c4f4-4705-bbf8-6a60977d3211} - + {b3742605-653a-4bdf-bad9-329d993e7f52} @@ -277,6 +277,18 @@ {dae29f0c-1727-4423-a3ca-9ef27460520b} + + {1e10fa90-da5b-4285-a7a3-c4211b4cccbb} + + + {701cf231-2892-4d72-9615-dbe9285c28f4} + + + {d9f03f43-e9d1-4a50-b465-e1000462bd3e} + + + {d76a5d4a-1627-448d-9631-239540dd8eb2} + @@ -512,7 +524,7 @@ 02.Element\01.GameObject\Unit - + 02.Element\02.Component\02.VIBuffer\Instance\UI_nstance @@ -525,6 +537,15 @@ 02.Element\02.Component\02.VIBuffer\Trail + + 02.Element\02.Component\02.VIBuffer\Terrain\QuadTree + + + 00.System\02.ThreadHolder + + + 02.Element\02.Component\02.VIBuffer\Instance\Model_Instance + @@ -1126,7 +1147,7 @@ 02.Element\01.GameObject\Unit - + 02.Element\02.Component\02.VIBuffer\Instance\UI_nstance @@ -1139,6 +1160,18 @@ 02.Element\02.Component\02.VIBuffer\Trail + + 02.Element\02.Component\02.VIBuffer\Terrain\QuadTree + + + 00.System\02.ThreadHolder + + + 99.Define\99.THIRDPARTY + + + 02.Element\02.Component\02.VIBuffer\Instance\Model_Instance + @@ -1186,9 +1219,6 @@ 99.Define\99.THIRDPARTY\FMOD - - 99.Define\01.SHADER - @@ -1206,5 +1236,26 @@ 99.Define\01.SHADER + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER\Inc + + + 99.Define\01.SHADER + \ No newline at end of file diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli b/Jusin154_Team3D/Engine/Engine_Shader_Defines.hlsli similarity index 66% rename from Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli rename to Jusin154_Team3D/Engine/Engine_Shader_Defines.hlsli index 3ddc2f1e7..ad5294f69 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Engine_Shader_Defines.hlsli +++ b/Jusin154_Team3D/Engine/Engine_Shader_Defines.hlsli @@ -256,3 +256,111 @@ float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame) return UV; } + +struct PBR_LIGHT_OUT +{ + float3 vShade; + float3 vSpecular; +}; + +// (Kd F(Lambert)) + (Ks F(cook-torrance)) + +//float LambertDiffuse(float c) +//{ +// return c / PI; +//} + +// F(cook-torrance) +// DFG / (4 (Wo dot N) (Wi dot N)) + +// D(distribution, NormalDistribution function), 표면의 거칠기에 영향을 받는 halfWay vector +// G(Geometry, GeometryFunc), 에너지 보존법칙 적용 +// F(Fresnel-Fresnel equation), 표면 각도에 따른 반사율 + +// F->D +float NDF_ggxtr(float3 n, float3 h, float a) // NormalDistributionGGXTR, (H, halfWay vector), (A, Roughness), (N, Normal?) +{ + float a2 = a * a; + float NdotH = saturate(dot(n, h)); + float NdotH2 = NdotH * NdotH; + + float nom = a2; + float denom = (NdotH2 * (a2 - 1.f) + 1.f); + + denom = PI * denom * denom; + return (nom / denom); +} + +// F->G +// GschlickGGX(n, v, k) +// k는 이하 두개 조명 조건에 따라 가변적임 +// Direct // Kdir -> ((a + 1) * (a + 1)) / 8 // direct lighting 추천 +// IBL Lighting // Kibl -> a * a / 2 // 이미지 기반 조명기법 + +float Geometry_SchlickGGX(float NdotV, float fK) +{ + return NdotV / (NdotV * (1.0f - fK) + fK); +} + +float Geometry_Smith(float3 n, float3 v, float3 l, float k) +{ + // Geometry Obstruction + // 철이 있는, 주로 튀어나온 장애물 + float NdotV = saturate(dot(n, v)); + + // Geometry Shadowing + // 요가 있는, 주로 음푹 들어간 장애물 (그래서 셰도잉) + float NdotL = saturate(dot(n, l)); + + // 요철이 골고루 있다고 가정하고 적당히 섞음 + return Geometry_SchlickGGX(NdotV, k) * Geometry_SchlickGGX(NdotL, k); +} + +// F -> F +float3 Fresnel_Schlick(float cosTheta, float3 F0) +{ + // 모서리 부분의 반사 + return F0 + (1.0f - F0) * pow(1.0f - cosTheta, 5.0f); +} + +PBR_LIGHT_OUT PBR_Lighting( + float3 vNormal, float3 vToView, float3 vToLight, + float3 vAlbedo, float fMetallic, float fRoughness, + float3 vLightColor, float fAttenuation + +) { + PBR_LIGHT_OUT Out; + Out.vShade = 0; + Out.vSpecular = 0; + + float3 vHalfVector = normalize(vToView + vToLight); + float NdotL = saturate(dot(vNormal, vToLight)); + float NdotV = saturate(dot(vNormal, vToView)); + if (NdotL <= 0 || NdotV <= 0) + { + return Out; + } + float fAlpha = max(fRoughness * fRoughness, 0.04f); + float k = ((fRoughness + 1.f) * (fRoughness + 1.f)) / 8.f; + + + float3 F0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic); + + float D = NDF_ggxtr(vNormal, vHalfVector, fAlpha); + float G = Geometry_Smith(vNormal, vToView, vToLight, k); + float3 F = Fresnel_Schlick(saturate(dot(vHalfVector, vToView)), F0); + + float3 vNumerator = D * G * F; + float fDenom = max(4.f * NdotL * NdotV, 1e-7); + float3 specularBRDF = vNumerator / fDenom; + + + float3 kS = F; + float3 kD = (1.f - kS) * (1.f -fMetallic); + + Out.vShade = (kD / PI) * (NdotL * fAttenuation) * vLightColor; + + Out.vSpecular = specularBRDF * vLightColor * fAttenuation * NdotL; + + return Out; +} diff --git a/Jusin154_Team3D/Engine/Private/Animation.cpp b/Jusin154_Team3D/Engine/Private/Animation.cpp index 91a1376ef..8e839eeac 100644 --- a/Jusin154_Team3D/Engine/Private/Animation.cpp +++ b/Jusin154_Team3D/Engine/Private/Animation.cpp @@ -23,6 +23,7 @@ CAnimation::CAnimation(const CAnimation& rhs) , m_fTickPerSecond{ rhs.m_fTickPerSecond } , m_pSaveAnim{ rhs.m_pSaveAnim } , m_fAnimSpeed{rhs.m_fAnimSpeed } + ,m_iBoneCount{rhs.m_iBoneCount} { memcpy_s(m_TickPerSeconds, sizeof(_float) * 2, rhs.m_TickPerSeconds, sizeof(_float) * 2); @@ -32,37 +33,36 @@ CAnimation::CAnimation(const CAnimation& rhs) SAFE_ADDREF(pChannel); } } -_bool CAnimation::Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta,CTransform*pTransform) +_bool CAnimation::Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta,CTransform*pTransform, _float m_fAmount) { - //m_fCurrentTrackPosition += m_TickPerSeconds[m_bPause] * fTimeDelta; - m_fCurrentTrackPosition += m_fTickPerSecond * fTimeDelta * m_fAnimSpeed; + _float fProgress = m_fTickPerSecond * fTimeDelta * m_fAnimSpeed; + m_fCurrentTrackPosition += fProgress; + if (m_fCurrentTrackPosition >= m_fDuration) { - m_fCurrentTrackPosition = 0.f; // 루프 if (false == bIsLoop) { + m_fCurrentTrackPosition = 0.f; // 루프 m_fCurrentTrackPosition = m_fDuration; return true; } else { Depart_Animation(); + m_fCurrentTrackPosition = fProgress; + ResetRootMotion(); + ProgressAnimation(Bones, pLocalPosArray, pTransform, m_fAmount); return true; } } - _uint iIndex = {}; - if (m_vBoneTransformationMatrix.size() > 0) - m_vBoneTransformationMatrix.clear(); - for (auto& pChannel : m_Channels) { - pChannel->Update_TransformationMatirx(Bones, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++],pTransform); - m_vBoneTransformationMatrix.push_back(pChannel->Get_BoneTransformationMatrix()); - } + ProgressAnimation(Bones, pLocalPosArray, pTransform, m_fAmount); return false; } void CAnimation::ResetRootMotion() { - for (auto& pChannel : m_Channels) + for (auto& pChannel : m_Channels){ pChannel->ResetRootMotion(); + } } void CAnimation::Depart_Animation() @@ -109,84 +109,135 @@ vector<_int>* CAnimation::Capture_Bones() return &m_DestBones; } - -void CAnimation::InterpAnim(CAnimation* pPreAnim, vector& Bones, float fRatio) +void CAnimation::InterpAnim(CAnimation* pPreAnim, vector& Bones, _float fRatio) { - if (!pPreAnim) return; - if (m_Channels.empty() || pPreAnim->m_Channels.empty()) return; - - size_t CurCount = m_vBoneTransformationMatrix.size(); - size_t PreCount = pPreAnim->m_vBoneTransformationMatrix.size(); - - if (CurCount == 0 || PreCount == 0) + if (!pPreAnim) return; - if (CurCount > PreCount) + if (m_Channels.empty() || pPreAnim->m_Channels.empty()) + return; + + if (Bones.empty()) + return; + + if (fRatio <= 0.f) + fRatio = 0.f; + else if (fRatio >= 1.f) + fRatio = 1.f; + + _uint boneCount = (_uint)Bones.size(); + + vector<_matrix> preBoneMats(boneCount); + vector<_bool> preHasBone(boneCount, false); + + _uint preChannelCount =(_uint)pPreAnim->m_Channels.size(); + _uint preMatCount =(_uint)pPreAnim->m_vBoneTransformationMatrix.size(); + + for (_uint i = 0; i < preChannelCount; ++i) { - pPreAnim->m_vBoneTransformationMatrix.resize(CurCount, XMMatrixIdentity()); - } - else if (CurCount < PreCount) - { - m_vBoneTransformationMatrix.resize(PreCount, XMMatrixIdentity()); + _uint boneIndex = pPreAnim->m_Channels[i]->Get_BoneIndex(); + if (boneIndex < 0 || boneIndex >= boneCount) + continue; + + if (i >= preMatCount) + continue; + + preBoneMats[boneIndex] = pPreAnim->m_vBoneTransformationMatrix[i]; + preHasBone[boneIndex] = true; } - size_t Count = m_vBoneTransformationMatrix.size(); + if (m_vBoneTransformationMatrix.size() < m_Channels.size()) + m_vBoneTransformationMatrix.resize(m_Channels.size(), XMMatrixIdentity()); - unordered_map<_string, int> PreBoneMap; - PreBoneMap.reserve(pPreAnim->m_Channels.size()); + _bool hasSaveAnim = (m_pSaveAnim != nullptr); - for (size_t j = 0; j < pPreAnim->m_Channels.size(); j++) + _uint curChannelCount =(_uint)m_Channels.size(); + _uint curMatCount = (_uint)m_vBoneTransformationMatrix.size(); + + for (_uint i = 0; i < curChannelCount; ++i) { - PreBoneMap[pPreAnim->m_pSaveAnim->Channels[j].ChannelName] = (int)j; - } + _uint boneIndex = m_Channels[i]->Get_BoneIndex(); + if (boneIndex < 0 || boneIndex >= (boneCount)) + continue; - for (size_t i = 0; i < m_Channels.size(); i++) - { - const _string& BoneName = m_pSaveAnim->Channels[i].ChannelName; + if (i >= curMatCount) + continue; - auto iter = PreBoneMap.find(BoneName); - if (iter == PreBoneMap.end()) + _matrix curMat = m_vBoneTransformationMatrix[i]; + + if (!preHasBone[boneIndex] || fRatio <= 0.f) { - _int BoneIndex = m_Channels[i]->Get_BoneIndex(); - if (BoneIndex < Bones.size()) - Bones[BoneIndex]->Set_TransformationMatrix(m_vBoneTransformationMatrix[i]); + Bones[boneIndex]->Set_TransformationMatrix(curMat); continue; } - int PreIndex = iter->second; - - _matrix CurMat = m_vBoneTransformationMatrix[i]; - _matrix PreMat = pPreAnim->m_vBoneTransformationMatrix[PreIndex]; - - _vector CurScale, CurRot, CurPos; - _vector PreScale, PreRot, PrePos; - XMMatrixDecompose(&CurScale, &CurRot, &CurPos, CurMat); - XMMatrixDecompose(&PreScale, &PreRot, &PrePos, PreMat); - - _vector FinalScale = XMVectorLerp(PreScale, CurScale, fRatio); - _vector FinalRot = XMQuaternionSlerp(PreRot, CurRot, fRatio); - _vector FinalPos = XMVectorLerp(PrePos, CurPos, fRatio); - - if (BoneName == "Reference") + if (fRatio >= 1.f) { - //FinalPos = XMVectorZero(); + Bones[boneIndex]->Set_TransformationMatrix(curMat); + continue; } - _matrix FinalMat = XMMatrixAffineTransformation(FinalScale, XMVectorZero(), FinalRot, FinalPos); + _matrix preMat = preBoneMats[boneIndex]; - int BoneIndex = m_Channels[i]->Get_BoneIndex(); - if (BoneIndex < Bones.size()) + _vector curS, curR, curT; + _vector preS, preR, preT; + + XMMatrixDecompose(&curS, &curR, &curT, curMat); + XMMatrixDecompose(&preS, &preR, &preT, preMat); + + _vector finalS = XMVectorLerp(preS, curS, fRatio); + _vector finalR = XMQuaternionSlerp(preR, curR, fRatio); + _vector finalT = XMVectorLerp(preT, curT, fRatio); + + if (hasSaveAnim) { - Bones[BoneIndex]->Set_TransformationMatrix(FinalMat); + _string& boneName = m_pSaveAnim->Channels[i].ChannelName; + if (boneName == "Reference") + { + finalT = XMVectorZero(); + } } - m_vBoneTransformationMatrix[i] = FinalMat; + _matrix finalMat = XMMatrixAffineTransformation(finalS, XMVectorZero(), finalR, finalT); + + Bones[boneIndex]->Set_TransformationMatrix(finalMat); + + m_vBoneTransformationMatrix[i] = finalMat; } + +} + + +void CAnimation::CreateGPUData(ID3D11Device* pDevice) +{ + vector channels; + vector keyframes; + + channels.resize(m_iBoneCount); + + for (auto& pChannel : m_Channels) + { + CHANNEL_DESC desc = pChannel->Fill_GPU_ChannelDesc(); + desc.StartIndex = (_uint)keyframes.size(); + + pChannel->Fill_GPU_Keyframes(keyframes); + + channels[desc.BoneIndex] = desc; + } + + m_iChannelCount = (_uint)channels.size(); + m_iKeyframeCount = (_uint)keyframes.size(); + + CreateKeyFrameBuffer(pDevice, keyframes); + CreateChannelBuffer(pDevice, channels); + } #ifdef EDITOR_PROJECT + + HRESULT CAnimation::Initialize(const vector& Bones, const aiAnimation* pAIAnimation) { m_strName = pAIAnimation->mName.data; @@ -216,20 +267,8 @@ HRESULT CAnimation::Initialize(const vector& Bones, const aiAnimation* p if (FAILED(Combined_Initialize())) { return E_FAIL; } - return S_OK; -} -HRESULT CAnimation::SaveAsBinary(HANDLE hFile, DWORD& dwByte) -{ - size_t iNameLength = m_strName.length(); - WriteFile(hFile, &iNameLength, sizeof(size_t), &dwByte, nullptr); - WriteFile(hFile, m_strName.data(), (DWORD)m_strName.length(), &dwByte, nullptr); - WriteFile(hFile, &m_fDuration, sizeof(_float), &dwByte, nullptr); - WriteFile(hFile, &m_TickPerSeconds, sizeof(_float) * 2, &dwByte, nullptr); - WriteFile(hFile, &m_iNumChannels, sizeof(_uint), &dwByte, nullptr); - for (_uint i = 0; i < m_iNumChannels; ++i) { - m_Channels[i]->SaveAsBinary(hFile, dwByte); - } + return S_OK; } @@ -244,37 +283,7 @@ CAnimation* CAnimation::Create(const vector& Bones, const aiAnimation* p #endif -HRESULT CAnimation::Initialize(HANDLE hFile, DWORD& dwByte) -{ - size_t iNameLength = {}; - if (!ReadFile(hFile, &iNameLength, sizeof(size_t), &dwByte, nullptr)) { - return E_FAIL; - } - m_strName.resize(iNameLength); - if (!ReadFile(hFile, (void*)m_strName.data(), (DWORD)iNameLength, &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_fDuration, sizeof(_float), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_TickPerSeconds, sizeof(_float) * 2, &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumChannels, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - m_CurrentKeyFrameIndices.resize(m_iNumChannels); - m_Channels.reserve(m_iNumChannels); - for (_uint i = 0; i < m_iNumChannels; ++i) { - m_Channels.push_back(CChannel::Create(hFile, dwByte)); - } - if (FAILED(Combined_Initialize())) { - return E_FAIL; - } - return S_OK; -} - -HRESULT CAnimation::Initialize(const CModel* pModel, SaveAnimation* pSaveAnimation) +HRESULT CAnimation::Initialize(const vector& Bones, const CModel* pModel, SaveAnimation* pSaveAnimation) { m_pSaveAnim = pSaveAnimation; @@ -286,6 +295,8 @@ HRESULT CAnimation::Initialize(const CModel* pModel, SaveAnimation* pSaveAnimati m_CurrentKeyFrameIndices.resize(m_iNumChannels); + m_iBoneCount = (_uint)Bones.size(); + for (size_t i = 0; i < m_iNumChannels; i++) { CChannel* pChannel = CChannel::Create(pModel, &pSaveAnimation->Channels[i]); @@ -298,6 +309,18 @@ HRESULT CAnimation::Initialize(const CModel* pModel, SaveAnimation* pSaveAnimati return S_OK; } +void CAnimation::ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount) +{ + _uint iIndex = {}; + if (m_vBoneTransformationMatrix.size() > 0) { + m_vBoneTransformationMatrix.clear(); + } + for (auto& pChannel : m_Channels) { + pChannel->Update_TransformationMatirx(Bones, pLocalPosArray, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex++], pTransform, m_fAmount); + m_vBoneTransformationMatrix.push_back(pChannel->Get_BoneTransformationMatrix()); + } +} + HRESULT CAnimation::Combined_Initialize() { m_StartKeyFrames.reserve(m_iNumChannels); @@ -313,24 +336,69 @@ _uint CAnimation::Get_BoneIndex(const char* pChannelName) return _uint(); } -CAnimation* CAnimation::Create(HANDLE hFile, DWORD& dwByte) +HRESULT CAnimation::CreateKeyFrameBuffer(ID3D11Device* pDevice,vector keyframe) { - CAnimation* pInstance = new CAnimation(); + D3D11_BUFFER_DESC desc{}; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.ByteWidth = (_int)sizeof(KEYFRAME_DESC) * m_iKeyframeCount; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + desc.StructureByteStride = (_int)sizeof(KEYFRAME_DESC); + desc.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED; - if (FAILED(pInstance->Initialize(hFile, dwByte))) - { - MSG_BOX("Failed to Created : CAnimation"); - SAFE_RELEASE(pInstance); - } + D3D11_SUBRESOURCE_DATA init{}; + init.pSysMem = keyframe.data(); - return pInstance; + pDevice->CreateBuffer(&desc, &init, &m_pKeyFrameBuffer); + + + + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc = {}; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + srvDesc.Format = DXGI_FORMAT_UNKNOWN; + srvDesc.Buffer.FirstElement = 0; + srvDesc.Buffer.NumElements = m_iKeyframeCount; + + if (FAILED(pDevice->CreateShaderResourceView(m_pKeyFrameBuffer, &srvDesc, &m_pKeyFrameSrv))) + return E_FAIL; + + + return S_OK; } -CAnimation* CAnimation::Create(const CModel* pModel, SaveAnimation* pSaveAnimation) +HRESULT CAnimation::CreateChannelBuffer(ID3D11Device* pDevice, vector channel) +{ + D3D11_BUFFER_DESC desc{}; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.ByteWidth = (_int)sizeof(CHANNEL_DESC) * m_iChannelCount; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + desc.StructureByteStride = (_int)sizeof(CHANNEL_DESC); + desc.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED; + + D3D11_SUBRESOURCE_DATA init{}; + init.pSysMem = channel.data(); + + pDevice->CreateBuffer(&desc, &init, &m_pChannelBuffer); + + + D3D11_SHADER_RESOURCE_VIEW_DESC srvDesc = {}; + srvDesc.ViewDimension = D3D11_SRV_DIMENSION_BUFFEREX; + srvDesc.Format = DXGI_FORMAT_UNKNOWN; + srvDesc.Buffer.FirstElement = 0; + srvDesc.Buffer.NumElements = m_iChannelCount; + + if (FAILED(pDevice->CreateShaderResourceView(m_pChannelBuffer, &srvDesc, &m_pChannelSrv))) + return E_FAIL; + + return S_OK; +} + +CAnimation* CAnimation::Create(const vector& Bones, const CModel* pModel, SaveAnimation* pSaveAnimation) { CAnimation* pInstance = new CAnimation(); - if (FAILED(pInstance->Initialize(pModel, pSaveAnimation))) + if (FAILED(pInstance->Initialize(Bones,pModel, pSaveAnimation))) { MSG_BOX("Failed to Created : CAnimation"); SAFE_RELEASE(pInstance); @@ -354,11 +422,26 @@ void CAnimation::Free() m_Channels.clear(); m_CurrentKeyFrameIndices.clear(); + + m_KeyFrameDesc.clear(); + m_ChannelDesc.clear(); + + if (m_pKeyFrameSrv&& m_pChannelSrv) + { + SAFE_RELEASE(m_pKeyFrameBuffer); + SAFE_RELEASE(m_pChannelBuffer); + SAFE_RELEASE(m_pKeyFrameSrv); + SAFE_RELEASE(m_pChannelSrv); + } + } -; +#ifdef _DEBUG + void CAnimation::Describe_Entity() { //if (GUI::CollapsingHeader(m_strName.c_str())) { // //} } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Base.cpp b/Jusin154_Team3D/Engine/Private/Base.cpp index 9bae93d12..8d31f70c0 100644 --- a/Jusin154_Team3D/Engine/Private/Base.cpp +++ b/Jusin154_Team3D/Engine/Private/Base.cpp @@ -8,11 +8,36 @@ CBase::CBase() _uint CBase::AddRef() { - return ++m_iRefCnt; + return m_iRefCnt.fetch_add(1, memory_order_relaxed) + 1; // +1 한 이후의 갯수를 출력 } _uint CBase::Release() { + for (;;) + { + _uint iOldRefCount = m_iRefCnt.load(memory_order_acquire); + + if (iOldRefCount == 0u) // -1 할 때 갯수가 0이면 소멸 + { + Free(); + + delete this; + + return 0u; + } + + _uint iNewRefCount = iOldRefCount - 1u; + + if (m_iRefCnt.compare_exchange_weak( + iOldRefCount, + iNewRefCount, + memory_order_acq_rel, + memory_order_acquire)) + { + return iNewRefCount; // -1 한 이후의 갯수를 출력함을 보장 + } + } + if (0 == m_iRefCnt) { Free(); diff --git a/Jusin154_Team3D/Engine/Private/Bone.cpp b/Jusin154_Team3D/Engine/Private/Bone.cpp index 3a621f426..adf046879 100644 --- a/Jusin154_Team3D/Engine/Private/Bone.cpp +++ b/Jusin154_Team3D/Engine/Private/Bone.cpp @@ -5,6 +5,16 @@ CBone::CBone() { } +CBone::CBone(const CBone& other): + CBase() +{ + memcpy_s(m_szName, sizeof(_char) * MAX_PATH, other.m_szName, sizeof(_char) * MAX_PATH); + m_TransformationMatrix = other.m_TransformationMatrix; + m_CombinedTransformationMatrix = other.m_CombinedTransformationMatrix; + m_iParentBoneIndex = other.m_iParentBoneIndex; + m_matInitial = other.m_matInitial; +} + void CBone::Get_KeyFrame(KEYFRAME& kf, _bool bIsCurrentFrame) { _vector vScale = {}; @@ -69,18 +79,6 @@ CBone* CBone::Create(const aiNode* pAINode, _int iParentIndex) return pInstance; } -CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex) -{ - CBone* pInstance = new CBone(); - - if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex))) - { - MSG_BOX("Failed to Created : CBone"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex) { @@ -97,6 +95,18 @@ HRESULT CBone::Initialize(const aiNode* pAINode, _int iParentIndex) } #endif +CBone* CBone::Create(const SaveNode& _SaveNode, _int iParentIndex) +{ + CBone* pInstance = new CBone(); + + if (FAILED(pInstance->Initialize(_SaveNode, iParentIndex))) + { + MSG_BOX("Failed to Created : CBone"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} HRESULT CBone::Initialize(HANDLE hFile, DWORD& dwByte) { diff --git a/Jusin154_Team3D/Engine/Private/Camera.cpp b/Jusin154_Team3D/Engine/Private/Camera.cpp index e809ad4ec..d320b6f3f 100644 --- a/Jusin154_Team3D/Engine/Private/Camera.cpp +++ b/Jusin154_Team3D/Engine/Private/Camera.cpp @@ -33,10 +33,20 @@ HRESULT CCamera::Initialize(void* pArg) m_bActive = false; m_iPriority = pDesc->iPriority; m_pCameraKey = pDesc->pCameraKey; + + m_pFollowTarget = pDesc->pFollowTarget; SAFE_ADDREF(m_pFollowTarget); m_pLookTarget = pDesc->pLookTarget; SAFE_ADDREF(m_pLookTarget); + m_bEnable_TransitionLerp = pDesc->bEnableTransitionLerp; + m_vTransitionTime = pDesc->vTransitionTime; + m_bEnable_FollowLerp = pDesc->bEnableFollowLerp; + m_vLookLerpTime = pDesc->vLookLerpTime; + m_bEnable_LookLerp = pDesc->bEnableLookLerp; + m_vFollowLerpTime = pDesc->vFollowLerpTime; + + return S_OK; } @@ -56,43 +66,41 @@ void CCamera::Transition(_float fTimeDelta) if (false == m_bIsCurrentTransition) { return; } - m_fTransitionCurrentTime += fTimeDelta; - _float fRatio = m_fTransitionCurrentTime / m_fTransitionMaxTime; + m_vTransitionTime.x += fTimeDelta; + _float fRatio = m_vTransitionTime.x / m_vTransitionTime.y; if (fRatio > 1.f) { fRatio = 1.f; m_bIsCurrentTransition = false; } - CTransform* pLookTransform = m_pLookTarget->Get_Component(); _vector vFollowTarget = m_pFollowTarget->Get_Component()->Get_State(STATE::POSITION); - _vector vLookTarget = pLookTransform->Get_State(STATE::POSITION); - _matrix matTarget = XMMatrixInverse(nullptr, XMMatrixLookAtLH(vFollowTarget, vLookTarget, XMVectorSet(0.f, 1.f, 0.f, 0.f))); + _vector vLookTarget = m_pLookTarget->Get_Component()->Get_State(STATE::POSITION); - _vector vTargetScale{}, vTargetRotq{}, vTargetTrans{}, vOriginScale{}, vOriginRotq{}, vOriginTrans{}; - XMMatrixDecompose(&vTargetScale, &vTargetRotq, &vTargetTrans, matTarget); - XMMatrixDecompose(&vOriginScale, &vOriginRotq, &vOriginTrans, m_pTransformCom->Get_XMWorldMatrix()); + _matrix xmMatTarget = XMMatrixInverse(nullptr, XMMatrixLookAtLH(vFollowTarget, vLookTarget, XMVectorSet(0.f, 1.f, 0.f, 0.f))); - vTargetScale = XMVectorLerp(vOriginScale, vTargetScale, fRatio); - vTargetRotq = XMQuaternionSlerp(vOriginRotq, vTargetRotq, fRatio); - vTargetTrans = XMVectorLerp(vOriginTrans, vTargetTrans, fRatio); + _float4x4 matOrigin = *m_pTransformCom->Get_WorldMatrixPtr(); + _float4x4 matTarget = {}; XMStoreFloat4x4(&matTarget, xmMatTarget); + _float4x4 matResult = {}; - m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(vTargetScale, XMVectorZero(), vTargetRotq, vTargetTrans)); + CMyTools::MatrixLerp(&matOrigin, &matTarget, matResult, fRatio); + + m_pTransformCom->Set_WorldMatrix(matResult); } void CCamera::Active_Camera(pair<_float4, _float3>& pairTransitionInfo) { - //if (true == m_bTransitionLerp) { - // m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(XMVectorSplatOne(), XMVectorZero(), - // XMLoadFloat4(&pairTransitionInfo.first), XMLoadFloat3(&pairTransitionInfo.second))); - // m_fTransitionCurrentTime = 0.f; - // m_bIsCurrentTransition = true; - //} + if (true == m_bEnable_TransitionLerp) { + m_pTransformCom->Set_WorldMatrix(XMMatrixAffineTransformation(XMVectorSplatOne(), XMVectorZero(), + XMLoadFloat4(&pairTransitionInfo.first), XMLoadFloat3(&pairTransitionInfo.second))); + m_vTransitionTime.x = 0.f; + m_bIsCurrentTransition = true; + } m_bActive = true; } void CCamera::DeActive_Camera(pair<_float4, _float3>& pairTransition) { - m_bActive = false; + m_bActive = false; m_bIsCurrentTransition = false; _vector vScale{}, vRotq{}, vTrans{}; XMMatrixDecompose(&vScale, &vRotq, &vTrans, m_pTransformCom->Get_XMWorldMatrix()); diff --git a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp index 3d1329dab..37bec7d49 100644 --- a/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Camera_Manager.cpp @@ -66,6 +66,11 @@ HRESULT CCamera_Manager::IsBinded_Camera(const _wstring& wstrCameraKey) return E_FAIL; } +_vector CCamera_Manager::Get_CameraLook() +{ + return m_pCurrentMainCamera->Get_Component()->Get_State(STATE::LOOK); +} + void CCamera_Manager::Force_CamPosition(_fvector vPos) { if (nullptr == m_pCurrentMainCamera) diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index bc1043d15..72496230a 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -60,21 +60,6 @@ HRESULT CChannel::Initialize(const vector& Bones, const aiNodeAnim* pAIC return S_OK; } -HRESULT CChannel::SaveAsBinary(HANDLE hFile, DWORD& dwByte) -{ - string strName = m_szName; - strName.shrink_to_fit(); - DWORD iLength = (DWORD)strName.length(); - WriteFile(hFile, &iLength, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, strName.data(), iLength, &dwByte, nullptr); - WriteFile(hFile, &m_iBoneIndex, sizeof(_int), &dwByte, nullptr); - WriteFile(hFile, &m_iNumKeyFrames, sizeof(_uint), &dwByte, nullptr); - for (auto& keyFrame : m_KeyFrames) { - WriteFile(hFile, &keyFrame, sizeof(KEYFRAME), &dwByte, nullptr); - } - return S_OK; -} - CChannel* CChannel::Create(const vector& Bones, const aiNodeAnim* pAIChannel) { CChannel* pInstance = new CChannel(); @@ -88,6 +73,32 @@ CChannel* CChannel::Create(const vector& Bones, const aiNodeAnim* pAICha #endif +void CChannel::Fill_GPU_Keyframes(vector& outKeyframes) +{ + for (_uint i = 0; i < m_iNumKeyFrames; i++) + { + const KEYFRAME& src = m_KeyFrames[i]; + + KEYFRAME_DESC dst{}; + dst.vScale = src.vScale; + dst.vRotation = src.vRotation; + dst.vTranslation = src.vTranslation; + dst.fTrackPosition = src.fTrackPosition; + + outKeyframes.push_back(dst); + } +} + +CHANNEL_DESC CChannel::Fill_GPU_ChannelDesc() +{ + CHANNEL_DESC desc{}; + desc.StartIndex = 0; + desc.KeyCount = m_iNumKeyFrames; + desc.BoneIndex = m_iBoneIndex; + + return desc; +} + HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex) { m_iBoneIndex = iIndex; @@ -100,17 +111,18 @@ HRESULT CChannel::Initialize(const vector& Bones, _uint iIndex) } -void CChannel::Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex, CTransform* pTransform) - +void CChannel::Update_TransformationMatirx( + const vector& Bones, + const LOCALPOS_DESC* pLocalPosArray, + _float fCurrentTrackPosition, + _uint* pCurrentKeyFrameIndex, + CTransform* pTransform,_float m_fAmount) { - if (0.f == fCurrentTrackPosition) { - *pCurrentKeyFrameIndex = 0; - } - KEYFRAME LastKeyFrame = m_KeyFrames.back(); + KEYFRAME LastKeyFrame = m_KeyFrames.back(); - _vector vScale = {}; - _vector vRotation = {}; - _vector vTranslation = {}; + _vector vScale{}; + _vector vRotation{}; + _vector vTranslation{}; if (fCurrentTrackPosition >= LastKeyFrame.fTrackPosition) { @@ -118,65 +130,77 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, _float f vRotation = XMLoadFloat4(&LastKeyFrame.vRotation); vTranslation = XMVectorSetW(XMLoadFloat3(&LastKeyFrame.vTranslation), 1.f); } - else { - while (fCurrentTrackPosition >= m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition) { + + else + { + while (fCurrentTrackPosition >= m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition){ ++*pCurrentKeyFrameIndex; } - _float3 vSrcScale = {}, vDstScale = {}; - _float4 vSrcRotation = {}, vDstRotation = {}; - _float3 vSrcTranslation = {}, vDstTranslation = {}; + _float3 vSourScale{}, vDestScale{}; + _float4 vSourRotation{}, vDestRotation{}; + _float3 vSourTranslation{}, vDestTranslation{}; - vSrcScale = m_KeyFrames[*pCurrentKeyFrameIndex].vScale; - vDstScale = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vScale; + vSourScale = m_KeyFrames[*pCurrentKeyFrameIndex].vScale; + vDestScale = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vScale; - vSrcRotation = m_KeyFrames[*pCurrentKeyFrameIndex].vRotation; - vDstRotation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vRotation; + vSourRotation = m_KeyFrames[*pCurrentKeyFrameIndex].vRotation; + vDestRotation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vRotation; - vSrcTranslation = m_KeyFrames[*pCurrentKeyFrameIndex].vTranslation; - vDstTranslation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vTranslation; + vSourTranslation = m_KeyFrames[*pCurrentKeyFrameIndex].vTranslation; + vDestTranslation = m_KeyFrames[*pCurrentKeyFrameIndex + 1].vTranslation; - _float fRatio = (fCurrentTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition) / + _float fRatio = (fCurrentTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition) / (m_KeyFrames[*pCurrentKeyFrameIndex + 1].fTrackPosition - m_KeyFrames[*pCurrentKeyFrameIndex].fTrackPosition); - vScale = XMVectorLerp(XMLoadFloat3(&vSrcScale), XMLoadFloat3(&vDstScale), fRatio); - vRotation = XMQuaternionSlerp(XMLoadFloat4(&vSrcRotation), XMLoadFloat4(&vDstRotation), fRatio); - vTranslation = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&vSrcTranslation), XMLoadFloat3(&vDstTranslation), fRatio), 1.f); + vScale = XMVectorLerp(XMLoadFloat3(&vSourScale), XMLoadFloat3(&vDestScale), fRatio); + vRotation = XMQuaternionSlerp(XMLoadFloat4(&vSourRotation), XMLoadFloat4(&vDestRotation), fRatio); + vTranslation = XMVectorSetW(XMVectorLerp(XMLoadFloat3(&vSourTranslation), XMLoadFloat3(&vDestTranslation), fRatio), 1.f); } - + + + //const LOCALPOS_DESC& LocalPos = pLocalPosArray[m_iBoneIndex]; + + //_vector vScale = XMLoadFloat3(&LocalPos.Scale); + //_vector vRotation = XMLoadFloat4(&LocalPos.Rotation); + //_vector vTranslation = XMVectorSet( + // LocalPos.Translation.x, + // LocalPos.Translation.y, + // LocalPos.Translation.z, + // 1.f); + if (Bones[m_iBoneIndex]->Compare_Name("Reference") && pTransform != nullptr) { + GUI::Text("fCurrentTrackPosition : %f", fCurrentTrackPosition); _float3 vCurRootPos; XMStoreFloat3(&vCurRootPos, vTranslation); - _vector vDeltaLocal = XMLoadFloat3(&vCurRootPos) - XMLoadFloat3(&m_vPrevRootPos); + _matrix pre = XMLoadFloat4x4(&m_PreTransformMatrix); + + _vector vDeltaLocal = XMLoadFloat3(&vCurRootPos) - XMLoadFloat3(&m_vPrevRootPos); + _vector vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre); - _vector vDeltaAdjusted = {}; + _vector vRight = pTransform->Get_State(STATE::RIGHT); + _vector vUp = pTransform->Get_State(STATE::UP); + _vector vLook = pTransform->Get_State(STATE::LOOK); - XMMATRIX pre = XMLoadFloat4x4(&m_PreTransformMatrix); - vDeltaAdjusted = XMVector3TransformNormal(vDeltaLocal, pre); + _float dx = XMVectorGetX(vDeltaAdjusted); + _float dy = XMVectorGetY(vDeltaAdjusted); + _float dz = XMVectorGetZ(vDeltaAdjusted); - _vector vRight = pTransform->Get_State(STATE::RIGHT); - _vector vUp = pTransform->Get_State(STATE::UP); - _vector vLook = pTransform->Get_State(STATE::LOOK); + _vector vDeltaWorld = vRight * dx + (vUp * dz) + (-vLook * dy); + if (fabsf(dx) < FLT_EPSILON3 && fabsf(dy) < FLT_EPSILON3 && fabsf(dz) < FLT_EPSILON3) { + int a = 0; + } + vDeltaWorld *= 0.01f; + vDeltaWorld *= m_fAmount; - _float dx = XMVectorGetX(vDeltaAdjusted); - _float dy = XMVectorGetY(vDeltaAdjusted); - _float dz = XMVectorGetZ(vDeltaAdjusted); + vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f); + //pTransform->Set_State(STATE::POSITION,vDeltaWorld); + pTransform->AccumulateMomentum(vDeltaWorld); - _vector vDeltaWorld = vRight * dx + (-vUp * dz) + vLook * dy; - - vDeltaWorld *= 0.01f; - - _vector vCurrentPos = pTransform->Get_State(STATE::POSITION); - _vector vTargetPos = vCurrentPos + vDeltaWorld; - - pTransform->Set_State(STATE::POSITION, vTargetPos); - - m_vPrevRootPos = vCurRootPos; - vTranslation = XMVectorZero(); - - ///////////////////////////////////// + m_vPrevRootPos = vCurRootPos; + vTranslation = XMVectorZero(); _float4 curRotF4; XMStoreFloat4(&curRotF4, vRotation); @@ -191,12 +215,11 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, _float f else { _vector qPrev = XMLoadFloat4(&m_vPrevRootRot); - _vector qInvPrev = XMQuaternionInverse(qPrev); _vector qDelta = XMQuaternionMultiply(qInvPrev, qCur); _vector axisLocal; - _float angle = 0.f; + _float angle = 0.f; XMQuaternionToAxisAngle(&axisLocal, &angle, qDelta); _vector axisWorld = XMVector3TransformNormal(axisLocal, pre); @@ -208,19 +231,30 @@ void CChannel::Update_TransformationMatirx(const vector& Bones, _float f if (angle > 0 ) - pTransform->TurnAngle(XMLoadFloat4(&axis), -angle); + pTransform->TurnAngle(XMLoadFloat4(&axis), angle); } XMStoreFloat4(&m_vPrevRootRot, qCur); - vRotation = XMLoadFloat4(&m_vInitialRootRot); } - m_BoneTransformationMatrix = XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation); + m_BoneTransformationMatrix = + XMMatrixAffineTransformation(vScale, XMVectorSet(0.f, 0.f, 0.f, 1.f), vRotation, vTranslation); Bones[m_iBoneIndex]->Set_TransformationMatrix(m_BoneTransformationMatrix); } +void CChannel::ResetRootMotion() +{ + m_vPrevRootPos = { 0.f, 0.f, 0.f }; + m_vPrevRootRot = { 0.f,0.f,0.f,0.f }; + m_bInitialRootRotSaved = false; + m_bInitialRootPos = false; +} + + + + KEYFRAME* CChannel::Get_Frame(_uint iIndex) { return &m_KeyFrames[iIndex]; @@ -300,38 +334,13 @@ HRESULT CChannel::Initialize(const CModel* pModel, SaveChannel* pSaveChannel) KeyFrame.vRotation = vRotation; KeyFrame.vTranslation = vTranslation; + m_KeyFrames.push_back(KeyFrame); } return S_OK; } -CChannel* CChannel::Create(const vector& Bones, _uint iIndex) -{ - CChannel* pInstance = new CChannel(); - - if (FAILED(pInstance->Initialize(Bones, iIndex))) - { - MSG_BOX("Failed to Created : CChannel"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - -CChannel* CChannel::Create(HANDLE hFile, DWORD& dwByte) -{ - CChannel* pInstance = new CChannel(); - - if (FAILED(pInstance->Initialize(hFile, dwByte))) - { - MSG_BOX("Failed to Created : CChannel"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - CChannel* CChannel::Create(const CModel* pModel, SaveChannel* pSaveChannel) { CChannel* pInstance = new CChannel(); @@ -350,4 +359,6 @@ void CChannel::Free() __super::Free(); m_KeyFrames.clear(); + + m_KeyFrameDesc.clear(); } diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp index 223e115b0..9a9a2c363 100644 --- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp +++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp @@ -23,7 +23,7 @@ HRESULT CCharacter_Controller::Render() _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW); _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ); - _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f); + _vector vColor = DirectX::Colors::GhostWhite; switch (m_eBodyType) { @@ -58,7 +58,7 @@ HRESULT CCharacter_Controller::Render() } return S_OK; } - +#endif // _DEBUG PSX::PxRigidDynamic* CCharacter_Controller::Get_Actor() { return m_pController->getActor(); @@ -69,8 +69,6 @@ PSX::PxController* CCharacter_Controller::Get_Controller() return m_pController; } -#endif // _DEBUG - void CCharacter_Controller::Resize_Volume(_float fHeight) { m_pController->resize(fHeight); @@ -160,14 +158,13 @@ void CCharacter_Controller::Move(_float fTimeDelta) PSX::PxControllerFilters pxFilter = {}; // 충돌 대상 필터 const PSX::PxObstacleContext* pPxObstacles = { nullptr }; // 캐릭터가 충돌해야할 추가적인 장애물 객체?, 닿은 장애물은 캐시된다? + if (true == m_bGravity) { + m_pTransform->AccumulateMomentum(XMVectorSet(0.f, -GRAVITY * fTimeDelta, 0.f, 0.f)); + } XMStoreFloat3((_float3*)&pxVecMomentum, m_pTransform->Get_CurrentMomentum()); m_eBeforeCollisionFlags = m_pController->move(pxVecMomentum, fMinimumDistant, fTimeDelta, pxFilter, pPxObstacles); - //PSX::PxUserControllerHitReport* pHitCallBack = { nullptr }; - //PSX::PxControllerShapeHit ShapeHit = {}; - //ShapeHit. - //pHitCallBack->onShapeHit(); } void CCharacter_Controller::Set_Position(_fvector vNewPos) @@ -319,9 +316,12 @@ CComponent* CCharacter_Controller::Clone(void* pArg, class CGameObject* pOwner) void CCharacter_Controller::Free() { + if (nullptr != m_pController) { + m_pController->release(); + } __super::Free(); } - +#ifdef _DEBUG void CCharacter_Controller::Describe_Entity() { GUI::Begin("Character_Controller"); @@ -378,3 +378,5 @@ void CCharacter_Controller::Describe_Entity() GUI::End(); } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Collider.cpp b/Jusin154_Team3D/Engine/Private/Collider.cpp index 139cca0e4..dbf5ffd5f 100644 --- a/Jusin154_Team3D/Engine/Private/Collider.cpp +++ b/Jusin154_Team3D/Engine/Private/Collider.cpp @@ -165,7 +165,9 @@ void CCollider::Free() SAFE_RELEASE(m_pBounding); } +#ifdef _DEBUG void CCollider::Describe_Entity() { } +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp index e1660bda6..d4e668c26 100644 --- a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp +++ b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp @@ -83,7 +83,6 @@ vector CComputeShader::Dispatch(_uint iSRVIndex, _uint if (SUCCEEDED(m_pContext->Map(m_pOutputStagingBuffer[i], 0, D3D11_MAP_READ, 0, &StagingSubResource))) { - StagingSubResources.push_back(StagingSubResource); m_pContext->Unmap(m_pOutputStagingBuffer[i], 0); @@ -113,10 +112,41 @@ void CComputeShader::Bind_OutPut_SRV(_uint iIndex, _uint iBufferIndex) { m_pContext->PSSetShaderResources(iIndex, // 시작슬롯 번호 1, // 버퍼 개수 - &m_pOutputSRV[iBufferIndex]); // 버퍼 시작 주소 + &m_pOutputSRV[iBufferIndex]); // 버퍼 시작 주 } +ID3D11UnorderedAccessView* CComputeShader::GetOutputUAV(_uint iIndex) const +{ + return m_pOutputUAV[iIndex]; +} + +vector CComputeShader::ReadBackOutputs() +{ + std::vector StagingSubResources; + StagingSubResources.reserve(m_iNumOutputBuffer); + + for (_uint i = 0; i < m_iNumOutputBuffer; ++i) + { + if (m_pOutputStagingBuffer[i] == nullptr || m_pOutputBuffer[i] == nullptr) + continue; + + m_pContext->CopyResource(m_pOutputStagingBuffer[i], m_pOutputBuffer[i]); + + D3D11_MAPPED_SUBRESOURCE mapped = {}; + if (SUCCEEDED(m_pContext->Map(m_pOutputStagingBuffer[i], 0, + D3D11_MAP_READ, 0, &mapped))) + { + StagingSubResources.push_back(mapped); + + m_pContext->Unmap(m_pOutputStagingBuffer[i], 0); + } + } + + return StagingSubResources; + +} + void CComputeShader::Reset() { //다음 랜더링 패스에 연관되지 않도록 초기화 @@ -320,7 +350,7 @@ CComputeShader* CComputeShader::Create(ID3D11Device* pDevice, ID3D11DeviceContex { CComputeShader* pInstance = new CComputeShader(pDevice, pContext); - if (FAILED(pInstance->Initialize(pShaderFilePath, pStartFunctionName, iNumElement, iNumInputBuffer, iNumOutputBuffer, iOutputStructStride, iInputStructStride))) + if (FAILED(pInstance->Initialize(pShaderFilePath, pStartFunctionName, iNumElement, iNumInputBuffer, iNumOutputBuffer, iInputStructStride, iOutputStructStride))) { MSG_BOX("Failed to Created : CComputeShader Prototype"); SAFE_RELEASE(pInstance); diff --git a/Jusin154_Team3D/Engine/Private/ElementObject.cpp b/Jusin154_Team3D/Engine/Private/ElementObject.cpp index ccb3036bd..bab8ba454 100644 --- a/Jusin154_Team3D/Engine/Private/ElementObject.cpp +++ b/Jusin154_Team3D/Engine/Private/ElementObject.cpp @@ -43,7 +43,6 @@ void CElementObject::Update(_float fTimeDelta) m_fSortZ, 1.f)); m_fCurrent_Position = XMVectorSet(m_fX, m_fY, 0.f, 1.f); - m_vNine_Slice = _float4(m_fLeft, m_fRight, m_fTop, m_fBottom); m_vLerp_Position = XMVectorSet(m_fLerpX, m_fLerpY, 0.f, 1.f); } @@ -85,45 +84,45 @@ _bool CElementObject::Chack_Visible() void CElementObject::Nine_Slice_Left(_float X) { - m_fLeft = X; + m_vNine_Slice.x = X; } void CElementObject::Nine_Slice_Right(_float Y) { - m_fRight = Y; + m_vNine_Slice.y = Y; } void CElementObject::Nine_Slice_Top(_float Z) { - m_fTop = Z; + m_vNine_Slice.z = Z; } void CElementObject::Nine_Slice_Bottom(_float W) { - m_fBottom = W; + m_vNine_Slice.w = W; } _float CElementObject::Get_Nine_Slice_Left() { - return m_fLeft; + return m_vNine_Slice.x; } _float CElementObject::Get_Nine_Slice_Right() { - return m_fRight; + return m_vNine_Slice.y; } _float CElementObject::Get_Nine_Slice_Top() { - return m_fTop; + return m_vNine_Slice.z; } _float CElementObject::Get_Nine_Slice_Bottom() { - return m_fBottom; + return m_vNine_Slice.w; } -void CElementObject::Start_Lerp(_float fTimeDelta, _bool Alpha) +void CElementObject::Start_Lerp(_float fTimeDelta) { _vector Pos = m_fCurrent_Position; @@ -150,7 +149,7 @@ void CElementObject::Start_Lerp(_float fTimeDelta, _bool Alpha) } } -void CElementObject::Reset_Pos(_float fTimeDelta, _bool Alpha) +void CElementObject::Reset_Pos(_float fTimeDelta) { _vector Pos = m_fCurrent_Position; @@ -166,7 +165,7 @@ void CElementObject::Reset_Pos(_float fTimeDelta, _bool Alpha) { m_fX = m_fOrigin_Position.x; m_fY = m_fOrigin_Position.y; - m_bLerpOn = false; + m_bLerpOff = false; } else @@ -177,6 +176,14 @@ void CElementObject::Reset_Pos(_float fTimeDelta, _bool Alpha) } } +void CElementObject::Start_Size_Lerp(_float fTimeDelta) +{ +} + +void CElementObject::Reset_Size_Lerp(_float fTimeDelta) +{ +} + _vector CElementObject::Get_Lerp_Pos() { return m_vLerp_Position; diff --git a/Jusin154_Team3D/Engine/Private/FSM.cpp b/Jusin154_Team3D/Engine/Private/FSM.cpp index f09d5d689..9681f1f97 100644 --- a/Jusin154_Team3D/Engine/Private/FSM.cpp +++ b/Jusin154_Team3D/Engine/Private/FSM.cpp @@ -5,15 +5,24 @@ CFSM::CFSM(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CComponent(pDevice, pContext) { - m_States.resize(FSMSTATE::END); } CFSM::CFSM(const CFSM& rhs) - : CComponent(rhs), - m_States(rhs.m_States) + : CComponent(rhs) { } +HRESULT CFSM::Bind_States(FSM_DESC& Desc) +{ + if (nullptr != m_pStateMask) { + return E_FAIL; + } + + m_pStateMask = Desc.pStateMask; + m_pStates = Desc.pStates; + return S_OK; +} + HRESULT CFSM::Initialize_Prototype() { return S_OK; @@ -24,65 +33,33 @@ HRESULT CFSM::Initialize(void* pArg) return S_OK; } -void CFSM::Add_State(_uint iIndex, CState* state) +void CFSM::Change_State(size_t iStateMask) { - m_States[iIndex] = state; - m_States[iIndex]->Set_State(iIndex); - m_States[iIndex]->Set_Owner(m_pOwner); - m_States[iIndex]->Set_Component(); + if (nullptr != m_pCurrentState) { // 현재 스테이트가 비워져 있으면 우회 + if (IsEnable(iStateMask)) { // 이미 활성화 된 스테이트면 리턴 + return; + } + m_iPreviousStateMask = *m_pStateMask; + + m_pCurrentState->Exit(); + SAFE_RELEASE(m_pPreviousState); // Prev State 를 지움 + m_pPreviousState = m_pCurrentState; + } + + m_pCurrentState = m_pStates->at(iStateMask); + SAFE_ADDREF(m_pCurrentState); + m_pCurrentState->Enter(); } -void CFSM::Change_State(_uint iIndex) +HRESULT CFSM::Update_State(_float fTimeDelta) { - m_pPrevious = m_pCurrent; - - if (m_pCurrent) - m_pCurrent->Exit(); - - m_pCurrent = m_States[iIndex]; - - if (m_pCurrent) - m_pCurrent->Enter(); -} - -void CFSM::Update(_float fTimeDelta) -{ - vector States; - - CState* pCurrent = m_pCurrent; - - while (pCurrent) + if (nullptr != m_pCurrentState) { - States.push_back(pCurrent); - pCurrent = pCurrent->Get_Parent(); - } - - for (_int i = (_int)States.size() - 1; i >= 0; --i) { - States[i]->Update(fTimeDelta); + return m_pCurrentState->Update(fTimeDelta); } + return S_OK; } -_uint CFSM::Get_CurrState() -{ - return m_pCurrent->Get_State(); -} - -_uint CFSM::Get_PrevState() -{ - if (m_pPrevious) - return m_pPrevious->Get_State(); - return 0; -} - -void CFSM::Set_Parent(FSMSTATE::ESTATE Child, FSMSTATE::ESTATE Parent) -{ - CState* pChild = m_States[Child]; - CState* pParent = m_States[Parent]; - if (pChild && pParent) - pChild->Set_Parent(pParent); -} - - CFSM* CFSM::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CFSM* pInstance = new CFSM(pDevice, pContext); @@ -96,7 +73,7 @@ CFSM* CFSM::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) return pInstance; } -CComponent* CFSM::Clone(void* pArg, class CGameObject* pOwner) +CFSM* CFSM::Clone(void* pArg, class CGameObject* pOwner) { CFSM* pInstance = new CFSM(*this); pInstance->m_pOwner = pOwner; @@ -113,15 +90,18 @@ void CFSM::Free() { __super::Free(); - SAFE_RELEASE(m_pCurrent); - SAFE_RELEASE(m_pPrevious); + SAFE_RELEASE(m_pCurrentState); + SAFE_RELEASE(m_pPreviousState); - for (auto& states : m_States) - { - SAFE_RELEASE(states); + if (nullptr != m_pStates) { + unordered_map::iterator iter = m_pStates->begin(); + for (; iter != m_pStates->end(); ++iter) { + SAFE_RELEASE(iter->second); + } + m_pStates = nullptr; } - m_States.clear(); } +#ifdef _DEBUG void CFSM::Describe_Entity() { @@ -129,3 +109,4 @@ void CFSM::Describe_Entity() +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp index b37b1ba2f..07f79843a 100644 --- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp +++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp @@ -16,6 +16,7 @@ #include "Collider_Manager.h" #include "Picking.h" #include "PhysX_Manager.h" +#include "ThreadHolder.h" IMPLEMENT_SINGLETON(CGameInstance) @@ -47,6 +48,10 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De } } } + m_pThreadHolder = CThreadHolder::Create(4); + if (nullptr == m_pThreadHolder) { + return E_FAIL; + } m_pObject_Manager = CGameObject_Manager::Create(EngineDesc.iNumLevels); if (nullptr == m_pObject_Manager) { return E_FAIL; @@ -104,7 +109,20 @@ void CGameInstance::Update_Engine(_float fTimeDelta) m_pMouse_Manager->Update(); //m_pSound_Manager->Update(); +#ifdef _DEBUG + + +#ifdef 기무리 + static _bool bPicking = false; + GUI::Checkbox("Picking Enable", &bPicking); + if (bPicking) { + m_pPicking->Update(); + } +#endif // 기무리 +#endif // _DEBUG +#ifndef 기무리 m_pPicking->Update(); +#endif // !기무리 m_pObject_Manager->Priority_Update(fTimeDelta); @@ -112,11 +130,13 @@ void CGameInstance::Update_Engine(_float fTimeDelta) m_pObject_Manager->Update(fTimeDelta); + m_pPhysX_Manager->Update(fTimeDelta); + m_pObject_Manager->Late_Update(fTimeDelta); m_pLevel_Manager->Update(fTimeDelta); m_pObject_Manager->Clear_DeadObj(); - m_pPhysX_Manager->Update(fTimeDelta); + //m_pObstacle_Manager->Refresh_Region(); } @@ -140,7 +160,6 @@ void CGameInstance::Clear_Resources(_uint iLevelIndex) m_pCamera_Manager->Clear_Cameras(iLevelIndex); m_pObject_Manager->Clear(iLevelIndex); m_pLight_Manager->Light_Clear(iLevelIndex); - } _float CGameInstance::Random_Normal() @@ -184,6 +203,8 @@ void CGameInstance::BillBoard(CTransform* pTransform) } +#ifdef EDITOR_PROJECT + void CGameInstance::Save_ModelFilePath(const _char* FilePath) { @@ -213,6 +234,7 @@ size_t CGameInstance::ModelFilePathCount() return m_FilePaths.size(); } +#endif // EDITOR_PROJECT void CGameInstance::Render_Begin(const _float4* pClearColor) { m_pGraphic_Device->Clear_BackBuffer_View(pClearColor); @@ -235,6 +257,11 @@ HRESULT CGameInstance::Bind_DepthStencil(CShader* pShader, const _char* pContant return m_pGraphic_Device->Bind_DepthStencil(pShader , pContantName); } +void CGameInstance::Get_BackBufferPTR(ID3D11Texture2D** pTexture2D) +{ + m_pGraphic_Device->Get_BackBufferPTR(pTexture2D); +} + _float CGameInstance::Get_TimeDelta(const _wstring& strTimerTag) { return m_pTimer_Manager->Get_TimeDelta(strTimerTag); @@ -302,7 +329,7 @@ void CGameInstance::Present_TimeCost() const GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x); GUI::Text("Timer_Occupancy %d", int(m_fTimer_Present / fTotal * 100.f)); } - GUI::Text("GameInstance RefCNT : %d", m_iRefCnt); + GUI::Text("GameInstance RefCNT : %d", m_iRefCnt.load()); static float values[60] = {}; static int values_offset = 0; static double refresh_time = 0.0; @@ -523,7 +550,23 @@ HRESULT CGameInstance::Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Tex { return m_pRenderTarget_Manager->Copy_RenderTarget(strTargetTag, pTexture2D); } - +HRESULT CGameInstance::Paste_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D) +{ + return m_pRenderTarget_Manager->Paste_RenderTarget(strTargetTag, pTexture2D); +} +HRESULT CGameInstance::Accumulate_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTarget_SrcA, const _wstring& wstrRenderTarget_SrcB, const _wstring& wstrRenderTarget_Target, SHADER_PASS_DEFERRED ePass) +{ + return m_pRenderTarget_Manager->Accumulate_RenderTarget(pVIBuffer, pShader, wstrRenderTarget_SrcA, wstrRenderTarget_SrcB, wstrRenderTarget_Target, ePass); +} +HRESULT CGameInstance::Refit_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput, SHADER_PASS_DEFERRED ePass) +{ + return m_pRenderTarget_Manager->Refit_RenderTarget(pVIBuffer, pShader, wstrRenderTargetInput, wstrRenderTargetOutput, ePass); +} +HRESULT CGameInstance::Finish_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTargetOriginal, const _wstring& wstrRenderTargetBloomed, SHADER_PASS_DEFERRED ePass) +{ + return m_pRenderTarget_Manager->Finish_RenderTarget(pVIBuffer, pShader, wstrRenderTargetOriginal, wstrRenderTargetBloomed, ePass); +} +#ifdef _DEBUG void CGameInstance::RenderTarget_Debuger() { m_pRenderTarget_Manager->RenderTarget_Debuger(); @@ -533,6 +576,7 @@ HRESULT CGameInstance::Render_RenderTarget_Debug(CShader* pShader, CVIBuffer_Rec { return m_pRenderTarget_Manager->Render_RenderTarget_Debug(pShader, pVIBuffer); } +#endif // _DEBUG HRESULT CGameInstance::Clear_Cameras(_uint iLevel) { return m_pCamera_Manager->Clear_Cameras(iLevel); @@ -553,6 +597,10 @@ HRESULT CGameInstance::IsBinded_Camera(const _wstring& strCameraKey) { return m_pCamera_Manager->IsBinded_Camera(strCameraKey); } +_vector CGameInstance::Get_CameraLook() +{ + return m_pCamera_Manager->Get_CameraLook(); +} const _float* CGameInstance::Get_CurrentCameraFar() { return m_pCamera_Manager->Get_CurrentCameraFar(); @@ -587,7 +635,19 @@ _bool CGameInstance::SaveAssimpModel(const _char* filename) auto iter = m_ModelMap.find(filename); return iter->second->SaveAssimpModel(filename); } +void CGameInstance::Add_ModelToMap(const _char* filePath, CModel* pModel) +{ + m_ModelMap[filePath] = pModel; +} + + #endif + +void CGameInstance::Add_SaveModel(const _char* filePath, SaveModel sModel) +{ + m_sModelMap[filePath] = sModel; +} + SaveModel* CGameInstance::Load_SaveModel(const _char* filePath) { auto iter = m_sModelMap.find(filePath); @@ -645,6 +705,7 @@ void CGameInstance::Release_Actor(PSX::PxActor& Actor) { m_pPhysX_Manager->Detach_Actor(Actor); } +#ifdef EDITOR_PROJECT HRESULT CGameInstance::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix) { return m_pPhysX_Manager->ConvertToTriMeshes(Meshes, pxTriMeshes, WorldMatrix); @@ -653,6 +714,8 @@ HRESULT CGameInstance::SaveTriMeshes(const _char* pPath, vectorSaveTriMeshes(pPath, TriMeshes); } +#endif // EDITOR_PROJECT + HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector& TriMeshes) { return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes); @@ -764,6 +827,8 @@ _bool CGameInstance::Toggle_MouseCenter() void CGameInstance::Release_Engine() { + SAFE_RELEASE(m_pThreadHolder); + DestroyInstance(); SAFE_RELEASE(m_pPicking); diff --git a/Jusin154_Team3D/Engine/Private/GameObject.cpp b/Jusin154_Team3D/Engine/Private/GameObject.cpp index 0415223fd..0c5d52f2f 100644 --- a/Jusin154_Team3D/Engine/Private/GameObject.cpp +++ b/Jusin154_Team3D/Engine/Private/GameObject.cpp @@ -53,7 +53,7 @@ void CGameObject::Late_Update(_float fTimeDelta) { } -void CGameObject::OnCollision(CGameObject* pOther) +void CGameObject::OnCollision(CGameObject* pOther , void* pDesc) { } void CGameObject::OnHit(CGameObject* pOther, CGameObject* pCaller) diff --git a/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp b/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp index 0ceedfeb9..742a06925 100644 --- a/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/GameObject_Manager.cpp @@ -39,8 +39,8 @@ HRESULT CGameObject_Manager::Add_GameObject_ToLayer(_uint iLayerLevelIndex, cons void CGameObject_Manager::Priority_Update(_float fTimeDelta) { - Describe_Entity(); #ifdef _DEBUG + Describe_Entity(); m_pGameInstance->Compute_TimeDelta(TEXT("Timer_PriorityUpdate")); #endif // _DEBUG for (size_t i = 0; i < m_iNumLevels; i++) diff --git a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp index 6364a0419..7bca5fe38 100644 --- a/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp +++ b/Jusin154_Team3D/Engine/Private/Graphic_Device.cpp @@ -84,6 +84,11 @@ HRESULT CGraphic_Device::Present() return m_pSwapChain->Present(0, 0); } +void CGraphic_Device::Get_BackBufferPTR(ID3D11Texture2D** pTexture2D) +{ + m_pSwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)pTexture2D); +} + HRESULT CGraphic_Device::Bind_DepthStencil(CShader* pShader, const _char* pContantName) { if (FAILED(pShader->Bind_SRV(pContantName, m_pDepthStencilSRV))) diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index ec9722a80..53fc5f216 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -5,6 +5,7 @@ #include "GameInstance.h" #include "ComputeShader.h" #include "Bone.h" +#include "GameObject.h" CInstance_Model::CInstance_Model(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CComponent{ pDevice , pContext } @@ -18,6 +19,7 @@ CInstance_Model::CInstance_Model(const CInstance_Model& rhs) , m_iNumBuffer{ rhs.m_iNumBuffer } , m_iNumMeshes{ rhs.m_iNumMeshes } , m_Meshes{ rhs.m_Meshes } + , m_PreTransformMatrix{ rhs.m_PreTransformMatrix } { for (auto& pMesh : m_Meshes) { SAFE_ADDREF(pMesh); @@ -25,7 +27,9 @@ CInstance_Model::CInstance_Model(const CInstance_Model& rhs) SAFE_ADDREF(m_pVBInstance); } + #ifdef EDITOR_PROJECT + HRESULT CInstance_Model::Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) { if (FAILED(__super::Initialize_Prototype())) @@ -33,39 +37,117 @@ HRESULT CInstance_Model::Initialize_Prototype(const _char* pModelFilePath, MODEL m_iNumBuffer = 2; - if (FAILED(Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, iRootBoneIndex))) + XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); + + m_eType = eType; + _char szTextureFileName[MAX_PATH] = {}; + _char szDir[MAX_PATH] = {}; + _char szName[MAX_PATH] = {}; + _char szEXT[MAX_PATH] = {}; + + _splitpath_s(pModelFilePath, nullptr, 0, szDir, MAX_PATH, szName, MAX_PATH, szEXT, MAX_PATH); + + + if (strcmp(".bin", szEXT) == 0) + { + LoadData(pModelFilePath); + } + else if (strcmp(".fbx", szEXT) == 0) + { + _char Temp[256]; + strcpy_s(Temp, szDir); + strcat_s(Temp, szName); + strcat_s(Temp, ".bin"); + + if (FAILED(Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, 0))) { + return E_FAIL; + } + + SaveAssimpModel(Temp , m_pAIScene); + return S_OK; + } +#pragma region Mesh + if (FAILED(Ready_Meshes())) { return E_FAIL; + } + +#pragma endregion return S_OK; } -HRESULT CInstance_Model::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) +#endif + +#ifndef EDITOR_PROJECT + +HRESULT CInstance_Model::Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) { + if (FAILED(__super::Initialize_Prototype())) + return E_FAIL; - _uint iFlag = {}; - iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast; + m_iNumBuffer = 2; - if (MODEL::NONANIM == eType) { - iFlag |= aiProcess_PreTransformVertices; + XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); + + m_eType = eType; + _char szTextureFileName[MAX_PATH] = {}; + _char szDir[MAX_PATH] = {}; + _char szName[MAX_PATH] = {}; + _char szEXT[MAX_PATH] = {}; + + _splitpath_s(pModelFilePath, nullptr, 0, szDir, MAX_PATH, szName, MAX_PATH, szEXT, MAX_PATH); + + + if (strcmp(".bin", szEXT) == 0) + { + LoadData(pModelFilePath); } - m_iRootBoneIndex = iRootBoneIndex; - - Assimp::Importer Importer = {}; - const aiScene* pAIScene = { nullptr }; - - pAIScene = Importer.ReadFile(pModelFilePath, iFlag); - if (nullptr == pAIScene) { + else { return E_FAIL; } - #pragma region Mesh - if (FAILED(Ready_Meshes(eType, pAIScene, PreTransformMatrix))) { + if (FAILED(Ready_Meshes())) { return E_FAIL; } + #pragma endregion return S_OK; } +#endif + +#ifdef EDITOR_PROJECT +HRESULT CInstance_Model::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) +{ + _uint iFlag = {}; + iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast; + + if (MODEL::NONANIM == eType || MODEL::ENVIROMENT == eType) { + iFlag |= aiProcess_PreTransformVertices; + } + m_iRootBoneIndex = iRootBoneIndex; + + m_pAIScene = { nullptr }; + + + m_pAIScene = m_Importer.ReadFile(pModelFilePath, iFlag); + + if (nullptr == m_pAIScene) + return E_FAIL; + + + +#pragma region Mesh + if (FAILED(Ready_Meshes(eType, m_pAIScene, PreTransformMatrix))) { + return E_FAIL; + } + + return S_OK; +#pragma endregion +} +#endif + +#ifdef EDITOR_PROJECT HRESULT CInstance_Model::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix) { XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); @@ -76,18 +158,154 @@ HRESULT CInstance_Model::Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fma for (size_t i = 0; i < m_iNumMeshes; ++i) { CMesh* pMesh = CMesh::Create(m_pDevice, m_pContext, eType, m_Bones, pAIScene->mMeshes[i], PreTransformMatrix); - if (nullptr == pMesh) { return E_FAIL; } m_Meshes.push_back(pMesh); } - m_Meshes.shrink_to_fit(); + return S_OK; +} +#endif + +#ifdef EDITOR_PROJECT +_bool CInstance_Model::SaveAssimpModel(const _char* filename , const aiScene* pAIScene) +{ + if (!pAIScene) return false; + + _char szModel[MAX_PATH] = {}; + _char szExt[MAX_PATH] = {}; + _splitpath_s(filename, nullptr, 0, nullptr, 0, nullptr, 0, szExt, MAX_PATH); + strcat_s(szModel, sizeof(_char) * MAX_PATH, szExt); + + _string savePath = filename; + + SaveModel modelData; + modelData.MeshCount = pAIScene->mNumMeshes; + + for (_uint i = 0; i < pAIScene->mNumMeshes; i++) + { + aiMesh* mesh = pAIScene->mMeshes[i]; + SaveMesh saveMesh{}; + + saveMesh.MeshName = mesh->mName.C_Str(); + saveMesh.MeshNameSize = (_int)saveMesh.MeshName.size() + 1; + saveMesh.VertexCount = mesh->mNumVertices; + saveMesh.IndexCount = mesh->mNumFaces * 3; + saveMesh.Vertices.resize(saveMesh.VertexCount); + + for (_uint i = 0; i < mesh->mNumVertices; i++) + { + saveMesh.Vertices[i].Pos = XMFLOAT3{ mesh->mVertices[i].x , mesh->mVertices[i].y,mesh->mVertices[i].z }; + + if (mesh->HasNormals()) + { + saveMesh.Vertices[i].Normal = XMFLOAT3{ + mesh->mNormals[i].x, + mesh->mNormals[i].y, + mesh->mNormals[i].z + }; + saveMesh.Vertices[i].bHasNormal = true; + } + else + { + saveMesh.Vertices[i].Normal = XMFLOAT3(0.f, 1.f, 0.f); + saveMesh.Vertices[i].bHasNormal = false; + } + + if (mesh->HasTangentsAndBitangents()) + { + saveMesh.Vertices[i].Tan = XMFLOAT3{ + mesh->mTangents[i].x, + mesh->mTangents[i].y, + mesh->mTangents[i].z + }; + saveMesh.Vertices[i].bHasTan = true; + } + else + { + saveMesh.Vertices[i].Tan = XMFLOAT3(1.f, 0.f, 0.f); + saveMesh.Vertices[i].bHasTan = false; + } + + saveMesh.Vertices[i].BiNoraml = XMFLOAT3{ + mesh->mBitangents[i].x, + mesh->mBitangents[i].y, + mesh->mBitangents[i].z + }; + + if (mesh->HasTextureCoords(0)) + { + saveMesh.Vertices[i].UV = XMFLOAT2{ + mesh->mTextureCoords[0][i].x, + mesh->mTextureCoords[0][i].y + }; + saveMesh.Vertices[i].bHasUV = true; + } + else + { + saveMesh.Vertices[i].UV = XMFLOAT2(0.f, 0.f); + saveMesh.Vertices[i].bHasUV = false; + } + saveMesh.Vertices[i].BlendIndex = XMUINT4(0, 0, 0, 0); + saveMesh.Vertices[i].BlendWeight = XMFLOAT4(0.f, 0.f, 0.f, 0.f); + } + + saveMesh.Indices.reserve(saveMesh.IndexCount); + for (_uint i = 0; i < mesh->mNumFaces; i++) + { + aiFace& face = mesh->mFaces[i]; + for (_uint idx = 0; idx < face.mNumIndices; idx++) + saveMesh.Indices.push_back(face.mIndices[idx]); + } + + modelData.Meshes.push_back(saveMesh); + } + + + FILE* fp = nullptr; + fopen_s(&fp, savePath.c_str(), "wb"); + if (!fp) return false; + + fwrite(&modelData.MeshCount, sizeof(_uint), 1, fp); + + for (auto& mesh : modelData.Meshes) + { + fwrite(&mesh.MeshNameSize, sizeof(_uint), 1, fp); + fwrite(mesh.MeshName.data(), 1, mesh.MeshNameSize, fp); + fwrite(&mesh.VertexCount, sizeof(_uint), 1, fp); + fwrite(&mesh.IndexCount, sizeof(_uint), 1, fp); + + fwrite(mesh.Vertices.data(), sizeof(SaveVertex), mesh.VertexCount, fp); + fwrite(mesh.Indices.data(), sizeof(_uint), mesh.IndexCount, fp); + } + + + fclose(fp); + + return true; +} + +#endif +HRESULT CInstance_Model::Ready_Meshes() +{ + m_iNumMeshes = m_SaveModel.MeshCount; + + for (size_t i = 0; i < m_iNumMeshes; i++) + { + CMesh* pMesh = CMesh::Create(m_pDevice, m_pContext, m_eType, nullptr, &m_SaveModel.Meshes[i], XMLoadFloat4x4(&m_PreTransformMatrix)); + if (nullptr == pMesh) + return E_FAIL; + + m_Meshes.push_back(pMesh); + } return S_OK; } + +#ifdef EDITOR_PROJECT + HRESULT CInstance_Model::PreLoad(HANDLE hFile) { DWORD dwByte = {}; @@ -126,6 +344,43 @@ HRESULT CInstance_Model::Load_InstanceModel(HANDLE hFile) return S_OK; } +bool CInstance_Model::LoadData(const _char* filename) +{ + FILE* fp = nullptr; + fopen_s(&fp, filename, "rb"); + if (!fp) return false; + + SaveModel NewModel = {}; + + fread(&NewModel.MeshCount, sizeof(_uint), 1, fp); + + for (_uint i = 0; i < NewModel.MeshCount; i++) + { + SaveMesh mesh{}; + + fread(&mesh.MeshNameSize, sizeof(_uint), 1, fp); + mesh.MeshName.resize(mesh.MeshNameSize); + fread(mesh.MeshName.data(), 1, mesh.MeshNameSize, fp); + + fread(&mesh.VertexCount, sizeof(_uint), 1, fp); + fread(&mesh.IndexCount, sizeof(_uint), 1, fp); + + mesh.Vertices.resize(mesh.VertexCount); + fread(mesh.Vertices.data(), sizeof(SaveVertex), mesh.VertexCount, fp); + + mesh.Indices.resize(mesh.IndexCount); + fread(mesh.Indices.data(), sizeof(_uint), mesh.IndexCount, fp); + + NewModel.Meshes.push_back(mesh); + } + + fclose(fp); + + m_SaveModel = NewModel; + + return true; +} + HRESULT CInstance_Model::Change_NumInstance() { SAFE_RELEASE(m_pVBInstance); @@ -232,7 +487,7 @@ HRESULT CInstance_Model::Create_CS() }; m_pComputeShader = CComputeShader::Create(m_pDevice, m_pContext, - L"../Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl", "CS_MAIN", m_iNumInstance, 2, 2, CS_OutputStrides, CS_InputStrides); + L"../Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl", "CS_MAIN", m_iNumInstance, 2, 2, CS_InputStrides, CS_OutputStrides); if (m_pComputeShader == nullptr) return E_FAIL; @@ -277,8 +532,15 @@ void CInstance_Model::Drop(_float fTimeDelta) pDesc->fTimeDelta = 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; + pDesc->isNoWorld = m_InstanceDesc.isNoWorld; + pDesc->WorldMatrix = *m_pOwner->Get_Component()->Get_WorldMatrixPtr(); + m_pContext->Unmap(m_pConstantBuffer, 0); } @@ -315,6 +577,7 @@ void CInstance_Model::Drop(_float fTimeDelta) memcpy(ParticleValueResource.pData, OutSubResources[1].pData, sizeof(CS_PARTICLE_VALUE_DESC) * m_InstanceDesc.iNumInstance); // 아웃풋 버퍼에 들어온 값들을 전부 복사한다. + m_pContext->Unmap(m_pParticleValueBuffer, 0); } @@ -399,6 +662,38 @@ void CInstance_Model::Instane_Buffer_ReStruct() pParticleValues[i].vSinAmount = vSinAmount; + _float3 vDeltaAngle = _float3( + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAngleMin.x, m_InstanceDesc.vDeltaAngleMax.x), + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAngleMin.y, m_InstanceDesc.vDeltaAngleMax.y), + m_pGameInstance->Random_Float(m_InstanceDesc.vDeltaAngleMin.z, m_InstanceDesc.vDeltaAngleMax.z) + ); + + 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)); @@ -412,8 +707,10 @@ 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); + pParticleValues[i].vDelay = _float2(0.0f, m_pGameInstance->Random_Float(m_InstanceDesc.vDelay.x, m_InstanceDesc.vDelay.y)); + memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4)); memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4)); memcpy(&pParticleValues[i].vOriginLook, SRMatrix.m[2], sizeof(_float4)); @@ -439,9 +736,7 @@ HRESULT CInstance_Model::Bind_CS_Output(_uint Index, _uint iBufferIndex) return S_OK; } - -#ifdef EDITOR_PROJECT - + CInstance_Model* CInstance_Model::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex) { CInstance_Model* pInstance = new CInstance_Model(pDevice, pContext); @@ -454,7 +749,6 @@ CInstance_Model* CInstance_Model::Create(ID3D11Device* pDevice, ID3D11DeviceCont return pInstance; } -#endif CComponent* CInstance_Model::Clone(void* pArg, CGameObject* pOwner) { @@ -480,13 +774,12 @@ void CInstance_Model::Free() for (auto& pMesh : m_Meshes) SAFE_RELEASE(pMesh); - for (auto& pBone : m_Bones) - SAFE_RELEASE(pBone); - SAFE_RELEASE(m_pComputeShader); SAFE_RELEASE(m_pConstantBuffer); SAFE_RELEASE(m_pParticleValueBuffer); +; } +#ifdef _DEBUG void CInstance_Model::Describe_Entity() { @@ -520,6 +813,32 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + if (GUI::Checkbox("Turn", &m_InstanceDesc.isTurn)) + { + 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 (GUI::Checkbox("NoWorld", &m_InstanceDesc.isNoWorld)) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin))) { Instane_Buffer_ReStruct(); @@ -566,6 +885,11 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay))) + { + Instane_Buffer_ReStruct(); + } + if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime))) { Instane_Buffer_ReStruct(); @@ -611,6 +935,53 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + if (ImGui::DragFloat3("DeltaAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMin))) + { + Instane_Buffer_ReStruct(); + } + + if (ImGui::DragFloat3("DeltaAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMax))) + { + 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(); @@ -618,3 +989,5 @@ void CInstance_Model::Describe_Entity() ImGui::Separator(); } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/LerpAnim.cpp b/Jusin154_Team3D/Engine/Private/LerpAnim.cpp index e4b4aa8c3..1bbfe912f 100644 --- a/Jusin154_Team3D/Engine/Private/LerpAnim.cpp +++ b/Jusin154_Team3D/Engine/Private/LerpAnim.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "LerpAnim.h" #include "Channel.h" #include "Bone.h" @@ -17,13 +17,13 @@ _bool CLerpAnim::Update_TransformationMatrices(const vector& Bones, _flo return false; } - _uint iIndex = {}; + /*_uint iIndex = {}; for (auto& pChannel : m_Channels) { if (true == m_Movable[iIndex]) { pChannel->Update_TransformationMatirx(Bones, m_fCurrentTrackPosition, &m_CurrentKeyFrameIndices[iIndex]); } iIndex++; - } + }*/ return true; } @@ -36,23 +36,13 @@ HRESULT CLerpAnim::Initialize(_uint iNumBone, _float fTickPerSecond, const vecto m_InitialFrames.resize(m_iNumChannels); m_Channels.reserve(m_iNumChannels); - for (_uint i = 0; i < m_iNumChannels; ++i) { - CChannel* pChannel = CChannel::Create(Bones, i); - if (nullptr == pChannel) { - return E_FAIL; - } - m_Channels.push_back(pChannel); - Bones[i]->Get_KeyFrame(m_InitialFrames[i], false); - m_InitialFrames[i].fTrackPosition = m_fDuration; - pChannel->Set_Frame(1, m_InitialFrames[i]); - } return S_OK; } void CLerpAnim::Begin(const vector& Bones, vector& StartFrames, vector& EndFrames, _float fDuration, _uint iRootBoneIndex) { - { // Ãʱâȭ + { // 초기화 - //KEYFRAME kf = { // Ç׵îÇà·ÄÀÇ ŰÇÁ·¹ÀÓ + //KEYFRAME kf = { // 항등행렬의 키프레임 // { 1.f, 1.f, 1.f }, // { 0.f, 0.f, 0.f, 1.f }, // { 0.f, 0.f, 0.f}, @@ -61,19 +51,19 @@ void CLerpAnim::Begin(const vector& Bones, vector& Start m_fDuration = fDuration; m_fCurrentTrackPosition = 0.f; for (_uint i = 0; i < m_iNumChannels; ++i) { - m_Channels[i]->Set_Frame(1, m_InitialFrames[i]); // ³¡ÇÁ·¹ÀÓÀ» Ãʱâ °ªÀ¸·Î ä¿ì±â + m_Channels[i]->Set_Frame(1, m_InitialFrames[i]); // 끝프레임을 초기 값으로 채우기 } fill(m_CurrentKeyFrameIndices.begin(), m_CurrentKeyFrameIndices.end(), 0); fill(m_Movable.begin(), m_Movable.end(), false); } - { // ½ÇÁ¦ °ª ä¿ì±â - for (LERPDESC& Desc : EndFrames) // ³¡ÇÁ·¹ÀÓÀ» ½ÇÁ¦ °ªÀ¸·Î ä¿ì±â + { // 실제 값 채우기 + for (LERPDESC& Desc : EndFrames) // 끝프레임을 실제 값으로 채우기 { _int iIndex = Desc.iSlot; Desc.tagKeyFrame.fTrackPosition = m_fDuration; m_Channels[iIndex]->Set_Frame(1, Desc.tagKeyFrame); } - for (_uint i = 0; i < StartFrames.size(); ++i) { // ½ÃÀÛ ÇÁ·¹ÀÓÀ» ÇöÀç º» »óÅ ŰÇÁ·¹ÀÓÀ¸·Î ä¿ì±â + for (_uint i = 0; i < StartFrames.size(); ++i) { // 시작 프레임을 현재 본 상태 키프레임으로 채우기 _int iIndex = StartFrames[i].iSlot; m_Movable[iIndex] = true; m_Channels[iIndex]->Set_Frame(0, StartFrames[i].tagKeyFrame); @@ -101,4 +91,4 @@ void CLerpAnim::Free() m_CurrentKeyFrameIndices.clear(); } -; \ No newline at end of file +; diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp index 64296c575..4a77afd55 100644 --- a/Jusin154_Team3D/Engine/Private/Light.cpp +++ b/Jusin154_Team3D/Engine/Private/Light.cpp @@ -12,7 +12,7 @@ CLight::CLight(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) } CLight::CLight(const CLight& rhs) - : CComponent{ rhs } + : CComponent(rhs) { } @@ -151,6 +151,7 @@ void CLight::Free() } +#ifdef _DEBUG void CLight::Describe_Entity() { @@ -187,3 +188,5 @@ void CLight::Describe_Entity() GUI::Separator(); } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp index 601ccdf56..19f6380eb 100644 --- a/Jusin154_Team3D/Engine/Private/Light_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Light_Manager.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Light_Manager.h" #include "Light.h" @@ -74,10 +74,9 @@ const LIGHT_DESC* CLight_Manager::Get_Light_Info(_uint _iCurrentLevel, _uint _iL } -HRESULT CLight_Manager::Render_Lights(_uint _iCurrentLevel, CShader* pShader, CVIBuffer* pVIBuffer) +HRESULT CLight_Manager::Render_Lights(_uint iCurrentLevel, CShader* pShader, CVIBuffer* pVIBuffer) { - - for (auto& pLight : m_Lights[_iCurrentLevel]) + for (auto& pLight : m_Lights[iCurrentLevel]) { pLight->Render(pShader, pVIBuffer); } diff --git a/Jusin154_Team3D/Engine/Private/Material.cpp b/Jusin154_Team3D/Engine/Private/Material.cpp index 67b8586bf..a004650a9 100644 --- a/Jusin154_Team3D/Engine/Private/Material.cpp +++ b/Jusin154_Team3D/Engine/Private/Material.cpp @@ -220,8 +220,9 @@ HRESULT CMaterial::Read_MaterialFile(const _char* pMaterialFilePath, const _char getline(file, strText); // Add Texture - if (FAILED(Add_Texture(szTextureFilePath, Type))) + if (FAILED(Add_Texture(szTextureFilePath, Type))){ return E_FAIL; + } break; @@ -250,49 +251,70 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType aiTextureType eTexture = {}; /* Find type */ - if (!strcmp(FileType.c_str(), "D")) + if (!strcmp(FileType.c_str(), "D")){ eTexture = aiTextureType::aiTextureType_DIFFUSE; - else if (!strcmp(FileType.c_str(), "Diff")) + } + else if (!strcmp(FileType.c_str(), "Diff")){ eTexture = aiTextureType::aiTextureType_DIFFUSE; - else if (!strcmp(FileType.c_str(), "d")) + } + else if (!strcmp(FileType.c_str(), "d")){ eTexture = aiTextureType::aiTextureType_DIFFUSE; - else if (!strcmp(FileType.c_str(), "N")) + } + else if (!strcmp(FileType.c_str(), "basecolor")) { + eTexture = aiTextureType::aiTextureType_DIFFUSE; + } + else if (!strcmp(FileType.c_str(), "N")){ eTexture = aiTextureType::aiTextureType_NORMALS; - else if (!strcmp(FileType.c_str(), "normal")) + } + else if (!strcmp(FileType.c_str(), "normal")){ eTexture = aiTextureType::aiTextureType_NORMALS; - else if (!strcmp(FileType.c_str(), "Norm")) + } + else if (!strcmp(FileType.c_str(), "Norm")){ eTexture = aiTextureType::aiTextureType_NORMALS; - else if (!strcmp(FileType.c_str(), "n")) + } + else if (!strcmp(FileType.c_str(), "n")){ eTexture = aiTextureType::aiTextureType_NORMALS; - else if (!strcmp(FileType.c_str(), "MRO")) + } + else if (!strcmp(FileType.c_str(), "MRO")){ eTexture = aiTextureType::aiTextureType_METALNESS; - else if (!strcmp(FileType.c_str(), "3Broom")) + } + else if (!strcmp(FileType.c_str(), "MROH")){ eTexture = aiTextureType::aiTextureType_METALNESS; - else if (!strcmp(FileType.c_str(), "MROH")) + } + else if (!strcmp(FileType.c_str(), "MRAB")){ eTexture = aiTextureType::aiTextureType_METALNESS; - else if (!strcmp(FileType.c_str(), "MRAB")) + } + else if (!strcmp(FileType.c_str(), "MROA")){ eTexture = aiTextureType::aiTextureType_METALNESS; - else if (!strcmp(FileType.c_str(), "MROA")) + } + else if (!strcmp(FileType.c_str(), "SRO")){ eTexture = aiTextureType::aiTextureType_SPECULAR; - else if (!strcmp(FileType.c_str(), "SRO")) + } + else if (!strcmp(FileType.c_str(), "HRO")){ eTexture = aiTextureType::aiTextureType_SPECULAR; - else if (!strcmp(FileType.c_str(), "HRO")) + } + else if (!strcmp(FileType.c_str(), "SROH")) { eTexture = aiTextureType::aiTextureType_SPECULAR; - else if (!strcmp(FileType.c_str(), "SROH")) - eTexture = aiTextureType::aiTextureType_SPECULAR; - else if (!strcmp(FileType.c_str(), "SROA")) + } + else if (!strcmp(FileType.c_str(), "SROA")){ eTexture = aiTextureType::aiTextureType_SPECULAR; + } + else if (!strcmp(FileType.c_str(), "3Broom")) { + eTexture = aiTextureType::aiTextureType_UNKNOWN; + } else if (!strcmp(FileType.c_str(), "HDR")) return S_OK; - else if (!strcmp(FileType.c_str(), "MSK")) + else if (!strcmp(FileType.c_str(), "MSK")){ eTexture = aiTextureType::aiTextureType_AMBIENT_OCCLUSION; - else if (!strcmp(FileType.c_str(), "basecolor")) - eTexture = aiTextureType::aiTextureType_DIFFUSE; - else if (!strcmp(FileType.c_str(), "E")) + } + else if (!strcmp(FileType.c_str(), "E")){ eTexture = aiTextureType::aiTextureType_EMISSIVE; + } else { +#ifndef 기무리 MSG_BOX("Failed to Path Material Texture Type"); +#endif // !기무리 return S_OK; } _char TexturePath[MAX_PATH] = {}; @@ -319,8 +341,10 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType if (FAILED(CreateWICTextureFromFile(m_pDevice, szTextureFilePath_Png, nullptr, &pSRV))) { +#ifndef 기무리 MSG_BOX("Failed to Load TextureFile"); - return E_FAIL; +#endif // !기무리 + return S_OK; } strTexturePath = CMyTools::ToString(szTextureFilePath_Png); } @@ -329,56 +353,37 @@ HRESULT CMaterial::Add_Texture(const _char* pTextureFolderPath, string& FileType strTexturePath = CMyTools::ToString(szTextureFilePath); } - _string strPrefix = "../Bin/Resources/Models/MapMesh/"; - _string strSearchString = "MeshTable"; - _string strResultPath = {}; + //_string strPrefix = "C:"; + //_string strSearchString = "MeshTable"; + //_string strResultPath = {}; - size_t mapRePos = strTexturePath.find(strSearchString); + //size_t mapRePos = strTexturePath.find(strSearchString); - if (mapRePos != std::string::npos) - { - size_t startPos = mapRePos + strSearchString.length(); + //if (mapRePos != std::string::npos) + //{ + // size_t startPos = mapRePos + strSearchString.length(); - // 'MapRe' 뒤에 오는 경로 건너뛰기 - if (startPos < strTexturePath.length() && - (strTexturePath[startPos] == '\\' || strTexturePath[startPos] == '/')) { - startPos++; - } + // // 'MapRe' 뒤에 오는 경로 건너뛰기 + // if (startPos < strTexturePath.length() && + // (strTexturePath[startPos] == '\\' || strTexturePath[startPos] == '/')) { + // startPos++; + // } - // 'MapRe' 이후의 나머지 경로를 추출 - strResultPath = strPrefix + strTexturePath.substr(startPos); - } - else - { - MSG_BOX("FAILED to Find Path"); - } + // // 'MapRe' 이후의 나머지 경로를 추출 + // strResultPath = strTexturePath;//.substr(startPos); + //} + //else + //{ + // MSG_BOX("FAILED to Find Path"); + //} - replace(strResultPath.begin(), strResultPath.end(), '\\', '/'); + //replace(strResultPath.begin(), strResultPath.end(), '\\', '/'); - m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strResultPath); + m_SaveMaterial.Path[ENUM_CLASS(eTexture)].push_back(strTexturePath); m_SRVs[ENUM_CLASS(eTexture)].push_back(pSRV); return S_OK; } -HRESULT CMaterial::SaveAsBinary(HANDLE hFile, DWORD& dwByte) -{ - // 실제 값을 저장하지 않고 파일이름.확장자명의 문자열을 저장해서 수정하기 편하게 만들기 - // 대신 리소스를 공유해야함 - // 텍스쳐를 저장하지 않고 - // 텍스쳐 경로만 ( "이름.확장자" ) 만 저장함 - for (int i = 0; i < AI_TEXTURE_TYPE_MAX; ++i) { - _uint iNumSrv = (_uint)m_strPath[i].size(); - WriteFile(hFile, &i, sizeof(_uint), &dwByte, nullptr); // 종류 저장 - WriteFile(hFile, &iNumSrv, sizeof(_uint), &dwByte, nullptr); // 종류의 갯수 저장 - for (_uint j = 0; j < iNumSrv; ++j) { - m_strPath[i][j].shrink_to_fit(); - _uint strLength = (_uint)(sizeof(_char) * m_strPath[i][j].length()); - WriteFile(hFile, &strLength, sizeof(_uint), &dwByte, nullptr); // 사이즈 저장 - WriteFile(hFile, m_strPath[i][j].data(), strLength, &dwByte, nullptr); // 실제 값 저장 - } - } - return S_OK; -} CMaterial* CMaterial::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, const aiMaterial* pAIMaterial) { CMaterial* pInstance = new CMaterial(pDevice, pContext); @@ -406,15 +411,106 @@ CMaterial* CMaterial::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContex } #endif -HRESULT CMaterial::Bind_SRV(CShader* pShader, const _char* pConstantName, _uint iType, _uint iTextureIndex) +HRESULT CMaterial::Bind_SRV(CShader* pShader) { - if (m_SRVs[iType].empty()) { - //assert(false); - return S_OK; + //if (m_SRVs[iType].empty()) { + // //assert(false); + // return S_OK; + //} + + const _char* pConstantName = ""; + _float fZero = 0.f; + if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fZero, sizeof(_float)))) { + return E_FAIL; + } + if (FAILED(pShader->Bind_SRV("g_SurfaceParamsTexture", nullptr))) { + return E_FAIL; } + for (_uint iTextureType = 0; iTextureType < AI_TEXTURE_TYPE_MAX; ++iTextureType) { + if (m_SRVs[iTextureType].empty()) { + continue; + } + switch (aiTextureType(iTextureType)) + { + case aiTextureType_NONE: + break; + case aiTextureType_DIFFUSE: + pConstantName = "g_DiffuseTexture"; + break; + case aiTextureType_SPECULAR: + { + _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); + pConstantName = "g_SurfaceParamsTexture"; + pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)); + } + break; + case aiTextureType_AMBIENT: + break; + case aiTextureType_EMISSIVE: + break; + case aiTextureType_HEIGHT: + break; + case aiTextureType_NORMALS: + pConstantName = "g_NormalTexture"; + break; + case aiTextureType_SHININESS: + break; + case aiTextureType_OPACITY: + break; + case aiTextureType_DISPLACEMENT: + break; + case aiTextureType_LIGHTMAP: + break; + case aiTextureType_REFLECTION: + break; + case aiTextureType_BASE_COLOR: + break; + case aiTextureType_NORMAL_CAMERA: + break; + case aiTextureType_EMISSION_COLOR: + break; + case aiTextureType_METALNESS: + { + _float fUsingSurfaceParams = ((_float)iTextureType / (_float)AI_TEXTURE_TYPE_MAX); + pConstantName = "g_SurfaceParamsTexture"; + pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)); + } + break; + case aiTextureType_DIFFUSE_ROUGHNESS: + break; + case aiTextureType_AMBIENT_OCCLUSION: + break; + case aiTextureType_UNKNOWN: + break; + case aiTextureType_SHEEN: + break; + case aiTextureType_CLEARCOAT: + break; + case aiTextureType_TRANSMISSION: + break; + case aiTextureType_MAYA_BASE: + break; + case aiTextureType_MAYA_SPECULAR: + break; + case aiTextureType_MAYA_SPECULAR_COLOR: + break; + case aiTextureType_MAYA_SPECULAR_ROUGHNESS: + break; + case aiTextureType_ANISOTROPY: + break; + case aiTextureType_GLTF_METALLIC_ROUGHNESS: + break; + case _aiTextureType_Force32Bit: + break; + default: + break; + } - return pShader->Bind_SRV(pConstantName, m_SRVs[iType][iTextureIndex]); + pShader->Bind_SRV(pConstantName, m_SRVs[iTextureType][0]); + } + + return S_OK; } HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _SaveMaterial) @@ -437,6 +533,9 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _ ID3D11ShaderResourceView* pSRV = nullptr; HRESULT hr = S_OK; + if (!m_SRVs[type].empty()) + continue; + const char* ext = strrchr(szFullPath, '.'); if (ext) { @@ -448,9 +547,9 @@ HRESULT CMaterial::Initialize(const _char* pModelFilePath, const SaveMaterial& _ hr = CreateWICTextureFromFile(m_pDevice, szPerfectPath, nullptr, &pSRV); } - if (FAILED(hr)) + if (FAILED(hr)){ return E_FAIL; - + } m_SRVs[type].push_back(pSRV); } } diff --git a/Jusin154_Team3D/Engine/Private/Mesh.cpp b/Jusin154_Team3D/Engine/Private/Mesh.cpp index 6861970b3..06af3d192 100644 --- a/Jusin154_Team3D/Engine/Private/Mesh.cpp +++ b/Jusin154_Team3D/Engine/Private/Mesh.cpp @@ -3,7 +3,7 @@ #include "Model.h" #include "Bone.h" #include "Shader.h" - +#include "ComputeShader.h" CMesh::CMesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CVIBuffer{ pDevice, pContext } { @@ -113,8 +113,6 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, vector& Bones, co #pragma endregion - - return S_OK; } #endif @@ -151,87 +149,6 @@ HRESULT CMesh::Render_Instance(_uint iNumInstance) return S_OK; } - -HRESULT CMesh::Initialize_Prototype(HANDLE hFile, DWORD& dwByte) -{ - { // 멤버변수 - if (!ReadFile(hFile, &m_iMaterialIndex, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumVertexBuffers, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumVertices, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iVertexStride, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumIndices, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iIndexStride, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_iNumBones, sizeof(_uint), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_eIndexFormat, sizeof(DXGI_FORMAT), &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &m_ePrimitive, sizeof(D3D_PRIMITIVE_TOPOLOGY), &dwByte, nullptr)) { - return E_FAIL; - } - DWORD iSize = {}; - if (!ReadFile(hFile, &iSize, sizeof(DWORD), &dwByte, nullptr)) { - return E_FAIL; - } - m_BoneIndices.resize(iSize / sizeof(_int)); - if (!ReadFile(hFile, m_BoneIndices.data(), iSize, &dwByte, nullptr)) { - return E_FAIL; - } - if (!ReadFile(hFile, &iSize, sizeof(DWORD), &dwByte, nullptr)) { - return E_FAIL; - } - m_offsetMatrices.resize(iSize / sizeof(_float4x4)); - if (!ReadFile(hFile, m_offsetMatrices.data(), iSize, &dwByte, nullptr)) { - DWORD err = GetLastError(); - return E_FAIL; - } - - m_pBoneMatrices = new _float4x4[0 == m_iNumBones ? 1 : m_iNumBones]; - ZeroMemory(m_pBoneMatrices, sizeof(_float4x4) * m_iNumBones); - } - { // Vertex Buffer - HRESULT hr = (m_iVertexStride == sizeof(VTXMESH)) ? - Ready_VertexBuffer_For_NonAnim(hFile, dwByte) : - Ready_VertexBuffer_For_Anim(hFile, dwByte); - } - { // Index Buffer - D3D11_BUFFER_DESC IBDesc{}; - if (!ReadFile(hFile, &IBDesc, sizeof(D3D11_BUFFER_DESC), &dwByte, nullptr)) { - return E_FAIL; - } - - _uint* pIndices = new _uint[m_iNumIndices]; - ZeroMemory(pIndices, sizeof(_uint) * m_iNumIndices); - - if (!ReadFile(hFile, pIndices, IBDesc.ByteWidth, &dwByte, nullptr)) { - return E_FAIL; - } - - D3D11_SUBRESOURCE_DATA InitialIBData{}; - InitialIBData.pSysMem = pIndices; - - if (FAILED(m_pDevice->CreateBuffer(&IBDesc, &InitialIBData, &m_pIB))) { - return E_FAIL; - } - - Safe_Delete_Array(pIndices); - } - return S_OK; -} - HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix) { strcpy_s(m_szName, _SaveMesh->MeshName.c_str()); @@ -252,6 +169,7 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh* m_Vertices.reserve(_SaveMesh->Vertices.size()); XMMATRIX matPre = PreTransformMatrix; + for (size_t i = 0; i < _SaveMesh->Vertices.size(); ++i) { _float3 pos = _SaveMesh->Vertices[i].Pos; @@ -291,65 +209,7 @@ HRESULT CMesh::Initialize_Prototype(MODEL eType, const CModel* pModel, SaveMesh* #pragma endregion - - - return S_OK; -} - -HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(HANDLE hFile, DWORD& dwByte) -{ - D3D11_BUFFER_DESC VBDesc{}; - if (!ReadFile(hFile, &VBDesc, sizeof(D3D11_BUFFER_DESC), &dwByte, nullptr)) { - return E_FAIL; - } - VTXMESH* pVertices = new VTXMESH[m_iNumVertices]{}; - ZeroMemory(pVertices, sizeof(VTXMESH) * m_iNumVertices); - - m_pVertexPositions = new _float3[m_iNumVertices]; - ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); - if (!ReadFile(hFile, pVertices, VBDesc.ByteWidth, &dwByte, nullptr)) { - return E_FAIL; - } - for (_uint i = 0; i < m_iNumVertices; ++i) { - m_pVertexPositions[i] = pVertices[i].vPosition; - } - D3D11_SUBRESOURCE_DATA InitialVBData{}; - InitialVBData.pSysMem = pVertices; - - if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBData, &m_pVB))) { - return E_FAIL; - } - - Safe_Delete_Array(pVertices); - - return S_OK; -} - -HRESULT CMesh::Ready_VertexBuffer_For_Anim(HANDLE hFile, DWORD& dwByte) -{ - D3D11_BUFFER_DESC VBDesc{}; - if (!ReadFile(hFile, &VBDesc, sizeof(D3D11_BUFFER_DESC), &dwByte, nullptr)) { - return E_FAIL; - } - VTXANIMMESH* pVertices = new VTXANIMMESH[m_iNumVertices]{}; - ZeroMemory(pVertices, sizeof(VTXANIMMESH) * m_iNumVertices); - - m_pVertexPositions = new _float3[m_iNumVertices]; - ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); - if (!ReadFile(hFile, pVertices, VBDesc.ByteWidth, &dwByte, nullptr)) { - return E_FAIL; - } - for (_uint i = 0; i < m_iNumVertices; ++i) { - m_pVertexPositions[i] = pVertices[i].vPosition; - } - D3D11_SUBRESOURCE_DATA InitialVBData{}; - InitialVBData.pSysMem = pVertices; - - if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBData, &m_pVB))) { - return E_FAIL; - } - - Safe_Delete_Array(pVertices); + //Create_RawVB(m_RawVertices); return S_OK; } @@ -405,6 +265,9 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr HRESULT CMesh::Ready_VertexBuffer_For_Anim(const CModel* pModel, SaveMesh* _SaveMesh) { + if (pModel == nullptr) + return S_OK; + m_iVertexStride = sizeof(VTXANIMMESH); D3D11_BUFFER_DESC VBDesc{}; VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices; @@ -509,11 +372,13 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(const CModel* pModel, SaveMesh* _Save if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBData, &m_pVB))) return E_FAIL; + Safe_Delete_Array(pVertices); return S_OK; } + HRESULT CMesh::Initialize(void* pArg) { return S_OK; @@ -533,80 +398,6 @@ CMesh* CMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL return pInstance; } -HRESULT CMesh::SaveAsBinary(HANDLE hFile, DWORD& dwByte) -{ - { // 멤버변수 - WriteFile(hFile, &m_iMaterialIndex, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iNumVertexBuffers, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iNumVertices, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iVertexStride, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iNumIndices, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iIndexStride, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_iNumBones, sizeof(_uint), &dwByte, nullptr); - WriteFile(hFile, &m_eIndexFormat, sizeof(DXGI_FORMAT), &dwByte, nullptr); - WriteFile(hFile, &m_ePrimitive, sizeof(D3D_PRIMITIVE_TOPOLOGY), &dwByte, nullptr); - - DWORD iSize = (DWORD)(sizeof(_int) * m_BoneIndices.size()); - WriteFile(hFile, &iSize, sizeof(DWORD), &dwByte, nullptr); - WriteFile(hFile, m_BoneIndices.data(), iSize, &dwByte, nullptr); - - iSize = (DWORD)(sizeof(_float4x4) * m_offsetMatrices.size()); - WriteFile(hFile, &iSize, sizeof(DWORD), &dwByte, nullptr); - WriteFile(hFile, m_offsetMatrices.data(), iSize, &dwByte, nullptr); - } - { // Vertex Buffer - D3D11_BUFFER_DESC VBDesc{}; - m_pVB->GetDesc(&VBDesc); // 버퍼 디스크립션 저장 - WriteFile(hFile, &VBDesc, sizeof(D3D11_BUFFER_DESC), &dwByte, nullptr); - - D3D11_BUFFER_DESC StagingDesc{}; - StagingDesc.Usage = D3D11_USAGE_STAGING; - StagingDesc.ByteWidth = VBDesc.ByteWidth; - StagingDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ; - StagingDesc.BindFlags = 0; - StagingDesc.MiscFlags = 0; - - ID3D11Buffer* pStaging = nullptr; - if (FAILED(m_pDevice->CreateBuffer(&StagingDesc, nullptr, &pStaging)) || nullptr == pStaging) { - return E_FAIL; - } - m_pContext->CopyResource(pStaging, m_pVB); // 버퍼 복사 - - D3D11_MAPPED_SUBRESOURCE mapped{}; - m_pContext->Map(pStaging, 0, D3D11_MAP_READ, 0, &mapped); - WriteFile(hFile, mapped.pData, VBDesc.ByteWidth, &dwByte, nullptr); - - m_pContext->Unmap(pStaging, 0); - pStaging->Release(); - } - { // Index Buffer - D3D11_BUFFER_DESC IBDesc{}; - m_pIB->GetDesc(&IBDesc); - WriteFile(hFile, &IBDesc, sizeof(D3D11_BUFFER_DESC), &dwByte, nullptr); - - D3D11_BUFFER_DESC StagingDesc{}; - StagingDesc.Usage = D3D11_USAGE_STAGING; - StagingDesc.ByteWidth = IBDesc.ByteWidth; - StagingDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ; - StagingDesc.BindFlags = 0; - StagingDesc.MiscFlags = 0; - - ID3D11Buffer* pStaging = nullptr; - if (FAILED(m_pDevice->CreateBuffer(&StagingDesc, nullptr, &pStaging)) || nullptr == pStaging) { - return E_FAIL; - } - m_pContext->CopyResource(pStaging, m_pIB); - - D3D11_MAPPED_SUBRESOURCE mapped{}; - m_pContext->Map(pStaging, 0, D3D11_MAP_READ, 0, &mapped); - WriteFile(hFile, mapped.pData, IBDesc.ByteWidth, &dwByte, nullptr); - - m_pContext->Unmap(pStaging, 0); - pStaging->Release(); - } - return S_OK; -} - PSX::PxTriangleMesh* CMesh::ConvertToPxMesh(const PSX::PxCookingParams* pParam, PSX::PxPhysics* pPhysX, _matrix WorldMatrix) { PSX::PxTriangleMeshDesc tMeshDesc = {}; @@ -779,19 +570,6 @@ HRESULT CMesh::Ready_VertexBuffer_For_Anim(vector& Bones, const ai } #endif -CMesh* CMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, HANDLE hFile, DWORD& dwByte) -{ - CMesh* pInstance = new CMesh(pDevice, pContext); - - if (FAILED(pInstance->Initialize_Prototype(hFile, dwByte))) - { - MSG_BOX("Failed to Created : CMesh"); - SAFE_RELEASE(pInstance); - } - - return pInstance; -} - CMesh* CMesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const CModel* pModel, SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix) { CMesh* pInstance = new CMesh(pDevice, pContext); @@ -823,7 +601,10 @@ void CMesh::Free() Safe_Delete_Array(m_pBoneMatrices); } +#ifdef _DEBUG void CMesh::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index 6f8bf8bfd..10479dfcb 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -7,6 +7,7 @@ #include "LerpAnim.h" #include "GameObject.h" #include "Transform.h" +#include "ComputeShader.h" CModel::CModel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CComponent{ pDevice, pContext } @@ -23,7 +24,9 @@ CModel::CModel(const CModel& rhs) m_Materials(rhs.m_Materials), m_iNumMaterials(rhs.m_iNumMaterials), m_iNumAnimations(rhs.m_iNumAnimations), - m_pLerpAnim(rhs.m_pLerpAnim) + m_pLerpAnim(rhs.m_pLerpAnim), + m_fRadius(rhs.m_fRadius), + m_vRadiusOffset(rhs.m_vRadiusOffset) { _uint iNumBones = (_uint)(rhs.m_Bones.size()); m_Bones.reserve(iNumBones); @@ -80,46 +83,7 @@ _int CModel::Get_BoneIndex(const _char* pBoneName) const return iBoneIndex; } -void CModel::Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex) -{ - if (false == bIgnoreCurrentIndex && m_iCurrentAnimIndex == iAnimationIndex) { return; } - m_iCurrentAnimIndex = iAnimationIndex; - m_bIsLoop = bIsLoop; - RefreshAnim(); - - m_PrevAnimationMatrix = Get_BoneMatrix(m_iRootBoneIndex); - - - m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // 애니메이션 종료 이벤트 ( 럴프애님은 자체적으로 불림 ) - vector<_int>* BeforeAnimIndex = m_Animations[m_iCurrentAnimIndex]->Capture_Bones(); // 영향을 받는 본 인덱스 추출 1 - vector<_int>* AfterAnimIndex = m_Animations[iAnimationIndex]->Capture_Bones(); // 영향을 받는 본 인덱스 추출 2 - unordered_set<_int> UnionAnimIndex = {}; - - vector LerpStartFrames; - for (_int i : *BeforeAnimIndex) { - UnionAnimIndex.insert(i); - } - for (_int i : *AfterAnimIndex) { - UnionAnimIndex.insert(i); - } - LerpStartFrames.reserve(UnionAnimIndex.size()); // 영향을 받는 모든 현재 본을 가져옴 - - // 스타팅 키프레임 채우기 pair < 본 인덱스, 키프레임 > - for (auto iter = UnionAnimIndex.begin(); iter != UnionAnimIndex.end(); ++iter) { - LERPDESC desc = {}; - desc.iSlot = *iter; - m_Bones[desc.iSlot]->Get_KeyFrame(desc.tagKeyFrame, true); // 스타팅 키프레임 채우기 - LerpStartFrames.emplace_back(desc); - } - - // 엔딩 키프레임 채우기 pair < 본인덱스, 키프레임 > - vector LerpEndFrames = m_Animations[iAnimationIndex]->Get_StartFrameInformations(); - - // 럴프 애니메이션 시작 - m_pLerpAnim->Begin(m_Bones, LerpStartFrames, LerpEndFrames, fLerpDuration, m_iRootBoneIndex); - -} -HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader, const _char* pConstantName, _uint iType, _uint iTextureIndex) +HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader) { if (iMeshIndex >= m_iNumMeshes) { return E_FAIL; @@ -130,7 +94,7 @@ HRESULT CModel::Bind_Material(_uint iMeshIndex, CShader* pShader, const _char* p if (iMaterialIndex >= m_iNumMaterials) { return E_FAIL; } - return m_Materials[iMaterialIndex]->Bind_SRV(pShader, pConstantName, iType, iTextureIndex); + return m_Materials[iMaterialIndex]->Bind_SRV(pShader); } HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _char* pConstantName) @@ -143,21 +107,24 @@ HRESULT CModel::Bind_BoneMatrices(_uint iMeshIndex, CShader* pShader, const _cha _bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform) { - if (!m_bPlayAnim) + if (!m_bPlayAnim){ return false; + } if (-1 == m_iCurrentAnimIndex // 정지 혹은 시작을 안시켜준 애님 || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // 애님 인덱스 초과됨 { return false; // 잘못된 초기화 } + ComputeAnimation(); + if (m_iPreAnimIndex != m_iCurrentAnimIndex && m_iPreAnimIndex != 0) { m_fBlendTime += fTimeDelta; - _float fRatio = m_fBlendTime / m_fBlendDuration; + _float fRatio = (m_fBlendTime / m_fBlendDuration); fRatio = min(fRatio, 1.f); - m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, pTransform); + m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount); m_Animations[m_iCurrentAnimIndex]->InterpAnim(m_Animations[m_iPreAnimIndex], m_Bones, fRatio); if (fRatio >= 1.f) @@ -168,104 +135,40 @@ _bool CModel::Play_Animation(_float fTimeDelta,CTransform* pTransform) } else { - m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_bIsLoop, fTimeDelta, pTransform); + m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount); m_iPreAnimIndex = m_iCurrentAnimIndex; } - for (_int i = 0; i < m_Bones.size(); ++i) + for (auto& pBone : m_Bones) { - m_Bones[i]->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); - - if (i == m_iRootBoneIndex) { // 루트본의 매트릭스를 갱신했다면 애니메이션에 맞게 이동량을 루트본에서 트랜스폼으로 보정시킴 - if (true == m_pLerpAnim->IsLerping()) { // 럴프중이었으면 이동량 반영 x - _matrix currAnimMatrix = Get_BoneMatrix(m_iRootBoneIndex); - currAnimMatrix.r[3] = XMVectorSet(0.f, 0.f, 0.f, 1.f); - m_Bones[i]->Set_CombinedTransformationMatrixPtr(currAnimMatrix); - } - else { - _matrix currAnimMatrix = Get_BoneMatrix(m_iRootBoneIndex); // 현재 루트본의 컴바인드 트랜스폼을 꺼내오고 - _matrix deltaAnimMatrix = XMMatrixMultiply(XMMatrixInverse(nullptr, m_PrevAnimationMatrix), currAnimMatrix); // 이전 트랜스폼이랑 비교해서 델타매트릭스를 꺼냄 - _vector momentum = XMMatrixMultiply(deltaAnimMatrix, XMMatrixRotationQuaternion(m_pTransform->Get_QuarternionVector())).r[3]; - deltaAnimMatrix.r[3] = XMVectorSetW(momentum, 0.f); - - m_pTransform->AccumulateMomentum(deltaAnimMatrix.r[3]); // 모체 트랜스폼에 이동량 반영 - //m_pTransform->Set_State(STATE::POSITION, m_pTransform->Get_State(STATE::POSITION) + deltaAnimMatrix.r[3]); - - m_PrevAnimationMatrix = currAnimMatrix; - currAnimMatrix.r[3] = XMVectorSet(0.f, 0.f, 0.f, 1.f); - m_Bones[i]->Set_CombinedTransformationMatrixPtr(currAnimMatrix); // 루트본의 이동량 소거 - } - } + pBone->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); } - if(m_bIsFinishedAnim) + if (m_bIsFinishedAnim) + { m_Animations[m_iCurrentAnimIndex]->ResetRootMotion(); + m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); + } return m_bIsFinishedAnim; } -void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop) +void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount) { - if (m_iCurrentAnimIndex == iIndex) + if (m_iCurrentAnimIndex == iIndex){ return; + } if (iIndex >= 0 && iIndex < m_iNumAnimations) { m_iCurrentAnimIndex = iIndex; m_bIsLoop = isLoop; + m_fAmount = fAmount; m_Animations[m_iCurrentAnimIndex]->ResetRootMotion(); m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); } - else - m_iCurrentAnimIndex = -1; -} - -void CModel::Stop_Animation() -{ - if (-1 == m_iCurrentAnimIndex // 정지 혹은 시작을 안시켜준 애님 - || m_iCurrentAnimIndex >= (_int)m_iNumAnimations) // 애님 인덱스 초과됨 - { - return; // 잘못된 초기화 - } - - m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); // 애님이 퇴근할 때 불리는 함수를 부르면서 초기상태로 되돌림 -} - -void CModel::RefreshAnim() -{ - m_bIsFinishedAnim = false; - m_bIsFinishedLerp = false; -} -_float CModel::Get_AnimProgressRatio() -{ - return m_Animations[m_iCurrentAnimIndex]->Get_AnimProgressRatio(); -} -_int CModel::Get_AnimProgressPostion(const _char* pAnimChannelName) -{ - return m_Animations[m_iCurrentAnimIndex]->Get_AnimProgressPostion(pAnimChannelName); -} -_float CModel::Get_AnimEstimatedDuration() -{ - if (MODEL::ANIM == m_eType) { - return m_Animations[m_iCurrentAnimIndex]->Get_AnimEstimatedDuration(); - } else { - return 0.f; + m_iCurrentAnimIndex = -1; } - -} -void CModel::Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition) -{ - return m_Animations[m_iCurrentAnimIndex]->Set_AnimProgressPostion(pChannelName, iPosition); -} -void CModel::Set_AnimPauseState(_bool bValue) { - m_Animations[m_iCurrentAnimIndex]->Set_AnimPause(bValue); -} - -void CModel::ReallocateResources(CTransform* pTransform) -{ - SAFE_RELEASE(m_pTransform); - m_pTransform = pTransform; - SAFE_ADDREF(m_pTransform); } const _float4x4* CModel::Get_BoneMatrixPtr(const _char* pBoneName) const @@ -293,16 +196,15 @@ _matrix CModel::Get_BoneMatrix(_uint iBoneIndex) return m_Bones[iBoneIndex]->Get_CombinedTransformationMatrix(); } -void CModel::Get_BoneMatrices(_float4x4* pOut) +void CModel::Combined_BoneMatrix() { - if (0 == m_Bones.size()) { - return; - } - for (_uint i = 0; i < m_Bones.size(); ++i) { - pOut[i] = *m_Bones[i]->Get_CombinedTransformationMatrixPtr(); + for (auto& pBone : m_Bones) + { + pBone->Update_CombinedTransformationMatrix(m_Bones, XMLoadFloat4x4(&m_PreTransformMatrix)); } } + void CModel::Set_CurrentTrackPosition(_float TrackPosition) { m_Animations[m_iCurrentAnimIndex]->Set_CurrentTrackPosition(TrackPosition); @@ -318,6 +220,11 @@ _float CModel::Get_CurrentTrackPosition() return m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackPosition(); } +_float CModel::Get_CurrentTrackProgressRatio() +{ + return m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackProgressRatio(); +} + _float CModel::Get_AnimSpeed() { return m_Animations[m_iCurrentAnimIndex]->Get_AnimSpeed(); @@ -328,16 +235,6 @@ void CModel::Set_AnimSpeed(_float fSpeed) m_Animations[m_iCurrentAnimIndex]->Set_AnimSpeed(fSpeed); } -void CModel::Set_Anim(CModel* Source) -{ - for (auto& Animations : Source->m_Animations) - { - m_Animations.push_back(Animations); - } - - m_iNumAnimations += (_uint)Source->m_Animations.size(); -} - HRESULT CModel::Render(_uint iMeshIndex) { @@ -479,6 +376,29 @@ HRESULT CModel::Ready_Materials_FromFile(const aiScene* pAIScene, const _char* p m_Materials.push_back(pMaterial); } m_Materials.shrink_to_fit(); + + while (true) + { + getline(file, strText); + if (string::npos != strText.find("Origin")) + { + size_t iXPos = strText.find_first_of("X"); + size_t iYPos = strText.find_first_of("Y"); + size_t iZPos = strText.find_first_of("Z"); + size_t iEndPos = strText.find_first_of("}"); + + m_vRadiusOffset.x = stof(strText.substr(iXPos + 2, iYPos - 2)) * 0.01f; + m_vRadiusOffset.z = stof(strText.substr(iYPos + 2, iZPos - 2)) * -0.01f; + m_vRadiusOffset.y = stof(strText.substr(iZPos + 2, iEndPos)) * 0.01f; + } + if (string::npos != strText.find("SphereRadius")) + { + size_t iBeginIndex = strText.find_first_of("="); + m_fRadius = stof(strText.substr(iBeginIndex + 1)) / 100.f; + break; + } + } + return S_OK; } @@ -779,6 +699,12 @@ _bool CModel::SaveAssimpModel(const _char* filename) } } + if (MODEL::ENVIROMENT == m_eType) + { + fwrite(&m_fRadius, sizeof(_float), 1, fp); + fwrite(&m_vRadiusOffset, sizeof(_float3), 1, fp); + } + fclose(fp); return true; @@ -868,6 +794,130 @@ HRESULT CModel::Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fma #endif // EDITOR_PROJECT +HRESULT CModel::Create_CS() +{ + _uint CS1_InputStrides[] = { + sizeof(KEYFRAME_DESC), + sizeof(CHANNEL_DESC), + }; + + _uint CS1_OutputStrides[] = { + sizeof(LOCALPOS_DESC), + }; + + + m_pComputeShader = CComputeShader::Create(m_pDevice, m_pContext, L"../Bin/Resources/ShaderFiles/Shader_Mesh_Compute.hlsl", + "CS_LocalSRT", (_uint)m_Bones.size(), 0, 1, nullptr, CS1_OutputStrides + ); + + if (!m_pComputeShader) + return E_FAIL; + + return S_OK; +} + +void CModel::Create_Temp() +{ + for (auto& anim : m_Animations) + { + anim->CreateGPUData(m_pDevice); + } +} + +void CModel::Create_LocalPosVB() +{ + _uint iCount = (_uint)m_Bones.size(); + _uint iStride = sizeof(LOCALPOS_DESC); + + D3D11_BUFFER_DESC desc = {}; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.ByteWidth = iStride * iCount; + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_UNORDERED_ACCESS; + desc.CPUAccessFlags = 0; + desc.StructureByteStride = iStride; + desc.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED; + + HRESULT hr = m_pDevice->CreateBuffer(&desc, nullptr, &m_pLocalPosBuffer); + + return; +} + + +void CModel::Create_Con() +{ + D3D11_BUFFER_DESC cbDesc = {}; + cbDesc.Usage = D3D11_USAGE_DYNAMIC; + cbDesc.BindFlags = D3D11_BIND_CONSTANT_BUFFER; + cbDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + cbDesc.ByteWidth = sizeof(ANIMSTATE_DESC); + + if (FAILED(m_pDevice->CreateBuffer(&cbDesc, nullptr, &m_pConstantBuffer))) + return; +} + + +void CModel::UpdateAnimationCS() +{ + D3D11_MAPPED_SUBRESOURCE sub{}; + if (SUCCEEDED(m_pContext->Map(m_pConstantBuffer, 0, D3D11_MAP_WRITE_DISCARD, 0, &sub))) + { + ANIMSTATE_DESC* pDesc = (ANIMSTATE_DESC*)sub.pData; + + CAnimation* pAnim = m_Animations[m_iCurrentAnimIndex]; + pDesc->CurrentTime = pAnim->Get_CurrentTrackPosition(); + pDesc->Duration = pAnim->Get_Duration(); + pDesc->Speed = pAnim->Get_AnimSpeed(); + pDesc->BoneCount = (_uint)m_Bones.size(); + pDesc->PreTransformMatrix = m_PreTransformMatrix; + m_pContext->Unmap(m_pConstantBuffer, 0); + } +} + +void CModel::ComputeAnimation() +{ + UpdateAnimationCS(); + + _uint iGroupCountX = ((_uint)m_Bones.size() + 255) / 256; + + CAnimation* pAnim = m_Animations[m_iCurrentAnimIndex]; + ID3D11ShaderResourceView* srvs[2] = { + pAnim->Get_KeyFrameSrv(), + pAnim->Get_ChannelSrv(), + }; + + m_pContext->CSSetShader(m_pComputeShader->Get_Compute(), nullptr, 0); + m_pContext->CSSetConstantBuffers(0, 1, &m_pConstantBuffer); + m_pContext->CSSetShaderResources(0, 2, srvs); + + ID3D11UnorderedAccessView* uavs[1] = { m_pComputeShader->GetOutputUAV(0) }; + m_pContext->CSSetUnorderedAccessViews(0, 1, uavs, nullptr); + + m_pContext->Dispatch(iGroupCountX, 1, 1); + + auto outSubs = m_pComputeShader->ReadBackOutputs(); + m_pLocalPos = static_cast(outSubs[0].pData); +} + + +HRESULT CModel::Create_ParentVB() +{ + D3D11_BUFFER_DESC desc{}; + desc.Usage = D3D11_USAGE_DEFAULT; + desc.ByteWidth = (_int)sizeof(PARENT_DESC) * (_uint)m_Bones.size(); + desc.BindFlags = D3D11_BIND_SHADER_RESOURCE; + desc.CPUAccessFlags = 0; + desc.StructureByteStride = (_int)sizeof(PARENT_DESC); + desc.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED; + + D3D11_SUBRESOURCE_DATA init{}; + init.pSysMem = m_Parent.data(); + + m_pDevice->CreateBuffer(&desc, &init, &m_pParentBuffer); + + + return S_OK; +} +#ifdef _DEBUG HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix) { m_eType = eType; @@ -875,8 +925,10 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ _char szDir[MAX_PATH] = {}; _char szName[MAX_PATH] = {}; _char szEXT[MAX_PATH] = {}; + _splitpath_s(pModelFilePath, nullptr, 0, szDir, MAX_PATH, szName, MAX_PATH, szEXT, MAX_PATH); + if (strcmp(".bin", szEXT) == 0) { LoadData(pModelFilePath); @@ -887,13 +939,16 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ strcpy_s(Temp, szDir); strcat_s(Temp, szName); strcat_s(Temp, ".bin"); + if (FAILED(Assimp_Model_Load(pModelFilePath, eType, PreTransformMatrix, 0))) { return E_FAIL; } + SaveAssimpModel(Temp); return S_OK; } + m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath); LoadAdditionalAnimations(pModelFilePath); @@ -910,21 +965,46 @@ HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _ return E_FAIL; } - if (FAILED(Ready_Animations())) { + if (FAILED(Ready_Animations(m_Bones))) { + return E_FAIL; + } + return S_OK; +} + +#endif // _DEBUG + + + +#ifndef _DEBUG + +HRESULT CModel::Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix) +{ + m_eType = eType; + + LoadData(pModelFilePath); + + m_pSaveModel = m_pGameInstance->Load_SaveModel(pModelFilePath); + + LoadAdditionalAnimations(pModelFilePath); + + XMStoreFloat4x4(&m_PreTransformMatrix, PreTransformMatrix); + + Ready_Bones(m_pSaveModel->Nodes, 0, -1); + + if (FAILED(Ready_Meshes())) { return E_FAIL; } -#ifdef 기무리 - if (MODEL::ENVIROMENT == m_eType) { - m_pGameInstance->LoadTriMeshes(pModelFilePath, m_TriMeshes); - for (_uint i = 0; i < m_iNumMeshes; ++i) { - m_pGameInstance->RegistTriMesh(m_Meshes[i]->Get_Name(), m_TriMeshes[i]); - } + if (FAILED(Ready_Materials(pModelFilePath))) { + return E_FAIL; } -#endif // + if (FAILED(Ready_Animations(m_Bones))) { + return E_FAIL; + } return S_OK; } +#endif void CModel::LoadAdditionalAnimations(const char* ModelFilePath) { @@ -1079,6 +1159,11 @@ _bool CModel::LoadData(const _char* filename) NewModel.Materials.push_back(mat); } + if (MODEL::ENVIROMENT == m_eType) + { + fread(&m_fRadius, sizeof(_float), 1, fp); + fread(&m_vRadiusOffset, sizeof(_float3), 1, fp); + } fclose(fp); @@ -1200,6 +1285,26 @@ HRESULT CModel::Initialize(void* pArg) m_pTransform = m_pOwner->Get_Component(); SAFE_ADDREF(m_pTransform); + + if (m_eType == MODEL::ANIM) + { + Create_Temp(); + m_Parent.resize(m_Bones.size()); + for (size_t i = 0; i < (_uint)m_Bones.size(); i++) + { + m_Parent[i].ParentIndex = m_Bones[i]->Get_ParentBoneIndex(); + } + + if (FAILED(Create_CS())) + return E_FAIL; + + Create_Con(); + Create_LocalPosVB(); + Create_ParentVB(); + + } + + return S_OK; } @@ -1254,13 +1359,13 @@ HRESULT CModel::Ready_Bones(const std::vector& allNodes, _int currentI return S_OK; } -HRESULT CModel::Ready_Animations() +HRESULT CModel::Ready_Animations(const vector& Bones) { m_iNumAnimations = m_pSaveModel->AnimationCount; for (size_t i = 0; i < m_iNumAnimations; i++) { - CAnimation* pAnimation = CAnimation::Create(this, &m_pSaveModel->Animations[i]); + CAnimation* pAnimation = CAnimation::Create(Bones,this, &m_pSaveModel->Animations[i]); if (nullptr == pAnimation) return E_FAIL; @@ -1301,6 +1406,11 @@ void CModel::Free() { __super::Free(); + + SAFE_RELEASE(m_pComputeShader); + SAFE_RELEASE(m_pConstantBuffer); + SAFE_RELEASE(m_pParentBuffer); + SAFE_RELEASE(m_pLocalPosBuffer); for (auto& pAnimation : m_Animations) { SAFE_RELEASE(pAnimation); } @@ -1323,8 +1433,12 @@ void CModel::Free() SAFE_RELEASE(m_pLerpAnim); m_SaveModel.clear(); -} + m_Parent.clear(); + m_AnimRanges.clear(); + +} +#ifdef _DEBUG void CModel::Describe_Entity() { //GUI::Begin("Model_Desc"); @@ -1373,3 +1487,6 @@ void CModel::Describe_Entity() //} //GUI::End(); } + +#endif // _DEBUG + diff --git a/Jusin154_Team3D/Engine/Private/Mouse_Manager.cpp b/Jusin154_Team3D/Engine/Private/Mouse_Manager.cpp index 0510c48ff..d48b710c4 100644 --- a/Jusin154_Team3D/Engine/Private/Mouse_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Mouse_Manager.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Mouse_Manager.h" #include "GameObject.h" #include "GameInstance.h" @@ -50,7 +50,7 @@ HRESULT CMouse_Manager::Initialize() void CMouse_Manager::Update() { if (GetForegroundWindow() == m_ghWnd) { - /* ºäÆ÷Ʈ ¸¶¿콺 ÁÂǥ*/ + /* 뷰포트 마우스 좌표*/ GetCursorPos(&m_ptCurrentMouseCur); m_vMove = { _float(m_ptCurrentMouseCur.x - m_ptOldMouseCur.x), _float(m_ptCurrentMouseCur.y - m_ptOldMouseCur.y) , 0.f }; @@ -59,7 +59,7 @@ void CMouse_Manager::Update() } m_ptOldMouseCur = m_ptCurrentMouseCur; - +#ifdef _DEBUG GUI::Begin("Mouse_Manager"); GUI::Text("AccumulateMomentum %f, %f", m_vMove.x, m_vMove.y); GUI::Text("CurPos %d, %d", m_ptCurrentMouseCur.x, m_ptCurrentMouseCur.y); @@ -79,7 +79,7 @@ void CMouse_Manager::Update() GUI::Text("INV_VPPOS: %f, %f", pt.x - (viewPort.Width * 0.5f), pt.y - (viewPort.Height * 0.5f)); GUI::End(); - +#endif Picking(); } else { @@ -106,22 +106,22 @@ void CMouse_Manager::Picking() _float4 vMousePos = {}; POINT vViewPortMousePos = Get_MouseViewPortPos(); - /* ºäÆ÷Ʈ ÁÂǥ¸¦ Åõ¿µ ½ºÆäÀ̽º ÁÂǥ·Î ¹ٲٴ À۾÷ */ + /* 뷰포트 좌표를 투영 스페이스 좌표로 바꾸는 작업 */ vMousePos.x = vViewPortMousePos.x / (m_iWinCX * 0.5f) - 1.f; vMousePos.y = vViewPortMousePos.y / -(m_iWinCY * 0.5f) + 1.f; - vMousePos.z = 0.f; // ±ÙÆò¸é»óÀÇ ÁÂǥÀ̱â ¶§¹®¿¡ 0 - vMousePos.w = 1.f; // W ³ª´©±⸦ ¼öÇàÇÑ »óÅÂÀ̱â ¶§¹®¿¡ 1 + vMousePos.z = 0.f; // 근평면상의 좌표이기 때문에 0 + vMousePos.w = 1.f; // W 나누기를 수행한 상태이기 때문에 1 - /* Åõ¿µ½ºÆäÀ̽º ÁÂǥ -> º佺ÆäÀ̽º ÁÂǥ*/ + /* 투영스페이스 좌표 -> 뷰스페이스 좌표*/ _matrix InverseProjectionMatrix = XMMatrixInverse(nullptr, m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ)); XMStoreFloat4(&vMousePos, XMVector4Transform(XMLoadFloat4(&vMousePos), InverseProjectionMatrix)); - /* º佺ÆäÀ̽º ÁÂǥ -> ¿ùµå ½ºÆäÀ̽º ÁÂǥ*/ + /* 뷰스페이스 좌표 -> 월드 스페이스 좌표*/ _float3 vRayPos, vRayDir = {}; - vRayPos = _float3{ 0.f,0.f,0.f }; // º佺ÆäÀ̽º »󿡼­ ī¸޶óÀÇ À§ġ´Â 0,0,0 - vRayDir = _float3{ (_float)vMousePos.x, (_float)vMousePos.y, (_float)vMousePos.z }; // ·¹ÀÌÀÇ ¹æÇ⺤Åʹ ¸¶¿콺À§ġ¿¡¼­ ī¸޶ó À§ġ »« °ª + vRayPos = _float3{ 0.f,0.f,0.f }; // 뷰스페이스 상에서 카메라의 위치는 0,0,0 + vRayDir = _float3{ (_float)vMousePos.x, (_float)vMousePos.y, (_float)vMousePos.z }; // 레이의 방향벡터는 마우스위치에서 카메라 위치 뺀 값 _matrix InverseViewSpaceMatrix = XMMatrixInverse(nullptr, m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW)); @@ -165,7 +165,7 @@ _bool CMouse_Manager::MousePicking_InWorldSpace(const _float3& vPointA, const _f _bool isCollision; _float fU, fV, fDist = {}; - + isCollision = CMyTools::IntersectTri(XMLoadFloat3(&m_vRayPos[ENUM_CLASS(RAY::WORLD)]), XMLoadFloat3(&m_vRayDir[ENUM_CLASS(RAY::WORLD)]), XMLoadFloat3(&vPointA), XMLoadFloat3(&vPointB), XMLoadFloat3(&vPointC), fDist, fU, fV); @@ -186,24 +186,24 @@ _bool CMouse_Manager::MousePicking_InWorldSpace(const _float3& vPointA, const _f // const float cw = float(rc.right - rc.left); // const float ch = float(rc.bottom - rc.top); // -// // 2) ºä/ÇÁ·ÎÁ§¼Ç: ȭ¸é Á»ó´Ü(0,0) ~ (cw,ch), Y-´ٿî +// // 2) 뷰/프로젝션: 화면 좌상단(0,0) ~ (cw,ch), Y-다운 // XMFLOAT4X4 view{}, proj{}; // XMStoreFloat4x4(&view, XMMatrixIdentity()); // XMStoreFloat4x4(&proj, XMMatrixOrthographicOffCenterLH(0.f, cw, ch, 0.f, 0.f, 1.f)); // -// // 3) ¸¶¿콺 ÁÂǥ (Ŭ¶óÀ̾ðƮ ÁÂǥ·Î º¯ȯ) +// // 3) 마우스 좌표 (클라이언트 좌표로 변환) // POINT pt{}; GetCursorPos(&pt); ScreenToClient(m_ghWnd, &pt); // -// // 4) ¿ùµå Çà·Ä: 30x30 ½ºÄÉÀÏ + À§ġ(Çȼ¿ ¼¾ÅÍ Á¤·Ä: +0.5f) +// // 4) 월드 행렬: 30x30 스케일 + 위치(픽셀 센터 정렬: +0.5f) // XMFLOAT4X4 world{}; // world._11 = 30.f; // width // world._22 = 30.f; // height // world._33 = 1.f; // keep // world._44 = 1.f; // keep -// world._41 = floorf((float)pt.x) + 0.5f; // translation X (row-vector ±Ծà) +// world._41 = floorf((float)pt.x) + 0.5f; // translation X (row-vector 규약) // world._42 = floorf((float)pt.y) + 0.5f; // translation Y // -// // 5) ¹ÙÀεù +// // 5) 바인딩 // m_pShader->Bind_Matrix("g_WorldMatrix", &world); // m_pShader->Bind_Matrix("g_ViewMatrix", &view); // m_pShader->Bind_Matrix("g_ProjMatrix", &proj); @@ -211,9 +211,9 @@ _bool CMouse_Manager::MousePicking_InWorldSpace(const _float3& vPointA, const _f // m_pShader->Bind_SRV("g_Texture", m_pMouseSRV); // m_pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(float)); // -// // 6) »óÅ ¼¾÷(±ÇÀå) +// // 6) 상태 셋업(권장) // // - DepthTest OFF / DepthWrite OFF (UI) -// // - AlphaBlend ON (Çʿä½Ã) +// // - AlphaBlend ON (필요시) // m_pShader->Begin(2); // m_pRect->Bind_Resources(); // m_pRect->Render(); diff --git a/Jusin154_Team3D/Engine/Private/Navigation.cpp b/Jusin154_Team3D/Engine/Private/Navigation.cpp index 05e375cf6..af41be85b 100644 --- a/Jusin154_Team3D/Engine/Private/Navigation.cpp +++ b/Jusin154_Team3D/Engine/Private/Navigation.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "Navigation.h" #include "Cell.h" @@ -68,48 +68,48 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector& return S_OK; } - // iCrossCount > 0 À̹ǷÎ - // ½½¶óÀ̵ù ȤÀº À̿ôã±â ȤÀº ºí·Ï + // iCrossCount > 0 이므로 + // 슬라이딩 혹은 이웃찾기 혹은 블록 _uint iCrossedNeighborCount = 0; _int iBlockedLine = -1; _int iCrossedNeighbor = -1; { _int iTempNeighbor = -1; for (int i = 0; i < 3; ++i) { - if (fOuts[i] < 0.f) { // ¼±ºп¡ °¡·θ·Çû´µ¥ + if (fOuts[i] < 0.f) { // 선분에 가로막혔는데 iTempNeighbor = (*m_pCells)[m_iCurrentCellIndex]->Get_Neighbor((NAVI_LINE)i); - if (-1 != iTempNeighbor) { // À̿ôÀ¸·Î ÇâÇϴ ±æ À̸é + if (-1 != iTempNeighbor) { // 이웃으로 향하는 길 이면 iCrossedNeighborCount++; iCrossedNeighbor = iTempNeighbor; } else { - iBlockedLine = i; // Áø¥ ¸·Èù ±æÀ̸é ÀúÀå + iBlockedLine = i; // 진짜 막힌 길이면 저장 } } } } // 10 11 // 20 21 22 - if (iCrossCount == iCrossedNeighborCount) // °¡·θ·Çû´ø ±æÀÌ ¸ðµÎ À̿ôÀÌ Àִ ±æÀ̾úÀ¸¸é + if (iCrossCount == iCrossedNeighborCount) // 가로막혔던 길이 모두 이웃이 있는 길이었으면 { - m_iCurrentCellIndex = iCrossedNeighbor; // ¾ƹ« ¹æÇâÀ¸·γª + m_iCurrentCellIndex = iCrossedNeighbor; // 아무 방향으로나 vCorrectOut = XMVector3TransformNormal(vCurrentDirection, XMLoadFloat4x4(&s_WorldMatrix)); - return S_OK; // À̵¿ + return S_OK; // 이동 } // 10 // 20 21 - if (iCrossCount > iCrossedNeighborCount) // °¡·θ·Çû´ø ±æ Áß À̿ôÀ¸·Î ÇâÇϴ ±æÀÌ ´õ Àû´ٸé + if (iCrossCount > iCrossedNeighborCount) // 가로막혔던 길 중 이웃으로 향하는 길이 더 적다면 { - if (iCrossCount == 2 && iCrossedNeighborCount == 0) {// °¡·θ·Çû´ø ±æÀÌ µÑ ´Ù ¸·Èù ±æÀ̾úÀ¸¸é À̵¿ºҰ¡´É + if (iCrossCount == 2 && iCrossedNeighborCount == 0) {// 가로막혔던 길이 둘 다 막힌 길이었으면 이동불가능 return E_FAIL; } // 10 // 21 - // ¸·Èù ±æ·Î ½½¶óÀ̵ù Ÿ¸é µÊ + // 막힌 길로 슬라이딩 타면 됨 - // ½½¶óÀ̵ù º¤ÅÍ + // 슬라이딩 벡터 _vector vNeighborNormal = -XMLoadFloat3(pCell->Get_Normarl((NAVI_LINE)iBlockedLine)); vCurrentDirection = vCurrentDirection - XMVector3Dot(vCurrentDirection, vNeighborNormal) * vNeighborNormal; if (iCrossedNeighborCount == 0) { @@ -124,7 +124,7 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector& if (SUCCEEDED((*m_pCells)[iCrossedNeighbor]->isIn(vEstimatedDestination, fOuts, iCrossCount))) { m_iCurrentCellIndex = iCrossedNeighbor; } - else { // K ÀÚ ³׺ñµµƮ°¡ ÀÖÀ» ¶§ ¾Ʒ¡ »ﰢÇü¿¡¼­ ¹ٷÎ À­»ﰢÇüÀ¸·Î °¬À» °æ¿ìÀÓ + else { // K 자 네비도트가 있을 때 아래 삼각형에서 바로 윗삼각형으로 갔을 경우임 int iFoundCell = Find_Cell_ByPosition(vEstimatedDestination, m_iCurrentCellIndex, 5); if (iFoundCell >= 0) @@ -135,7 +135,7 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector& } else { - return E_FAIL; // ¿ÏÀüÈ÷ ³׺ñ ¹Û + return E_FAIL; // 완전히 네비 밖 } } } @@ -143,8 +143,8 @@ HRESULT CNavigation::isMove(_fvector vCurrentPos, _vector vCurrentDir, _vector& } else { assert(false); - // ºҰ¡´É, - // °æ¿ìÀÇ ¼ö°¡ ¾øÀ½ + // 불가능, + // 경우의 수가 없음 } return S_OK; } @@ -162,32 +162,32 @@ HRESULT CNavigation::Get_NearCell(_fvector vCurrentPos, _int& iDestCell) return S_OK; } - // iCrossCount > 0 À̹ǷÎ - // ½½¶óÀ̵ù ȤÀº À̿ôã±â ȤÀº ºí·Ï + // iCrossCount > 0 이므로 + // 슬라이딩 혹은 이웃찾기 혹은 블록 _uint iCrossedNeighborCount = 0; _int iBlockedLine = -1; _int iCrossedNeighbor = -1; { _int iTempNeighbor = -1; for (int i = 0; i < 3; ++i) { - if (fOuts[i] < 0.f) { // ¼±ºп¡ °¡·θ·Çû´µ¥ + if (fOuts[i] < 0.f) { // 선분에 가로막혔는데 iTempNeighbor = (*m_pCells)[m_iCurrentCellIndex]->Get_Neighbor((NAVI_LINE)i); - if (-1 != iTempNeighbor) { // À̿ôÀ¸·Î ÇâÇϴ ±æ À̸é + if (-1 != iTempNeighbor) { // 이웃으로 향하는 길 이면 iCrossedNeighborCount++; iCrossedNeighbor = iTempNeighbor; } else { - iBlockedLine = i; // Áø¥ ¸·Èù ±æÀ̸é ÀúÀå + iBlockedLine = i; // 진짜 막힌 길이면 저장 } } } } // 10 11 // 20 21 22 - if (iCrossCount == iCrossedNeighborCount) // °¡·θ·Çû´ø ±æÀÌ ¸ðµÎ À̿ôÀÌ Àִ ±æÀ̾úÀ¸¸é + if (iCrossCount == iCrossedNeighborCount) // 가로막혔던 길이 모두 이웃이 있는 길이었으면 { iDestCell = iCrossedNeighbor; - return S_OK; // À̵¿ + return S_OK; // 이동 } return E_FAIL; } @@ -362,7 +362,9 @@ void CNavigation::Free() } } } +#ifdef _DEBUG void CNavigation::Describe_Entity() { } +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/PanelObject.cpp b/Jusin154_Team3D/Engine/Private/PanelObject.cpp index bc10f900e..73c36b4f2 100644 --- a/Jusin154_Team3D/Engine/Private/PanelObject.cpp +++ b/Jusin154_Team3D/Engine/Private/PanelObject.cpp @@ -138,17 +138,17 @@ void CPanelObject::ElementAllVisible(_bool bVisible) } } -void CPanelObject::Add_Function(wstring Name, functionEvent) +void CPanelObject::Add_Function(wstring Name, functionEvent) { m_ElementFunction_map.emplace(Name, Event); } -void CPanelObject::Function_Callback(wstring Name) +void CPanelObject::Function_Callback(wstring Name, void* pArg) { auto range = m_ElementFunction_map.equal_range(Name); for (auto it = range.first; it != range.second; ++it) { - it->second(); + it->second(pArg); } } diff --git a/Jusin154_Team3D/Engine/Private/PartObject.cpp b/Jusin154_Team3D/Engine/Private/PartObject.cpp index 7421223b0..7a84526df 100644 --- a/Jusin154_Team3D/Engine/Private/PartObject.cpp +++ b/Jusin154_Team3D/Engine/Private/PartObject.cpp @@ -23,6 +23,7 @@ HRESULT CPartObject::Initialize(void* pArg) if (FAILED(__super::Initialize(pArg))){ return E_FAIL; } + PARTOBJECT_DESC* pDesc = static_cast(pArg); m_pParentTransformCom = pDesc->pParentTransform; diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp index 595e32a22..177a8856f 100644 --- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp @@ -38,7 +38,7 @@ PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidB pShape = PSX::PxRigidActorExt::createExclusiveShape(*pActorDynamic, geoHolder.capsule(), *m_pMaterials[ENUM_CLASS(RigidBody.Get_MaterialType())]); break; case ACTOR::SPHERE: - geoHolder = PSX::PxCapsuleGeometry(vVolume.x); + geoHolder = PSX::PxSphereGeometry(vVolume.x); pShape = PSX::PxRigidActorExt::createExclusiveShape(*pActorDynamic, geoHolder.sphere(), *m_pMaterials[ENUM_CLASS(RigidBody.Get_MaterialType())]); break; default: @@ -47,11 +47,12 @@ PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidB } assert(nullptr != pShape); + // createExclusiveShape를 하면 쉐이프가 actor에 attach 된 상태로 나오기 때문에 + // 쉐이프 속성만 건드려서 액터의 쉐이프를 수정함 pShape->setFlags(RigidBody.Get_ShapeFlags()); pShape->setContactOffset(RigidBody.Get_ContactOffset()); pShape->setRestOffset(0.f); - pActorDynamic->attachShape(*pShape); PSX::PxRigidBodyFlags pxRigidFlags = RigidBody.Get_RigidBodyFlags(); pActorDynamic->setRigidBodyFlags(pxRigidFlags); @@ -101,7 +102,7 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody // GeoFlag 중 더블사이드는 이제 지원 안함, 할거면 노말 뒤집어서 하라고 함 // pPxMeshGeometry->meshFlags |= PSX::PxMeshGeometryFlag::eDOUBLE_SIDED; // 유효성 체크 - PX_ASSERT(pPxMeshGeometry.isValid()); + PX_ASSERT(pPxMeshGeometry->isValid()); m_TriangleMeshGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry); } break; @@ -143,6 +144,7 @@ void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxT { m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh); } +#ifdef EDITOR_PROJECT HRESULT CPhysX_Manager::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix) { @@ -194,6 +196,7 @@ HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vector& TriMeshes) { @@ -274,7 +277,6 @@ void CPhysX_Manager::Update(_float fTimeDelta) //Update_Dynamic_AllActors(); } } - void CPhysX_Manager::Update_Dynamic_ActiveActors() { PSX::PxU32 iNumActiveActor = {}; @@ -330,10 +332,19 @@ unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor if (m_pActiveBodys.end() != iter) { m_pActiveBodys.erase(iter); // 액터를 활성화 맵에서 분리 해주고 iterOut = m_pRestBodies.insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌 - if (m_pScene != nullptr) { - m_pScene->removeActor(Actor); - } } + + PSX::PxScene* pOwnerScene = Actor.getScene(); + + if (pOwnerScene == nullptr) { // 액터가 씬에 없는 경우 nullptr이 나옴 + return iterOut; + } + + if (pOwnerScene != m_pScene) { // 액터가 속한 씬이 아닌경우 빼면 안됨 + return iterOut; + } + m_pScene->removeActor(Actor); + return iterOut; } @@ -405,7 +416,8 @@ HRESULT CPhysX_Manager::Initialize() } if (FAILED(Connect_DebugServer())) { - ASSERT_NURI(false); + //ASSERT_NURI(false); + //ASSERT_JINWOO(false); } { // 씬 세팅 @@ -473,16 +485,30 @@ HRESULT CPhysX_Manager::Initialize() pPvdClient->setScenePvdFlag(PSX::PxPvdSceneFlag::eTRANSMIT_SCENEQUERIES, true); } - // m_pScene->overlap();?????? + m_pMaterials.reserve(ENUM_CLASS(PXMATERIAL::END)); + m_pMaterials.push_back(m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f)); +#ifndef _DEBUG + PlaneData.eKind = PHYSX_KIND::BODY_STATIC; + PlaneData.iSubKind = UINT_MAX; + PlaneData.pOwner = nullptr; + PlaneData.pBody = nullptr; + + PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); + pGroundPlane->userData = &PlaneData; + pGroundPlane->setName("PHYSX_MANAGER_PLANE"); + m_pScene->addActor(*pGroundPlane);; +#endif // _DEBUG + + + // m_pScene->overlap();?????? +#ifdef EDITOR_PROJECT #ifdef 기무리 PlaneData.eKind = PHYSX_KIND::BODY_STATIC; PlaneData.iSubKind = UINT_MAX; PlaneData.pOwner = nullptr; PlaneData.pBody = nullptr; - m_pMaterials.reserve(ENUM_CLASS(PXMATERIAL::END)); - m_pMaterials.push_back(m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f)); PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); pGroundPlane->userData = &PlaneData; pGroundPlane->setName("PHYSX_MANAGER_PLANE"); @@ -506,6 +532,65 @@ HRESULT CPhysX_Manager::Initialize() //} #endif // 기무리 + +#ifdef 진우 + PlaneData.eKind = PHYSX_KIND::BODY_STATIC; + PlaneData.iSubKind = UINT_MAX; + PlaneData.pOwner = nullptr; + PlaneData.pBody = nullptr; + + PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); + pGroundPlane->userData = &PlaneData; + pGroundPlane->setName("PHYSX_MANAGER_PLANE"); + m_pScene->addActor(*pGroundPlane);; + + //{ + // float halfExtent = .5f; + // physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial); + // physx::PxU32 size = 30; + // physx::PxTransform pxTransform(physx::PxVec3(0)); + + // for (physx::PxU32 i = 0; i < size; i++) { + // for (physx::PxU32 j = 0; j < size - i; j++) { + // physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent); + // physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm)); + // body->attachShape(*shape); + // physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f); + // m_pScene->addActor(*body); + // } + // } + //} +#endif // 진우 +#endif // EDITOR_PROJECT + +#ifdef Bin + PlaneData.eKind = PHYSX_KIND::BODY_STATIC; + PlaneData.iSubKind = UINT_MAX; + PlaneData.pOwner = nullptr; + PlaneData.pBody = nullptr; + + PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]); + pGroundPlane->userData = &PlaneData; + pGroundPlane->setName("PHYSX_MANAGER_PLANE"); + m_pScene->addActor(*pGroundPlane);; + + //{ + // float halfExtent = .5f; + // physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial); + // physx::PxU32 size = 30; + // physx::PxTransform pxTransform(physx::PxVec3(0)); + + // for (physx::PxU32 i = 0; i < size; i++) { + // for (physx::PxU32 j = 0; j < size - i; j++) { + // physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent); + // physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm)); + // body->attachShape(*shape); + // physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f); + // m_pScene->addActor(*body); + // } + // } + //} +#endif // 진우 return S_OK; diff --git a/Jusin154_Team3D/Engine/Private/Picking.cpp b/Jusin154_Team3D/Engine/Private/Picking.cpp index 316c3fafb..21dd71c4e 100644 --- a/Jusin154_Team3D/Engine/Private/Picking.cpp +++ b/Jusin154_Team3D/Engine/Private/Picking.cpp @@ -33,8 +33,9 @@ HRESULT CPicking::Initialize(HWND hWnd, _uint iSizeX, _uint iSizeY) TextureDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ | D3D11_CPU_ACCESS_WRITE; TextureDesc.MiscFlags = 0; - if (FAILED(m_pDevice->CreateTexture2D(&TextureDesc, nullptr, &m_pTexture2D))) + if (FAILED(m_pDevice->CreateTexture2D(&TextureDesc, nullptr, &m_pTexture2D))){ return E_FAIL; + } m_iNumPixels = iSizeX * iSizeY; m_pPixels = new _float4[m_iNumPixels]; @@ -49,8 +50,9 @@ void CPicking::Update() m_pGameInstance->Copy_RenderTarget(TEXT("Target_Depth"), m_pTexture2D); D3D11_MAPPED_SUBRESOURCE SubResource{}; - if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_READ_WRITE, 0, &SubResource))) + if (FAILED(m_pContext->Map(m_pTexture2D, 0, D3D11_MAP_READ_WRITE, 0, &SubResource))){ return; + } memcpy(m_pPixels, SubResource.pData, sizeof(_float4) * m_iNumPixels); @@ -66,9 +68,12 @@ _bool CPicking::isPicking(_float3* pOut) _uint iMouseIndex = ptMouse.y * m_iNumPixelW + ptMouse.x; - if (0.f == m_pPixels[iMouseIndex].w) + if (iMouseIndex > m_iNumPixelW * m_iNumPixelH) return false; + if (0.f == m_pPixels[iMouseIndex].w) + return false; + _float3 vMousePos = _float3(0.f, 0.f, 0.f); vMousePos.x = ptMouse.x / (m_iNumPixelW * 0.5f) - 1.f; diff --git a/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp b/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp index 55a473d60..9e5192594 100644 --- a/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/Prototype_Manager.cpp @@ -104,19 +104,18 @@ HRESULT CPrototype_Manager::Ready_StaticComponents() HRESULT CPrototype_Manager::Ready_EngineAssets() { - if (FAILED(Add_Asset_Prototype(g_iStaticLevel, TEXT("FX_DEFERRED"), + if (FAILED(Add_Asset_Prototype(g_iStaticLevel, FX_DEFERRED, CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_Deferred.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { return E_FAIL; } - - if (FAILED(Add_Asset_Prototype(g_iStaticLevel, TEXT("FX_LASTCOLOR"), + if (FAILED(Add_Asset_Prototype(g_iStaticLevel, FX_LASTCOLOR, CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_LastColor.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { return E_FAIL; } - if (FAILED(Add_Asset_Prototype(g_iStaticLevel, TEXT("FX_WEIGHTBELND"), + if (FAILED(Add_Asset_Prototype(g_iStaticLevel, FX_WEIGHTBELND, CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_WeightBlend.hlsl"), VTXPOSTEX::Elements, VTXPOSTEX::iNumElements)))) { return E_FAIL; diff --git a/Jusin154_Team3D/Engine/Private/QuadTree.cpp b/Jusin154_Team3D/Engine/Private/QuadTree.cpp new file mode 100644 index 000000000..29acc2ebc --- /dev/null +++ b/Jusin154_Team3D/Engine/Private/QuadTree.cpp @@ -0,0 +1,391 @@ +#include "pch.h" +#include "QuadTree.h" +#include "GameInstance.h" + +CQuadTree::CQuadTree() +{ +} +#ifdef _DEBUG + +void CQuadTree::Set_CullingRadius(_float fRadius) +{ + m_fCullingRadius = fRadius; + + if (nullptr == m_pChildren[CORNER_LT]) + return; + + for (_uint i = 0; i < CORNER_END; i++) + { + m_pChildren[i]->Set_CullingRadius(fRadius); + } +} +#endif // _DEBUG + +void CQuadTree::Culling(CGameInstance* pGameInstance, const _float3* pVertexPositions, _uint* pIndices, _uint* pNumIndices) +{ + /* 해당 노드에서 그릴건지 확인 */ + if (nullptr == m_pChildren[CORNER_LT] || + true == isDraw(pGameInstance, pVertexPositions)) + { + _bool isDraw[NEIGHBOR_END] = { true, true, true, true }; + + /* 이웃노드가 그려지는지 확인 */ + for (size_t i = 0; i < NEIGHBOR_END; i++) + { + if (nullptr != m_pNeighbors[i]) + isDraw[i] = m_pNeighbors[i]->isDraw(pGameInstance, pVertexPositions); + + } + + /* 점들이 절두체 안에 있는지 확인 */ + _bool isIn[4] = { + pGameInstance->isIn_LocalFrustum(XMLoadFloat3(&pVertexPositions[m_iCorners[0]]), 0.f), + pGameInstance->isIn_LocalFrustum(XMLoadFloat3(&pVertexPositions[m_iCorners[1]]), 0.f), + pGameInstance->isIn_LocalFrustum(XMLoadFloat3(&pVertexPositions[m_iCorners[2]]), 0.f), + pGameInstance->isIn_LocalFrustum(XMLoadFloat3(&pVertexPositions[m_iCorners[3]]), 0.f), + }; + + /* 이웃하는 노드가 모두 그려진다면 */ + if (true == isDraw[NEIGHBOR_LEFT] && + true == isDraw[NEIGHBOR_TOP] && + true == isDraw[NEIGHBOR_RIGHT] && + true == isDraw[NEIGHBOR_BOTTOM]) + { + /* 삼각형의 한점이라도 절두체 안에 있다면 그린다(인덱스를 넣어주고 NumIndices++)*/ + + if (true == isIn[0] || + true == isIn[1] || + true == isIn[2]) + { + pIndices[(*pNumIndices)++] = m_iCorners[0]; + pIndices[(*pNumIndices)++] = m_iCorners[1]; + pIndices[(*pNumIndices)++] = m_iCorners[2]; + } + + if (true == isIn[0] || + true == isIn[2] || + true == isIn[3]) + { + pIndices[(*pNumIndices)++] = m_iCorners[0]; + pIndices[(*pNumIndices)++] = m_iCorners[2]; + pIndices[(*pNumIndices)++] = m_iCorners[3]; + } + + return; + } + + /* 이웃 노드와 크기 차이가 있을 때 */ + _uint iLC, iTC, iRC, iBC; + + iLC = (m_iCorners[CORNER_LT] + m_iCorners[CORNER_LB]) >> 1; + iTC = (m_iCorners[CORNER_LT] + m_iCorners[CORNER_RT]) >> 1; + iRC = (m_iCorners[CORNER_RT] + m_iCorners[CORNER_RB]) >> 1; + iBC = (m_iCorners[CORNER_LB] + m_iCorners[CORNER_RB]) >> 1; + + + /* 왼쪽 아래 확인 */ + if (true == isIn[0] || + true == isIn[2] || + true == isIn[3]) + { + /* 왼쪽 이웃 확인 (같은 크기로 그려지는지)*/ + if (false == isDraw[NEIGHBOR_LEFT]) + { + /* 아닐때 삼각형 분할 */ + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LT]; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = iLC; + + pIndices[(*pNumIndices)++] = iLC; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LB]; + } + else + { + /* 같은 크기면 인접한 큰 삼각형으로(사각형의 1/4 )*/ + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LT]; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LB]; + } + + if (false == isDraw[NEIGHBOR_BOTTOM]) + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LB]; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = iBC; + + pIndices[(*pNumIndices)++] = iBC; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RB]; + } + else + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LB]; + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RB]; + } + } + + /* 오른쪽 위 확인*/ + if (true == isIn[0] || + true == isIn[1] || + true == isIn[2]) + { + if (false == isDraw[NEIGHBOR_TOP]) + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LT]; + pIndices[(*pNumIndices)++] = iTC; + pIndices[(*pNumIndices)++] = m_iCenter; + + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = iTC; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RT]; + } + else + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_LT]; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RT]; + pIndices[(*pNumIndices)++] = m_iCenter; + } + + if (false == isDraw[NEIGHBOR_RIGHT]) + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RT]; + pIndices[(*pNumIndices)++] = iRC; + pIndices[(*pNumIndices)++] = m_iCenter; + + pIndices[(*pNumIndices)++] = m_iCenter; + pIndices[(*pNumIndices)++] = iRC; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RB]; + } + else + { + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RT]; + pIndices[(*pNumIndices)++] = m_iCorners[CORNER_RB]; + pIndices[(*pNumIndices)++] = m_iCenter; + } + } + + return; + } + + /* 현재 사각형이 절두체 안에 있다면 자식 호출 */ + /* Range 는 사각형의 중심에서 꼭짓점까지의 거리 */ + _float fRange = XMVector3Length(XMLoadFloat3(&pVertexPositions[m_iCorners[CORNER_LT]]) - XMLoadFloat3(&pVertexPositions[m_iCenter])).m128_f32[0]; + + if (true == pGameInstance->isIn_LocalFrustum(XMLoadFloat3(&pVertexPositions[m_iCenter]), fRange * 1.5f)) + { + for (size_t i = 0; i < CORNER_END; i++) + { + if (nullptr != m_pChildren[i]) + m_pChildren[i]->Culling(pGameInstance, pVertexPositions, pIndices, pNumIndices); + } + } + +} + +void CQuadTree::SetUp_Neighbors() +{ + if (nullptr == m_pChildren[CORNER_LT]->m_pChildren[CORNER_LT]) + return; + + /* 해당 위치의 child의 neighbor에 포인터를 저장*/ + m_pChildren[CORNER_LT]->m_pNeighbors[NEIGHBOR_RIGHT] = m_pChildren[CORNER_RT]; + m_pChildren[CORNER_LT]->m_pNeighbors[NEIGHBOR_BOTTOM] = m_pChildren[CORNER_LB]; + + m_pChildren[CORNER_RT]->m_pNeighbors[NEIGHBOR_LEFT] = m_pChildren[CORNER_LT]; + m_pChildren[CORNER_RT]->m_pNeighbors[NEIGHBOR_BOTTOM] = m_pChildren[CORNER_RB]; + + m_pChildren[CORNER_RB]->m_pNeighbors[NEIGHBOR_LEFT] = m_pChildren[CORNER_LB]; + m_pChildren[CORNER_RB]->m_pNeighbors[NEIGHBOR_TOP] = m_pChildren[CORNER_RT]; + + m_pChildren[CORNER_LB]->m_pNeighbors[NEIGHBOR_RIGHT] = m_pChildren[CORNER_RB]; + m_pChildren[CORNER_LB]->m_pNeighbors[NEIGHBOR_TOP] = m_pChildren[CORNER_LT]; + + /* 다른 부모의 자식인 인접한 이웃을 설정 */ + if (nullptr != m_pNeighbors[NEIGHBOR_LEFT]) + { + m_pChildren[CORNER_LT]->m_pNeighbors[NEIGHBOR_LEFT] = m_pNeighbors[NEIGHBOR_LEFT]->m_pChildren[CORNER_RT]; + m_pChildren[CORNER_LB]->m_pNeighbors[NEIGHBOR_LEFT] = m_pNeighbors[NEIGHBOR_LEFT]->m_pChildren[CORNER_RB]; + } + + if (nullptr != m_pNeighbors[NEIGHBOR_TOP]) + { + m_pChildren[CORNER_LT]->m_pNeighbors[NEIGHBOR_TOP] = m_pNeighbors[NEIGHBOR_TOP]->m_pChildren[CORNER_LB]; + m_pChildren[CORNER_RT]->m_pNeighbors[NEIGHBOR_TOP] = m_pNeighbors[NEIGHBOR_TOP]->m_pChildren[CORNER_RB]; + } + + if (nullptr != m_pNeighbors[NEIGHBOR_RIGHT]) + { + m_pChildren[CORNER_RT]->m_pNeighbors[NEIGHBOR_RIGHT] = m_pNeighbors[NEIGHBOR_RIGHT]->m_pChildren[CORNER_LT]; + m_pChildren[CORNER_RB]->m_pNeighbors[NEIGHBOR_RIGHT] = m_pNeighbors[NEIGHBOR_RIGHT]->m_pChildren[CORNER_LB]; + } + + if (nullptr != m_pNeighbors[NEIGHBOR_BOTTOM]) + { + m_pChildren[CORNER_LB]->m_pNeighbors[NEIGHBOR_BOTTOM] = m_pNeighbors[NEIGHBOR_BOTTOM]->m_pChildren[CORNER_LT]; + m_pChildren[CORNER_RB]->m_pNeighbors[NEIGHBOR_BOTTOM] = m_pNeighbors[NEIGHBOR_BOTTOM]->m_pChildren[CORNER_RT]; + } + + for (size_t i = 0; i < CORNER_END; i++) + { + m_pChildren[i]->SetUp_Neighbors(); + } +} + +_bool CQuadTree::Picking(CGameInstance* pGameInstance, const _float3* pVertexPositions, _float3& Out, _fmatrix WorldMatrix) +{ + _bool isIn = { false }; + + if (true == pGameInstance->MousePicking_InLocalSpace(pVertexPositions[m_iCorners[CORNER_LT]],pVertexPositions[m_iCorners[CORNER_RT]],pVertexPositions[m_iCorners[CORNER_RB]], Out)) + { + if (nullptr == m_pChildren[CORNER_LT]) + { + XMStoreFloat3(&Out, XMVector3TransformCoord(XMLoadFloat3(&Out), WorldMatrix)); + return true; + } + isIn = true; + } + + if (true == pGameInstance->MousePicking_InLocalSpace(pVertexPositions[m_iCorners[CORNER_LT]], pVertexPositions[m_iCorners[CORNER_RB]], pVertexPositions[m_iCorners[CORNER_LB]], Out)) + { + if (nullptr == m_pChildren[CORNER_LT]) + { + XMStoreFloat3(&Out, XMVector3TransformCoord(XMLoadFloat3(&Out), WorldMatrix)); + return true; + } + isIn = true; + } + + if (isIn) + { + for (_uint i = 0; i < CORNER_END; ++i) + { + if (m_pChildren[i]->Picking(pGameInstance, pVertexPositions, Out, WorldMatrix)) + return true; + } + } + + return false; +} + +_bool CQuadTree::Set_Y(CGameInstance* pGameInstance, const _float3* pVertexPositions, VTXNORTEX* pVertices, _fmatrix WorldMatrix, _float fY) +{ + _bool isIn = { false }; + _float3 Out = {}; + if (true == pGameInstance->MousePicking_InLocalSpace(pVertexPositions[m_iCorners[CORNER_LT]], pVertexPositions[m_iCorners[CORNER_RT]], pVertexPositions[m_iCorners[CORNER_RB]], Out)) + { + if (nullptr == m_pChildren[CORNER_LT]) + { + Add_Y(pVertices, fY); + + XMStoreFloat3(&Out, XMVector3TransformCoord(XMLoadFloat3(&Out), WorldMatrix)); + return true; + } + isIn = true; + } + + if (true == pGameInstance->MousePicking_InLocalSpace(pVertexPositions[m_iCorners[CORNER_LT]], pVertexPositions[m_iCorners[CORNER_RB]], pVertexPositions[m_iCorners[CORNER_LB]], Out)) + { + if (nullptr == m_pChildren[CORNER_LT]) + { + Add_Y(pVertices, fY); + + XMStoreFloat3(&Out, XMVector3TransformCoord(XMLoadFloat3(&Out), WorldMatrix)); + return true; + } + isIn = true; + } + + if (isIn) + { + for (_uint i = 0; i < CORNER_END; ++i) + { + if (m_pChildren[i]->Set_Y(pGameInstance, pVertexPositions, pVertices, WorldMatrix, fY)) + return true; + } + } + + return false; +} + +void CQuadTree::Add_Y(VTXNORTEX* pVertices, _float fY) +{ + _float fValue = {}; + + fValue += pVertices[m_iCorners[CORNER_LT]].vPosition.y; + fValue += pVertices[m_iCorners[CORNER_RB]].vPosition.y; + fValue += pVertices[m_iCorners[CORNER_RT]].vPosition.y; + fValue += pVertices[m_iCorners[CORNER_LB]].vPosition.y; + + fValue /= 4.0f; + fValue += fY; + + pVertices[m_iCorners[CORNER_LT]].vPosition.y = fValue; + pVertices[m_iCorners[CORNER_RB]].vPosition.y = fValue; + pVertices[m_iCorners[CORNER_RT]].vPosition.y = fValue; + pVertices[m_iCorners[CORNER_LB]].vPosition.y = fValue; +} + +_bool CQuadTree::isDraw(CGameInstance* pGameInstance, const _float3* pVertexPositions) +{ + _vector vCamPos = XMLoadFloat4(pGameInstance->Get_CamPosition()); + _vector vCenter = XMLoadFloat3(&pVertexPositions[m_iCenter]); + + if (m_iCorners[CORNER_RT] - m_iCorners[CORNER_LT] < XMVectorGetX(XMVector3Length(vCamPos - vCenter)) * 0.04f) + return true; + + return false; +} + +HRESULT CQuadTree::Initialize(_uint iLT, _uint iRT, _uint iRB, _uint iLB) +{ + m_iCorners[CORNER_LT] = iLT; + m_iCorners[CORNER_RT] = iRT; + m_iCorners[CORNER_RB] = iRB; + m_iCorners[CORNER_LB] = iLB; + + /* 길이가 1일때 트리 최하위 */ + if (1 == m_iCorners[CORNER_RT] - m_iCorners[CORNER_LT]) + return S_OK; + + /* 중간 점들 인덱스 구하기 */ + m_iCenter = (m_iCorners[CORNER_LT] + m_iCorners[CORNER_RB]) >> 1; + + _uint iLC, iTC, iRC, iBC; + + iLC = (m_iCorners[CORNER_LT] + m_iCorners[CORNER_LB]) >> 1; + iTC = (m_iCorners[CORNER_LT] + m_iCorners[CORNER_RT]) >> 1; + iRC = (m_iCorners[CORNER_RT] + m_iCorners[CORNER_RB]) >> 1; + iBC = (m_iCorners[CORNER_LB] + m_iCorners[CORNER_RB]) >> 1; + + /* 점들을 이용해서 하위 트리를 만든다 */ + m_pChildren[CORNER_LT] = CQuadTree::Create(m_iCorners[CORNER_LT], iTC, m_iCenter, iLC); + m_pChildren[CORNER_RT] = CQuadTree::Create(iTC, m_iCorners[CORNER_RT], iRC, m_iCenter); + m_pChildren[CORNER_RB] = CQuadTree::Create(m_iCenter, iRC, m_iCorners[CORNER_RB], iBC); + m_pChildren[CORNER_LB] = CQuadTree::Create(iLC, m_iCenter, iBC, m_iCorners[CORNER_LB]); + + return S_OK; +} + +CQuadTree* CQuadTree::Create(_uint iLT, _uint iRT, _uint iRB, _uint iLB) +{ + CQuadTree* pInstance = new CQuadTree(); + + if (FAILED(pInstance->Initialize(iLT, iRT, iRB, iLB))) + { + MSG_BOX("Failed to Created : CQuadTree"); + Safe_Release(pInstance); + } + + return pInstance; +} + +void CQuadTree::Free() +{ + __super::Free(); + + for (auto& pChild : m_pChildren) + Safe_Release(pChild); + +} diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp index 6e1886687..524104c85 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "RenderTarget.h" #include "Shader.h" @@ -73,12 +73,20 @@ void CRenderTarget::Copy_Resource(ID3D11Texture2D* pTexture2D) { m_pContext->CopyResource(pTexture2D, m_pTexture2D); } +void CRenderTarget::Paste_Resource(ID3D11Texture2D* pTexture2D) +{ + m_pContext->CopyResource(m_pTexture2D, pTexture2D); +} +void CRenderTarget::Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc) +{ + m_pTexture2D->GetDesc(&Desc); +} #ifdef _DEBUG void CRenderTarget::Ready_Debug() { - XMStoreFloat4x4(&m_WorldMatrix, XMMatrixIdentity()); // µð¹ö±× ¿ùµå ¸ÞƮ¸¯½º Ãʱâȭ + XMStoreFloat4x4(&m_WorldMatrix, XMMatrixIdentity()); // 디버그 월드 메트릭스 초기화 _uint iNumViewports = { 1 }; @@ -110,7 +118,6 @@ _bool CRenderTarget::Render_Debug(CShader* pShader, CVIBuffer_Rect* pVIBuffer ,_ m_WorldMatrix._41 = fX - m_ptWindowSize.x * 0.5f; m_WorldMatrix._42 = -fY + m_ptWindowSize.y * 0.5f; - if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &m_WorldMatrix))) return false; diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp index 00b50743d..abbe9bb8c 100644 --- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp +++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp @@ -1,6 +1,8 @@ #include "pch.h" #include "RenderTarget_Manager.h" #include "RenderTarget.h" +#include "Shader.h" +#include "VIBuffer_Rect.h" CRenderTarget_Manager::CRenderTarget_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) :CBase(), @@ -153,6 +155,257 @@ HRESULT CRenderTarget_Manager::Copy_RenderTarget(const _wstring& strTargetTag, I return S_OK; } +HRESULT CRenderTarget_Manager::Paste_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D) +{ + CRenderTarget* pRenderTarget = Find_RenderTarget(strTargetTag); + if (nullptr == pRenderTarget) { + return E_FAIL; + } + + pRenderTarget->Paste_Resource(pTexture2D); + + return S_OK; +} + +HRESULT CRenderTarget_Manager::Accumulate_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, + const _wstring& wstrRenderTarget_SrcA, const _wstring& wstrRenderTarget_SrcB, + const _wstring& wstrRenderTarget_Target, SHADER_PASS_DEFERRED ePass) +{ + if (nullptr == pVIBuffer || nullptr == pShader) { + return E_FAIL; + } + CRenderTarget* pSrcA = Find_RenderTarget(wstrRenderTarget_SrcA); + CRenderTarget* pSrcB = Find_RenderTarget(wstrRenderTarget_SrcB); + CRenderTarget* pOutput = Find_RenderTarget(wstrRenderTarget_Target); + if (nullptr == pSrcA || nullptr == pSrcB || nullptr == pOutput) { return E_FAIL; } + + HRESULT hResult = S_OK; + + m_pContext->OMGetRenderTargets(1, &m_pBackBufferRTV, &m_pOriginalDSV); + + _uint iNumViewPorts = 1; + D3D11_VIEWPORT OriginalViewport = {}; + m_pContext->RSGetViewports(&iNumViewPorts, &OriginalViewport); + + _uint iNumViewPort = 1; + D3D11_VIEWPORT vp = {}; + m_pContext->RSGetViewports(&iNumViewPort, &vp); + + D3D11_TEXTURE2D_DESC OutputDesc = {}; + pOutput->Get_TextureDesc(OutputDesc); + + D3D11_VIEWPORT NewViewport = vp; + NewViewport.TopLeftX = 0.f; + NewViewport.TopLeftY = 0.f; + NewViewport.Width = static_cast<_float>(OutputDesc.Width); + NewViewport.Height = static_cast<_float>(OutputDesc.Height); + NewViewport.MinDepth = 0.f; + NewViewport.MaxDepth = 1.f; + + pOutput->Clear(); + + { // Bind RTVs + _uint iNumRenderTargets = { 1 }; + ID3D11RenderTargetView* pRenderTargetViews[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT] = { pOutput->Get_RTV(), }; + m_pContext->OMSetRenderTargets(0, nullptr, nullptr); + m_pContext->OMSetRenderTargets(iNumRenderTargets, pRenderTargetViews, nullptr); + } + + m_pContext->RSSetViewports(iNumViewPort, &NewViewport); + + { // Bind const + _float4x4 matIdentity = {}; + XMStoreFloat4x4(&matIdentity, XMMatrixIdentity()); + + if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pSrcA->Bind_ShaderResource(pShader, "g_DiffuseTexture"))) { + hResult = E_FAIL; + } + else if (FAILED(pSrcB->Bind_ShaderResource(pShader, "g_BlurTexture"))) { + hResult = E_FAIL; + } + } + + if (SUCCEEDED(hResult)) { + if (FAILED(pShader->Begin(ENUM_CLASS(ePass)))) { + hResult = E_FAIL; + } + else { + pVIBuffer->Bind_Resources(); + pVIBuffer->Render(); + } + } + + ID3D11ShaderResourceView* const pNullSRV[1] = { nullptr }; + m_pContext->PSSetShaderResources(0, 1, pNullSRV); + + m_pContext->OMSetRenderTargets(1, &m_pBackBufferRTV, m_pOriginalDSV); + m_pContext->RSSetViewports(iNumViewPorts, &OriginalViewport); + + SAFE_RELEASE(m_pBackBufferRTV); + SAFE_RELEASE(m_pOriginalDSV); + + return S_OK; +} + +HRESULT CRenderTarget_Manager::Refit_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, + const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput, SHADER_PASS_DEFERRED ePass) +{ + if (nullptr == pVIBuffer || nullptr == pShader) { + return E_FAIL; + } + CRenderTarget* pInput = Find_RenderTarget(wstrRenderTargetInput); + CRenderTarget* pOutput = Find_RenderTarget(wstrRenderTargetOutput); + if (nullptr == pInput || nullptr == pOutput) { return E_FAIL; } + + HRESULT hResult = S_OK; + + m_pContext->OMGetRenderTargets(1, &m_pBackBufferRTV, &m_pOriginalDSV); + + _uint iNumViewPorts = 1; + D3D11_VIEWPORT OriginalViewport = {}; + m_pContext->RSGetViewports(&iNumViewPorts, &OriginalViewport); + + _uint iNumViewPort = 1; + D3D11_VIEWPORT vp = {}; + m_pContext->RSGetViewports(&iNumViewPort, &vp); + + D3D11_TEXTURE2D_DESC OutputDesc = {}; + pOutput->Get_TextureDesc(OutputDesc); + + D3D11_VIEWPORT NewViewport = vp; + NewViewport.TopLeftX = 0.f; + NewViewport.TopLeftY = 0.f; + NewViewport.Width = static_cast<_float>(OutputDesc.Width); + NewViewport.Height = static_cast<_float>(OutputDesc.Height); + NewViewport.MinDepth = 0.f; + NewViewport.MaxDepth = 1.f; + + pOutput->Clear(); + + { // Bind RTVs + _uint iNumRenderTargets = { 1 }; + ID3D11RenderTargetView* pRenderTargetViews[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT] = { pOutput->Get_RTV(), }; + m_pContext->OMSetRenderTargets(0, nullptr, nullptr); + m_pContext->OMSetRenderTargets(iNumRenderTargets, pRenderTargetViews, nullptr); + } + + m_pContext->RSSetViewports(iNumViewPort, &NewViewport); + + const _char* pConstantName = { nullptr }; + switch (ePass) + { + case Engine::SHADER_PASS_DEFERRED::BLOOM_BLURX: + pConstantName = "g_BlurTexture"; + break; + case Engine::SHADER_PASS_DEFERRED::REFIT: + pConstantName = "g_DiffuseTexture"; + break; + case Engine::SHADER_PASS_DEFERRED::EMBOSSING: + pConstantName = "g_DiffuseTexture"; + break; + case Engine::SHADER_PASS_DEFERRED::BLOOM_BLURY: + pConstantName = "g_BlurTexture"; + break; + default: + hResult = E_FAIL; + break; + } + + { // Bind const + _float4x4 matIdentity = {}; + XMStoreFloat4x4(&matIdentity, XMMatrixIdentity()); + + if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pInput->Bind_ShaderResource(pShader, pConstantName))) { + hResult = E_FAIL; + } + } + + if (SUCCEEDED(hResult)) { + if (FAILED(pShader->Begin(ENUM_CLASS(ePass)))) { + hResult = E_FAIL; + } + else { + pVIBuffer->Bind_Resources(); + pVIBuffer->Render(); + } + } + + ID3D11ShaderResourceView* const pNullSRV[1] = { nullptr }; + m_pContext->PSSetShaderResources(0, 1, pNullSRV); + + m_pContext->OMSetRenderTargets(1, &m_pBackBufferRTV, m_pOriginalDSV); + m_pContext->RSSetViewports(iNumViewPorts, &OriginalViewport); + + SAFE_RELEASE(m_pBackBufferRTV); + SAFE_RELEASE(m_pOriginalDSV); + + return S_OK; +} + +HRESULT CRenderTarget_Manager::Finish_RenderTarget(CVIBuffer_Rect* pVIBuffer, CShader* pShader, const _wstring& wstrRenderTargetOriginal, const _wstring& wstrRenderTargetBloomed, SHADER_PASS_DEFERRED ePass) +{ + if (nullptr == pVIBuffer || nullptr == pShader) { + return E_FAIL; + } + CRenderTarget* pInput = Find_RenderTarget(wstrRenderTargetOriginal); + CRenderTarget* pBloomed = Find_RenderTarget(wstrRenderTargetBloomed); + if (nullptr == pInput || nullptr == pBloomed) { + return E_FAIL; + } + + HRESULT hResult = S_OK; + + { // Bind const + _float4x4 matIdentity = {}; + XMStoreFloat4x4(&matIdentity, XMMatrixIdentity()); + + if (FAILED(pShader->Bind_Matrix("g_WorldMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ViewMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pShader->Bind_Matrix("g_ProjMatrix", &matIdentity))) { + hResult = E_FAIL; + } + else if (FAILED(pInput->Bind_ShaderResource(pShader, "g_DiffuseTexture"))) { + hResult = E_FAIL; + } + else if (FAILED(pBloomed->Bind_ShaderResource(pShader, "g_BlurTexture"))) { + hResult = E_FAIL; + } + } + + if (SUCCEEDED(hResult)) { + if (FAILED(pShader->Begin(ENUM_CLASS(ePass)))) { + hResult = E_FAIL; + } + else { + pVIBuffer->Bind_Resources(); + pVIBuffer->Render(); + } + } + + return S_OK; +} HRESULT CRenderTarget_Manager::End_MRT() { diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index c521efb9e..494e8f381 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -65,17 +65,19 @@ void CRenderer::Render() Render_Blur(); Render_Combined(); Render_Effect(); - Render_WeightBlend(); Render_NonLight(); Render_Blend(); + Render_WeightBlend(); + Render_Bloom(); Render_LastColor(); Render_UI(); #ifdef _DEBUG m_pGameInstance->RenderTarget_Debuger(); - if(m_pGameInstance->Key_Pressing(DIK_F10)) + if(m_pGameInstance->Key_Pressing(DIK_F10)){ Render_Debug(); + } #endif } @@ -176,12 +178,18 @@ void CRenderer::Render_LightAcc() m_pShader->Bind_RawValue("g_vCamPosition", m_pGameInstance->Get_CamPosition(), sizeof(_float4)); m_pShader->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)); + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Diffuse"), m_pShader, "g_DiffuseTexture"))) { + return; + } if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Normal"), m_pShader, "g_NormalTexture"))) { return; } if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Depth"), m_pShader, "g_DepthTexture"))) { return; } + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Surface"), m_pShader, "g_SurfaceTexture"))) { + return; + } m_pVIBuffer->Bind_Resources(); @@ -258,7 +266,7 @@ void CRenderer::Render_Combined() if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X"), m_pShader, "g_BlurXTexture"))) { return; } - if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Weight"), m_pShader, "g_BlurWeightTexture"))) { + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_X_Weight"), m_pShader, "g_BlurWeightXTexture"))) { return; } @@ -364,11 +372,10 @@ void CRenderer::Render_Blur() if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur"), m_pShader, "g_BlurTexture"))) { return; } - + if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Blur_Weight"), m_pShader, "g_BlurWeightTexture"))) { return; } - m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::BLUR)); @@ -376,7 +383,8 @@ void CRenderer::Render_Blur() m_pVIBuffer->Render(); - if (FAILED(m_pGameInstance->End_MRT())) { + if (FAILED(m_pGameInstance->End_MRT())) + { return; } @@ -401,6 +409,51 @@ void CRenderer::Render_Blend() m_RenderObjects[ENUM_CLASS(RENDER::BLEND)].clear(); } +void CRenderer::Render_Bloom() +{ + if (m_pGameInstance->Key_Up(DIK_HOME)) { + m_bPostProcessing_BLOOM = !m_bPostProcessing_BLOOM; + } + if(true == m_bPostProcessing_BLOOM) { + { // BackBuffer + ID3D11Texture2D* pBackBuffer = nullptr; + m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); + //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer); + m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer); + SAFE_RELEASE(pBackBuffer); + } + + // "Target_Bloom_Input" + // "Target_Bloom" + // "Target_Bloom_4x4" + // "Target_Bloom_8x8" + // "Target_Bloom_16x16" + // "Target_Bloom_16x16_X" + // "Target_Bloom_8x8_2" + // "Target_Bloom_4x4_2" + + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::EMBOSSING); // 2 + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 3 + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::REFIT); // 4 + + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_16x16_X"), SHADER_PASS_DEFERRED::BLOOM_BLURX); + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16_X"), TEXT("Target_Bloom_16x16"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 5 + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::REFIT); // 6 + + m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_16x16"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM); + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_8x8"), SHADER_PASS_DEFERRED::BLOOM_BLURX); + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8"), TEXT("Target_Bloom_8x8_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 7 + + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::REFIT); + m_pGameInstance->Accumulate_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_8x8_2"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_ACCUM); + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom_4x4"), SHADER_PASS_DEFERRED::BLOOM_BLURX); + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4"), TEXT("Target_Bloom_4x4_2"), SHADER_PASS_DEFERRED::BLOOM_BLURY); // 8 + + m_pGameInstance->Refit_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_4x4_2"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::REFIT); + m_pGameInstance->Finish_RenderTarget(m_pVIBuffer, m_pShader, TEXT("Target_Bloom_Input"), TEXT("Target_Bloom"), SHADER_PASS_DEFERRED::BLOOM_FINISH); // 9 + } +} + void CRenderer::Render_UI() { m_RenderObjects[ENUM_CLASS(RENDER::UI)].sort([](CGameObject* pDest, CGameObject* pSrc)->_bool { @@ -538,6 +591,12 @@ HRESULT CRenderer::Initialize() return E_FAIL; } + /* Target_Surface */ + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Surface"), (_uint)Viewport.Width, (_uint)Viewport.Height, + DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.f, 0.f, 0.f)))) { + return E_FAIL; + } + /* Target_Shade */ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Shade"), (_uint)Viewport.Width, (_uint)Viewport.Height, DXGI_FORMAT_R16G16B16A16_UNORM, _float4(0.0f, 0.f, 0.f, 1.f)))) { @@ -562,23 +621,64 @@ HRESULT CRenderer::Initialize() } /* Target_Blur */ - - if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height, - DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) { - return E_FAIL; - } - if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur"), (_uint)Viewport.Width, (_uint)Viewport.Height, DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height, + DXGI_FORMAT_R16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) { + return E_FAIL; + } + + /* Target_Blur_X */ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_X"), (_uint)Viewport.Width, (_uint)Viewport.Height, DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur_X_Weight"), (_uint)Viewport.Width, (_uint)Viewport.Height, + DXGI_FORMAT_R16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 1.0f)))) { + return E_FAIL; + } + + /* Target_Bloom */ + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_Input"), (_uint)(Viewport.Width), (_uint)(Viewport.Height), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom"), (_uint)(Viewport.Width), (_uint)(Viewport.Height), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_4x4"), (_uint)(Viewport.Width * 0.25f), (_uint)(Viewport.Height * 0.25f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_8x8"), (_uint)(Viewport.Width * 0.125f), (_uint)(Viewport.Height * 0.125f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_16x16"), (_uint)(Viewport.Width * 0.0625f), (_uint)(Viewport.Height * 0.0625f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_16x16_X"), (_uint)(Viewport.Width * 0.0625f), (_uint)(Viewport.Height * 0.0625f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_8x8_2"), (_uint)(Viewport.Width * 0.125f), (_uint)(Viewport.Height * 0.125f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Bloom_4x4_2"), (_uint)(Viewport.Width * 0.25f), (_uint)(Viewport.Height * 0.25f), + DXGI_FORMAT_R8G8B8A8_UNORM, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { + return E_FAIL; + } + + + /* Target_Color*/ if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Color"), (_uint)Viewport.Width, (_uint)Viewport.Height, DXGI_FORMAT_R32G32B32A32_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) { @@ -620,6 +720,9 @@ HRESULT CRenderer::Initialize() if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_GameObjects"), TEXT("Target_Color")))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_GameObjects"), TEXT("Target_Surface")))) { + return E_FAIL; + } /* MRT_LightAcc */ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_LightAcc"), TEXT("Target_Shade")))) { @@ -628,6 +731,7 @@ HRESULT CRenderer::Initialize() if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_LightAcc"), TEXT("Target_Specular")))) { return E_FAIL; } + /* MRT_Shadow */ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Shadow"), TEXT("Target_Shadow")))) { return E_FAIL; @@ -641,7 +745,6 @@ HRESULT CRenderer::Initialize() if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur")))) { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur_Weight")))) { return E_FAIL; } @@ -650,6 +753,9 @@ HRESULT CRenderer::Initialize() if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_X"), TEXT("Target_Blur_X")))) { return E_FAIL; } + if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur_X"), TEXT("Target_Blur_X_Weight")))) { + return E_FAIL; + } /* MRT_Color */ if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Color"), TEXT("Target_Color")))) { @@ -672,19 +778,19 @@ HRESULT CRenderer::Initialize() } - m_pShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, TEXT("FX_DEFERRED"), nullptr, nullptr); + m_pShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_DEFERRED, nullptr, nullptr); if (nullptr == m_pShader) { return E_FAIL; } - m_pLastColorShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, TEXT("FX_LASTCOLOR"), nullptr, nullptr); + m_pLastColorShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_LASTCOLOR, nullptr, nullptr); if (nullptr == m_pLastColorShader) { return E_FAIL; } - m_pWeightBlendShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, TEXT("FX_WEIGHTBELND"), nullptr, nullptr); + m_pWeightBlendShader = (CShader*)m_pGameInstance->Clone_Asset_Prototype(g_iStaticLevel, FX_WEIGHTBELND, nullptr, nullptr); if (nullptr == m_pWeightBlendShader) { return E_FAIL; diff --git a/Jusin154_Team3D/Engine/Private/RigidBody.cpp b/Jusin154_Team3D/Engine/Private/RigidBody.cpp index 77b64bf77..754d92893 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody.cpp @@ -40,7 +40,10 @@ void CRigidBody::Free() SAFE_RELEASE(m_pTransform); } +#ifdef _DEBUG void CRigidBody::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp index 47392c2d7..1e3b68340 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp @@ -180,7 +180,9 @@ void CRigidBody_Dynamic::Free() m_pRigidBody = nullptr; } } +#ifdef _DEBUG void CRigidBody_Dynamic::Describe_Entity() { } +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp index f232ec8b4..32d82d0f3 100644 --- a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp +++ b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp @@ -70,7 +70,10 @@ void CRigidBody_Static::Free() m_pRigidBody = nullptr; } } +#ifdef _DEBUG void CRigidBody_Static::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Shader.cpp b/Jusin154_Team3D/Engine/Private/Shader.cpp index b10c8276f..6972aac4a 100644 --- a/Jusin154_Team3D/Engine/Private/Shader.cpp +++ b/Jusin154_Team3D/Engine/Private/Shader.cpp @@ -122,10 +122,15 @@ HRESULT CShader::CreateShader(const _tchar* pShaderFilePath, const D3D11_INPUT_E iHlslFlag = D3DCOMPILE_OPTIMIZATION_LEVEL1; #endif - /*ID3DBlob* pBlob;*/ + ID3DBlob* pBlob; - if (FAILED(D3DX11CompileEffectFromFile(pShaderFilePath, nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, iHlslFlag, 0, m_pDevice, &m_pEffect, nullptr))) + if (FAILED(D3DX11CompileEffectFromFile(pShaderFilePath, nullptr, D3D_COMPILE_STANDARD_FILE_INCLUDE, iHlslFlag, 0, m_pDevice, &m_pEffect, &pBlob))) { + if (pBlob) { + OutputDebugStringA((char*)pBlob->GetBufferPointer()); + pBlob->Release(); + } return E_FAIL; + } ID3DX11EffectTechnique* pTechnique = m_pEffect->GetTechniqueByIndex(0); if (nullptr == pTechnique) @@ -246,6 +251,7 @@ void CShader::Free() m_InputLayouts.clear(); } +#ifdef _DEBUG void CShader::Describe_Entity() { @@ -263,3 +269,5 @@ void CShader::Describe_Entity() } } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/State.cpp b/Jusin154_Team3D/Engine/Private/State.cpp index 6c1963261..cf51b1604 100644 --- a/Jusin154_Team3D/Engine/Private/State.cpp +++ b/Jusin154_Team3D/Engine/Private/State.cpp @@ -9,32 +9,10 @@ CState::CState() SAFE_ADDREF(m_pGameInstance); } -void CState::Enter() +HRESULT CState::Initialize(STATEDESC* pArg) { -} - -void CState::Update(_float fTimeDelta) -{ -} - -void CState::Exit() -{ -} - -_bool CState::CheckExitState() -{ - return true; -} - -void CState::Set_Owner(CGameObject* pOwner) -{ - m_pOwner = dynamic_cast(pOwner); -}; - -void CState::Set_Component() -{ - m_pModel = m_pOwner->Get_Component(); - m_pFSM = m_pOwner->Get_Component(); + m_pOwner = pArg->pOwner; + return S_OK; } void CState::Free() @@ -42,7 +20,6 @@ void CState::Free() __super::Free(); SAFE_RELEASE(m_pGameInstance); - SAFE_RELEASE(m_pParent); } void CState::Describe_Entity() diff --git a/Jusin154_Team3D/Engine/Private/Texture.cpp b/Jusin154_Team3D/Engine/Private/Texture.cpp index 70dfb754f..3d8f84653 100644 --- a/Jusin154_Team3D/Engine/Private/Texture.cpp +++ b/Jusin154_Team3D/Engine/Private/Texture.cpp @@ -106,7 +106,7 @@ HRESULT CTexture::Load_SRV(const _char* szPath, ID3D11ShaderResourceView** ppSRV HRESULT hr = {}; - hr = CreateDDSTextureFromFile(m_pDevice, CMyTools::ToWstring(szTextureFilePath).c_str(), nullptr, ppSRV); // 일단 dds로 시도하고 + hr = CreateDDSTextureFromFile(m_pDevice, CMyTools::ToWstring(szTextureFilePath).c_str(), nullptr, ppSRV, 1024); // 일단 dds로 시도하고 if (FAILED(hr)) { memset(szTextureFilePath, 0, sizeof(_char) * MAX_PATH); // 실패하면 원래 확장자로 다시 시도 strcat_s(szTextureFilePath, szTextureFileName); @@ -120,6 +120,7 @@ HRESULT CTexture::Load_SRV(const _char* szPath, ID3D11ShaderResourceView** ppSRV hr = CreateWICTextureFromFile(m_pDevice, CMyTools::ToWstring(szTextureFilePath).c_str(), nullptr, ppSRV); } } + return hr; } @@ -142,7 +143,6 @@ HRESULT CTexture::ParseTextureIncrementalToSRVs(_uint iNumTextures, const _tchar if (FAILED(hr)) { return E_FAIL; } - m_SRVs.push_back(pSRV); } return S_OK; @@ -230,7 +230,10 @@ void CTexture::Free() SAFE_RELEASE(pSRV); } } +#ifdef _DEBUG void CTexture::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/ThreadHolder.cpp b/Jusin154_Team3D/Engine/Private/ThreadHolder.cpp new file mode 100644 index 000000000..974777947 --- /dev/null +++ b/Jusin154_Team3D/Engine/Private/ThreadHolder.cpp @@ -0,0 +1,73 @@ +#include "pch.h" + +#include "ThreadHolder.h" + +CThreadHolder::CThreadHolder() +{ +} + +CThreadHolder::~CThreadHolder() +{ +} + +HRESULT CThreadHolder::Initialize(_uint iSize) +{ + m_bStop_All = false; + m_iNumThreads = iSize; + m_Workers.reserve(iSize); + for (_uint i = 0; i < m_iNumThreads; ++i) { + m_Workers.emplace_back([this]() { this->WorkerThread(); }); + + } + + return S_OK; +} + +void CThreadHolder::WorkerThread() +{ + while (true) + { + function job = {}; + unique_lock lock(m_mtxJobQueue); + { + m_cvJobQueue.wait(lock, [this]() { return !this->m_JobQueue.empty() || m_bStop_All; }); + if (m_bStop_All && this->m_JobQueue.empty()) { + return; + } + + job = move(m_JobQueue.front()); + m_JobQueue.pop(); + } lock.unlock(); + + job(); + } +} + +CThreadHolder* CThreadHolder::Create(_uint iSize) +{ + CThreadHolder* pInstance = new CThreadHolder(); + if (FAILED(pInstance->Initialize(iSize))) { + SAFE_RELEASE(pInstance); + } + return pInstance; +} + +void CThreadHolder::Free() +{ + __super::Free(); + + { + unique_lock lock(m_mtxJobQueue); + m_bStop_All = true; + } + + m_cvJobQueue.notify_all(); + + for (auto& thread : m_Workers) { + thread.join(); + } +} + +void CThreadHolder::Describe_Entity() +{ +} diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp index 7a3078077..267771708 100644 --- a/Jusin154_Team3D/Engine/Private/Trail.cpp +++ b/Jusin154_Team3D/Engine/Private/Trail.cpp @@ -13,39 +13,40 @@ CTrail::CTrail(const CTrail& rhs) HRESULT CTrail::Initialize_Prototype() { + return S_OK; +} + +HRESULT CTrail::Initialize(void* pArg) +{ + TRAIL_DESC* pDesc = static_cast(pArg); + + if (pDesc == nullptr) + return E_FAIL; + + m_TrailDesc = *pDesc; + m_iNumVertexBuffers = 1; - m_iNumVertices = 4; + m_iNumVertices = 256; m_iVertexStride = sizeof(VTXPOSTEX); - m_iNumIndices = 6; + m_iNumIndices = (m_iNumVertices / 2 - 1) * 6; m_iIndexStride = 4; m_eIndexFormat = DXGI_FORMAT_R32_UINT; m_ePrimitive = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST; + m_pVertices = new VTXPOSTEX[m_iNumVertices]; + #pragma region VTX_BUFFER D3D11_BUFFER_DESC VBDesc{}; VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices; - VBDesc.Usage = D3D11_USAGE_DEFAULT; + VBDesc.Usage = D3D11_USAGE_DYNAMIC; VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; - VBDesc.CPUAccessFlags = 0; + VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; VBDesc.MiscFlags = 0; VBDesc.StructureByteStride = m_iVertexStride; VTXPOSTEX* pVertices = new VTXPOSTEX[m_iNumVertices]{}; - m_pVertexPositions = new _float3[m_iNumIndices]{}; - - m_pVertexPositions[0] = pVertices[0].vPosition = _float3(-0.5f, 0.5f, 0.f); - pVertices[0].vTexcoord = _float2(0.0f, 0.0f); - - m_pVertexPositions[1] = pVertices[1].vPosition = _float3(0.5f, 0.5f, 0.f); - pVertices[1].vTexcoord = _float2(1.0f, 0.0f); - - m_pVertexPositions[2] = pVertices[2].vPosition = _float3(0.5f, -0.5f, 0.f); - pVertices[2].vTexcoord = _float2(1.0f, 1.0f); - - m_pVertexPositions[3] = pVertices[3].vPosition = _float3(-0.5f, -0.5f, 0.f); - pVertices[3].vTexcoord = _float2(0.0f, 1.0f); D3D11_SUBRESOURCE_DATA InitialVBDate{}; InitialVBDate.pSysMem = pVertices; @@ -58,9 +59,10 @@ HRESULT CTrail::Initialize_Prototype() #pragma endregion #pragma region IDX_BUFFER + D3D11_BUFFER_DESC IBDesc{}; IBDesc.ByteWidth = m_iIndexStride * m_iNumIndices; - IBDesc.Usage = D3D11_USAGE_DEFAULT; + IBDesc.Usage = D3D11_USAGE_IMMUTABLE; IBDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; IBDesc.CPUAccessFlags = 0; IBDesc.MiscFlags = 0; @@ -69,13 +71,27 @@ HRESULT CTrail::Initialize_Prototype() _uint* pIndices = new _uint[m_iNumIndices]{}; - pIndices[0] = 0; - pIndices[1] = 1; - pIndices[2] = 2; + _uint iIndex = { 0 }; - pIndices[3] = 0; - pIndices[4] = 2; - pIndices[5] = 3; + for (_uint i = 0; i < m_iNumVertices / 2 - 1; i++) + { + _uint iStartIndex = i * 2; + + _uint Indicies[4] = { + iStartIndex , + iStartIndex + 1, + iStartIndex + 2, + iStartIndex + 3 + }; + + pIndices[iIndex++] = Indicies[0]; + pIndices[iIndex++] = Indicies[1]; + pIndices[iIndex++] = Indicies[2]; + + pIndices[iIndex++] = Indicies[1]; + pIndices[iIndex++] = Indicies[3]; + pIndices[iIndex++] = Indicies[2]; + } D3D11_SUBRESOURCE_DATA InitialIBDate{}; InitialIBDate.pSysMem = pIndices; @@ -83,16 +99,116 @@ HRESULT CTrail::Initialize_Prototype() if (FAILED(m_pDevice->CreateBuffer(&IBDesc, &InitialIBDate, &m_pIB))) { return E_FAIL; } + Safe_Delete_Array(pIndices); #pragma endregion - - return S_OK; } -HRESULT CTrail::Initialize(void* pArg) +void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix) { + + _vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMatrix); + _vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMatrix); + + + //한칸씩 밀기 + memmove(m_PreLow, m_PreLow + 1, sizeof(VTXPOSTEX)); + memmove(m_PreHigh, m_PreHigh + 1, sizeof(VTXPOSTEX)); + + m_PreLow[1] = vLow; + m_PreHigh[1] = vHigh; + + if (m_iNumCount < 4) + { + XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vLow); + XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vHigh); + + //카운트가 적으면 시도하지 않음 + return; + } + + //시작점 끝점 내점 두개를 이용하여 보간할 것임 + + for (size_t i = 0; i < 4; i++) + { + _float iRatio = (_float)i / 3; + _vector vLerpLow = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 2].vPosition), m_PreLow[0], m_PreLow[1], m_PreLow[1] + (m_PreLow[1] - m_PreLow[0]), iRatio); // LoW + _vector vLerpHigh = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 1].vPosition), m_PreHigh[0], m_PreHigh[1], m_PreHigh[1] + (m_PreHigh[1] - m_PreHigh[0]), iRatio); + + 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)); + + m_iNumCount -= 2; + } + + } + + //XMStoreFloat3(&m_pVertices[0].vPosition, vLow); + //XMStoreFloat3(&m_pVertices[1].vPosition, vHigh); + + 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); + + m_pContext->Unmap(m_pVB, 0); + } + +} + +#ifdef _DEBUG +HRESULT CTrail::Save_Trail(HANDLE hFile) +{ + DWORD dwByte(0); + + if (!WriteFile(hFile, &m_TrailDesc, sizeof(TRAIL_DESC), &dwByte, nullptr)) { + return E_FAIL; + } + + return S_OK; +} +#endif + +HRESULT CTrail::Load_Trail(HANDLE hFile) +{ + DWORD dwByte(0); + + if (!ReadFile(hFile, &m_TrailDesc, sizeof(TRAIL_DESC), &dwByte, nullptr)) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CTrail::Render() +{ + if (m_iNumCount < 4) + return S_OK; + + m_pContext->DrawIndexed( ((m_iNumCount / 2) - 1) * 6, 0, 0); + return S_OK; } @@ -126,9 +242,16 @@ void CTrail::Free() { __super::Free(); - + Safe_Delete_Array(m_pVertices); } +#ifdef _DEBUG void CTrail::Describe_Entity() { + + GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow); + GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh); + } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp index 0585b946c..89b6cf2f8 100644 --- a/Jusin154_Team3D/Engine/Private/Transform.cpp +++ b/Jusin154_Team3D/Engine/Private/Transform.cpp @@ -327,6 +327,14 @@ void CTransform::LookAt(_fvector vAt) Set_State(STATE::LOOK, XMVector3Normalize(vLook) * vScale.z); } +_float CTransform::TargetDis(_fvector vTarget) +{ + _vector vTargetDis = vTarget - Get_State(STATE::POSITION); + _float dist = XMVectorGetX( + XMVector3Length(vTargetDis)); + return dist; +} + CTransform* CTransform::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) { CTransform* pInstance = new CTransform(pDevice, pContext); @@ -358,6 +366,7 @@ void CTransform::Free() __super::Free(); } +#ifdef _DEBUG void CTransform::Describe_Entity() { @@ -382,3 +391,5 @@ void CTransform::Describe_Entity() } } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/UIComponent.cpp b/Jusin154_Team3D/Engine/Private/UIComponent.cpp index 6057ef584..58f8a4bf3 100644 --- a/Jusin154_Team3D/Engine/Private/UIComponent.cpp +++ b/Jusin154_Team3D/Engine/Private/UIComponent.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "UIComponent.h" CUIComponent ::CUIComponent(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -51,7 +51,9 @@ void CUIComponent::Free() { __super::Free(); } +#ifdef _DEBUG void CUIComponent::Describe_Entity() { } +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp index 197fa9885..8549335bc 100644 --- a/Jusin154_Team3D/Engine/Private/UIObject.cpp +++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp @@ -83,13 +83,6 @@ HRESULT CUIObject::Initialize(void* pArg) m_bVisible = true; - m_fLeft = 0.f; - m_fRight = m_fSizeX; - m_fTop = 0.f; - m_fBottom = m_fSizeY; - - m_vNine_Slice = _float4(m_fLeft, m_fRight, m_fTop, m_fBottom); - return S_OK; } @@ -139,12 +132,28 @@ void CUIObject::MoveY(_float fY) m_fY = fY; } +void CUIObject::Move(_float fX, _float fY) +{ + m_fX = fX; + m_fY = fY; +} + void CUIObject::SizeUpdate(_float fSizeX, _float fSizeY) { m_fSizeX = fSizeX; m_fSizeY = fSizeY; } +void CUIObject::SizeUpX(_float fSizeX) +{ + m_fSizeX = fSizeX; +} + +void CUIObject::SizeUpY(_float fSizeY) +{ + m_fSizeY = fSizeY; +} + void CUIObject::SizeUpdate_float(_float3 fSizeXY) { m_fSizeX = fSizeXY.x; @@ -280,42 +289,42 @@ _float2 CUIObject::Get_UV() void CUIObject::Nine_Slice_Left(_float X) { - m_fLeft = -m_fSizeX * 0.5f + X; + m_vNine_Slice.x = X; } void CUIObject::Nine_Slice_Right(_float Y) { - m_fRight = m_fSizeX * 0.5f - Y; + m_vNine_Slice.y =Y; } void CUIObject::Nine_Slice_Top(_float Z) { - m_fTop = -m_fSizeY * 0.5f + Z; + m_vNine_Slice.z = Z; } void CUIObject::Nine_Slice_Bottom(_float W) { - m_fBottom = m_fSizeY * 0.5f - W; + m_vNine_Slice.w = W; } _float CUIObject::Get_Nine_Slice_Left() { - return m_fLeft; + return m_vNine_Slice.y; } _float CUIObject::Get_Nine_Slice_Right() { - return m_fRight; + return m_vNine_Slice.y; } _float CUIObject::Get_Nine_Slice_Top() { - return m_fTop; + return m_vNine_Slice.z; } _float CUIObject::Get_Nine_Slice_Bottom() { - return m_fBottom; + return m_vNine_Slice.w; } _float2 CUIObject::Get_Origin_Position() @@ -348,11 +357,19 @@ void CUIObject::Lerp_PosY(_float PosY) m_fLerpY = PosY; } -void CUIObject::Start_Lerp(_float fTimeDelta, _bool Alpha) +void CUIObject::Start_Lerp(_float fTimeDelta) { } -void CUIObject::Reset_Pos(_float fTimeDelta, _bool Alpha) +void CUIObject::Reset_Pos(_float fTimeDelta) +{ +} + +void CUIObject::Start_Size_Lerp(_float fTimeDelta) +{ +} + +void CUIObject::Reset_Size_Lerp(_float fTimeDelta) { } @@ -442,11 +459,11 @@ _float CUIObject::Get_CoolTime() return m_fCoolTime; } -void CUIObject::Add_Function(wstring Name, function Evnet) +void CUIObject::Add_Function(wstring Name, function Evnet) { } -void CUIObject::Function_Callback(wstring Name) +void CUIObject::Function_Callback(wstring Name, void* pArg) { } diff --git a/Jusin154_Team3D/Engine/Private/Unit.cpp b/Jusin154_Team3D/Engine/Private/Unit.cpp index 1d4672861..9b6a1a073 100644 --- a/Jusin154_Team3D/Engine/Private/Unit.cpp +++ b/Jusin154_Team3D/Engine/Private/Unit.cpp @@ -4,12 +4,12 @@ #include "GameInstance.h" CUnit::CUnit(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) - : CGameObject(pDevice, pContext) + : CContainerObject(pDevice, pContext) { } CUnit::CUnit(const CUnit& Prototype) - : CGameObject(Prototype) + : CContainerObject(Prototype) { } @@ -30,15 +30,17 @@ HRESULT CUnit::Initialize(void* pArg) void CUnit::Priority_Update(_float fTimeDelta) { - + __super::Priority_Update(fTimeDelta); } void CUnit::Update(_float fTimeDelta) { + __super::Update(fTimeDelta); } void CUnit::Late_Update(_float fTimeDelta) { + __super::Late_Update(fTimeDelta); } HRESULT CUnit::Render() @@ -46,6 +48,7 @@ HRESULT CUnit::Render() return S_OK; } +#ifdef _DEBUG void CUnit::Load_KeyFrame() { FILE* fp = nullptr; @@ -88,7 +91,7 @@ void CUnit::Load_KeyFrame() } } } - +#endif _float CUnit::Get_KeyFrame(_string FrameName) { auto iter = m_KeyFrames.find(FrameName); @@ -110,11 +113,14 @@ _bool CUnit::IsCurrentKeyFrame(_string FrameName) HRESULT CUnit::Ready_Components(void *pArg) { - __super::Ready_Components(pArg); + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } /* Com_FSM */ - if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))) + if (FAILED(Add_Component(g_iStaticLevel, &m_pFSM))){ return E_FAIL; + } return S_OK; } @@ -132,7 +138,10 @@ void CUnit::Free() SAFE_RELEASE(m_pModelCom); SAFE_RELEASE(m_pFSM); } +#ifdef _DEBUG void CUnit::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer.cpp index 418461da2..6d5e5b61a 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "VIBuffer.h" CVIBuffer::CVIBuffer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -49,6 +49,7 @@ HRESULT CVIBuffer::Bind_Resources() HRESULT CVIBuffer::Render() { m_pContext->DrawIndexed(m_iNumIndices, 0, 0); + return S_OK; } diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp index efb8b9cf2..655c47b85 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Cell.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "VIBuffer_Cell.h" CVIBuffer_Cell::CVIBuffer_Cell(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -127,7 +127,9 @@ void CVIBuffer_Cell::Free() } +#ifdef _DEBUG void CVIBuffer_Cell::Describe_Entity() { } +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp index 9defc24b6..f669984b8 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Cube.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "VIBuffer_Cube.h" CVIBuffer_Cube::CVIBuffer_Cube(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -273,7 +273,10 @@ void CVIBuffer_Cube::Free() } +#ifdef _DEBUG void CVIBuffer_Cube::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp new file mode 100644 index 000000000..65618d248 --- /dev/null +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Model_Instance.cpp @@ -0,0 +1,583 @@ +#include "pch.h" +#include "VIBuffer_Model_Instance.h" +#include "Mesh.h" +#include "Bone.h" +#include "Model.h" +#include "Transform.h" +#include "Shader.h" + +CVIBuffer_Model_Instance::CVIBuffer_Model_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CVIBuffer_Instance(pDevice, pContext) + , m_iNumBuffer{ 2 } +{ +} + +CVIBuffer_Model_Instance::CVIBuffer_Model_Instance(const CVIBuffer_Model_Instance& rhs) + : CVIBuffer_Instance(rhs) + , m_iNumBuffer(rhs.m_iNumBuffer) + , m_iCurrentNumInstance( rhs.m_iCurrentNumInstance ) + , m_iNumMeshes(rhs.m_iNumMeshes) + , m_iMaxNumInstance(rhs.m_iMaxNumInstance) + , m_Meshes(rhs.m_Meshes) + , m_InstanceDesc(rhs.m_InstanceDesc) + , m_MeshMaterialsSRV(rhs.m_MeshMaterialsSRV) + , m_SurfaceMaterialFlag(rhs.m_SurfaceMaterialFlag) +#ifdef EDITOR_PROJECT + , m_pAIScene(rhs.m_pAIScene) + , m_MeshMaterialPathes(rhs.m_MeshMaterialPathes) +#endif // EDITOR_PROJECT +{ + for (auto& pMesh : m_Meshes) + SAFE_ADDREF(pMesh); + + for (auto& SRVs : m_MeshMaterialsSRV) + { + for (auto& pSRV : SRVs) + SAFE_ADDREF(pSRV); + } +} + +HRESULT CVIBuffer_Model_Instance::Initialize_Prototype(const _char* pModelFilePath, const _char* pMatrialPath) +{ + if (FAILED(Load_ModelData(pModelFilePath))) + return E_FAIL; + + if (FAILED(Load_Material(pModelFilePath, pMatrialPath))) + return E_FAIL; + + if (FAILED(Ready_Materials())) + return E_FAIL; + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Initialize(void* pArg) +{ + if (FAILED(Reay_Instance_Buffer())) + return E_FAIL; + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Render(_uint iMeshIndex) +{ + m_Meshes[iMeshIndex]->Bind_Resources_Instance(m_pVBInstance, m_iInstanceStride, m_iNumBuffer); + + m_Meshes[iMeshIndex]->Render_Instance(m_iNumInstance); + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Bind_Matrial(CShader* pShader, _uint iMeshIndex) +{ + if(FAILED(pShader->Bind_SRV("g_DiffuseTexture", m_MeshMaterialsSRV[iMeshIndex][0]))) + return E_FAIL; + + if(FAILED(pShader->Bind_SRV("g_NormalTexture", m_MeshMaterialsSRV[iMeshIndex][1]))) + return E_FAIL; + + if(FAILED(pShader->Bind_SRV("g_SurfaceParamsTexture", m_MeshMaterialsSRV[iMeshIndex][2]))) + return E_FAIL; + + _float fUsingSurfaceParams = ((_float)m_SurfaceMaterialFlag[iMeshIndex] / (_float)AI_TEXTURE_TYPE_MAX); + + if (FAILED(pShader->Bind_RawValue("g_fUsingSurfaceParams", &fUsingSurfaceParams, sizeof(_float)))) + return E_FAIL; + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Load_WorldData(vector<_float4x4>& WorldMatrices) +{ + m_iCurrentNumInstance = (_uint)WorldMatrices.size(); + + if (m_iMaxNumInstance <= m_iCurrentNumInstance) + return E_FAIL; + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + if (FAILED(m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + return E_FAIL; + + VTX_INSTANCE_MODEL* pData = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iCurrentNumInstance; i++) + { + memcpy(&pData[i].vRight, &WorldMatrices[i].m[0], sizeof(_float4)); + memcpy(&pData[i].vUp, &WorldMatrices[i].m[1], sizeof(_float4)); + memcpy(&pData[i].vLook, &WorldMatrices[i].m[2], sizeof(_float4)); + memcpy(&pData[i].vTranslation, &WorldMatrices[i].m[3], sizeof(_float4)); + } + m_iNumInstance = m_iCurrentNumInstance; + + m_pContext->Unmap(m_pVBInstance, 0); + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Reay_Instance_Buffer() +{ + m_iInstanceStride = sizeof(VTX_INSTANCE_MODEL); + + D3D11_BUFFER_DESC InstanceBufferDesc = {}; + + InstanceBufferDesc.ByteWidth = m_iInstanceStride * m_iNumInstance; + InstanceBufferDesc.Usage = D3D11_USAGE_DYNAMIC; + InstanceBufferDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; + InstanceBufferDesc.StructureByteStride = m_iInstanceStride; + InstanceBufferDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; + InstanceBufferDesc.MiscFlags = 0; + + if (FAILED(m_pDevice->CreateBuffer(&InstanceBufferDesc, nullptr, &m_pVBInstance))) + return E_FAIL; + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Load_InstanceData(ifstream& in) +{ + in.read(reinterpret_cast<_char*>(&m_iNumInstance), sizeof(_uint)); + + if (FAILED(Reay_Instance_Buffer())) + return E_FAIL; + + /* Input Data */ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + if (FAILED(m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource))) + { + in.close(); + return E_FAIL; + } + + VTX_INSTANCE_MODEL* pData = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iNumInstance; ++i) + { + in.read(reinterpret_cast<_char*>(&pData[i]), sizeof(VTX_INSTANCE_MODEL)); + } + + m_pContext->Unmap(m_pVBInstance, 0); + + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Load_ModelData(const _char* pModelFilePath) +{ + ifstream In(pModelFilePath, ios::binary); + + if (!In.is_open()) + { + MSG_BOX("Failed to Load : Model Data"); + return E_FAIL; + } + + In.read(reinterpret_cast<_char*>(&m_iNumMeshes), sizeof(_uint)); + + for (_uint i = 0; i < m_iNumMeshes; ++i) + { + SaveMesh mesh{}; + + In.read(reinterpret_cast<_char*>(&mesh.MeshNameSize), sizeof(_uint)); + mesh.MeshName.resize(mesh.MeshNameSize); + In.read(reinterpret_cast<_char*>(mesh.MeshName.data()), mesh.MeshNameSize); + + + In.read(reinterpret_cast<_char*>(&mesh.VertexCount), sizeof(_uint)); + In.read(reinterpret_cast<_char*>(&mesh.IndexCount), sizeof(_uint)); + In.read(reinterpret_cast<_char*>(&mesh.MaterialIndex), sizeof(_uint)); + In.read(reinterpret_cast<_char*>(&mesh.BoneCount), sizeof(_uint)); + + mesh.Vertices.resize(mesh.VertexCount); + In.read(reinterpret_cast<_char*>(mesh.Vertices.data()), sizeof(SaveVertex) * mesh.VertexCount); + + mesh.Indices.resize(mesh.IndexCount); + In.read(reinterpret_cast<_char*>(mesh.Indices.data()), sizeof(_uint) * mesh.IndexCount); + + CModel* pModel = { nullptr }; + + CMesh* pMesh = CMesh::Create(m_pDevice, m_pContext, MODEL::NONANIM, pModel, &mesh, XMMatrixIdentity()); + + if (nullptr == pMesh) + return E_FAIL; + + m_Meshes.push_back(pMesh); + } + In.read(reinterpret_cast<_char*>(&m_iNumInstance), sizeof(_uint)); + + m_iMaxNumInstance = m_iNumInstance; + + In.close(); + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Load_Material(const _char* pModelFilePath, const _char* pMatrialPath) +{ + tinyxml2::XMLDocument xmlDoc; + + if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(pMatrialPath))) + return E_FAIL; + + tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Instance"); + + _char szName[MAX_PATH] = {}; + + _splitpath_s(pModelFilePath, nullptr, 0, nullptr, 0, szName, MAX_PATH, nullptr, 0); + + tinyxml2::XMLElement* Model = root->FirstChildElement(szName); + + /* Check Mesh Num */ + _uint iNumMesh = {}; + Model->QueryUnsignedAttribute("mesh", &iNumMesh); + + if (iNumMesh != m_iNumMeshes) + return E_FAIL; + + for (auto* Mesh = Model->FirstChildElement("Mesh"); Mesh; Mesh = Mesh->NextSiblingElement("Mesh")) + { + vector MaterialPathes = {}; + + for (auto* Material = Mesh->FirstChildElement("Material"); Material; Material = Material->NextSiblingElement("Material")) + { + MaterialPathes.push_back("../Bin/Resources/Models/InstanceProp/Textures/" + string(Material->GetText()) + ".dds"); + } + + m_MeshMaterialPathes.push_back(MaterialPathes); + + auto* Surface = Mesh->FirstChildElement("Surface"); + string strSurface = Surface->GetText(); + + if (string::npos != strSurface.find("SRO")) + m_SurfaceMaterialFlag.push_back(aiTextureType_SPECULAR); + else + m_SurfaceMaterialFlag.push_back(aiTextureType_METALNESS); + } + + return S_OK; +} + + +HRESULT CVIBuffer_Model_Instance::Ready_Materials() +{ + for (_uint i = 0; i < m_iNumMeshes; ++i) + { + vector SRVs = {}; + for (_uint j = 0; j < 3; ++j) + { + ID3D11ShaderResourceView* pSRV = { nullptr }; + + if (FAILED(CreateDDSTextureFromFile(m_pDevice, CMyTools::ToWstring(m_MeshMaterialPathes[i][j]).c_str(), nullptr, &pSRV))) + { + if (FAILED(CreateWICTextureFromFile(m_pDevice, CMyTools::ToWstring(m_MeshMaterialPathes[i][j]).c_str(), nullptr, &pSRV))) + return E_FAIL; + } + + SRVs.push_back(pSRV); + } + m_MeshMaterialsSRV.push_back(SRVs); + } + + return S_OK; +} + +#ifdef EDITOR_PROJECT + +HRESULT CVIBuffer_Model_Instance::SaveAssimpModel(const _char* pModelFilePath) +{ + if (!m_pAIScene) return E_FAIL; + + for (_uint i = 0; i < m_pAIScene->mNumMeshes; i++) + { + SaveMesh saveMesh{}; + + aiMesh* mesh = m_pAIScene->mMeshes[i]; + + saveMesh.MeshName = mesh->mName.C_Str(); + saveMesh.MeshNameSize = (_int)saveMesh.MeshName.size() + 1; + saveMesh.VertexCount = mesh->mNumVertices; + saveMesh.IndexCount = mesh->mNumFaces * 3; + saveMesh.MaterialIndex = mesh->mMaterialIndex; + + saveMesh.Vertices.resize(saveMesh.VertexCount); + for (_uint i = 0; i < mesh->mNumVertices; i++) + { + saveMesh.Vertices[i].Pos = XMFLOAT3{ mesh->mVertices[i].x , mesh->mVertices[i].y,mesh->mVertices[i].z }; + + if (mesh->HasNormals()) + { + saveMesh.Vertices[i].Normal = XMFLOAT3{ + mesh->mNormals[i].x, + mesh->mNormals[i].y, + mesh->mNormals[i].z + }; + saveMesh.Vertices[i].bHasNormal = true; + } + else + { + saveMesh.Vertices[i].Normal = XMFLOAT3(0.f, 1.f, 0.f); + saveMesh.Vertices[i].bHasNormal = false; + } + + if (mesh->HasTangentsAndBitangents()) + { + saveMesh.Vertices[i].Tan = XMFLOAT3{ + mesh->mTangents[i].x, + mesh->mTangents[i].y, + mesh->mTangents[i].z + }; + saveMesh.Vertices[i].bHasTan = true; + } + else + { + saveMesh.Vertices[i].Tan = XMFLOAT3(1.f, 0.f, 0.f); + saveMesh.Vertices[i].bHasTan = false; + } + + saveMesh.Vertices[i].BiNoraml = XMFLOAT3{ + mesh->mBitangents[i].x, + mesh->mBitangents[i].y, + mesh->mBitangents[i].z + }; + + if (mesh->HasTextureCoords(0)) + { + saveMesh.Vertices[i].UV = XMFLOAT2{ + mesh->mTextureCoords[0][i].x, + mesh->mTextureCoords[0][i].y + }; + saveMesh.Vertices[i].bHasUV = true; + } + else + { + saveMesh.Vertices[i].UV = XMFLOAT2(0.f, 0.f); + saveMesh.Vertices[i].bHasUV = false; + } + saveMesh.Vertices[i].BlendIndex = XMUINT4(0, 0, 0, 0); + saveMesh.Vertices[i].BlendWeight = XMFLOAT4(0.f, 0.f, 0.f, 0.f); + } + + saveMesh.Indices.reserve(saveMesh.IndexCount); + for (_uint i = 0; i < mesh->mNumFaces; i++) + { + aiFace& face = mesh->mFaces[i]; + for (_uint idx = 0; idx < face.mNumIndices; idx++) + saveMesh.Indices.push_back(face.mIndices[idx]); + } + + m_SaveMeshDesc.push_back(saveMesh); + } + +#pragma region SAVE_MESH + filesystem::path ModelPath = pModelFilePath; + + string pFileName = ModelPath.parent_path().string() + "/" + ModelPath.stem().string() + ".bin"; + + ofstream out(pFileName, ios::binary); + + if (!out.is_open()) + { + MSG_BOX("Failed to Save : Instance Data"); + return E_FAIL; + } + out.write(reinterpret_cast<_char*>(&m_iNumMeshes), sizeof(_uint)); + + + for (auto& mesh : m_SaveMeshDesc) + { + out.write(reinterpret_cast<_char*>(&mesh.MeshNameSize), sizeof(_uint)); + out.write(reinterpret_cast<_char*>(mesh.MeshName.data()), mesh.MeshNameSize); + out.write(reinterpret_cast<_char*>(&mesh.VertexCount), sizeof(_uint)); + out.write(reinterpret_cast<_char*>(&mesh.IndexCount), sizeof(_uint)); + out.write(reinterpret_cast<_char*>(&mesh.MaterialIndex), sizeof(_uint)); + out.write(reinterpret_cast<_char*>(&mesh.BoneCount), sizeof(_uint)); + + out.write(reinterpret_cast<_char*>(mesh.Vertices.data()), sizeof(SaveVertex) * mesh.VertexCount); + out.write(reinterpret_cast<_char*>(mesh.Indices.data()), sizeof(_uint) * mesh.IndexCount); + } + + out.write(reinterpret_cast<_char*>(&m_iMaxNumInstance), sizeof(_uint)); +#pragma endregion + + out.close(); + + + return S_OK; +} + +HRESULT CVIBuffer_Model_Instance::Initialize_Prototype(const INSTANCE_DESC* pDesc, const _char* pModelFilePath, const _char* pMatrialPath) +{ + m_iNumBuffer = 2; + m_iMaxNumInstance = m_iNumInstance = pDesc->iNum; + + if (FAILED(Assimp_Model_Load(pModelFilePath))) + return E_FAIL; + + if (FAILED(Load_Material(pModelFilePath, pMatrialPath))) + return E_FAIL; + + if(FAILED(Ready_Materials())) + return E_FAIL; + + + + return S_OK; +} + +void CVIBuffer_Model_Instance::Update_Instance() +{ + m_iNumInstance = m_iCurrentNumInstance; + +} + +void CVIBuffer_Model_Instance::Add_Instance(_fmatrix WorldMatrix) +{ + ++m_iCurrentNumInstance; + + if (m_iMaxNumInstance <= m_iCurrentNumInstance) + return; + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + if (FAILED(m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource))) + return; + + VTX_INSTANCE_MODEL* pData = static_cast(SubResource.pData); + + memcpy(&pData[m_iCurrentNumInstance - 1].vRight, &WorldMatrix.r[0], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vUp, &WorldMatrix.r[1], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vLook, &WorldMatrix.r[2], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vTranslation, &WorldMatrix.r[3], sizeof(_float4)); + + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_Model_Instance::Delete_Instance() +{ + if (0 != m_iCurrentNumInstance) + m_iCurrentNumInstance--; + + return; +} + +void CVIBuffer_Model_Instance::Fix_Instance(_fmatrix WorldMatrix) +{ + if (0 == m_iCurrentNumInstance) + return; + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + if (FAILED(m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource))) + return; + + VTX_INSTANCE_MODEL* pData = static_cast(SubResource.pData); + + memcpy(&pData[m_iCurrentNumInstance - 1].vRight, &WorldMatrix.r[0], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vUp, &WorldMatrix.r[1], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vLook, &WorldMatrix.r[2], sizeof(_float4)); + memcpy(&pData[m_iCurrentNumInstance - 1].vTranslation, &WorldMatrix.r[3], sizeof(_float4)); + + m_pContext->Unmap(m_pVBInstance, 0); +} + +HRESULT CVIBuffer_Model_Instance::Assimp_Model_Load(const _char* pModelFilePath) +{ + _uint iFlag = {}; + iFlag = aiProcess_ConvertToLeftHanded | aiProcessPreset_TargetRealtime_Fast | aiProcess_PreTransformVertices; + + m_pAIScene = m_Importer.ReadFile(pModelFilePath, iFlag); + if (nullptr == m_pAIScene) { + return E_FAIL; + } + + m_iNumMeshes = m_pAIScene->mNumMeshes; + + vector bones; + + for (_uint i = 0; i < m_iNumMeshes; ++i) + { + CMesh* pMesh = CMesh::Create(m_pDevice, m_pContext, MODEL::NONANIM, bones, m_pAIScene->mMeshes[i], XMMatrixIdentity()); + + if (nullptr == pMesh) + return E_FAIL; + + m_Meshes.push_back(pMesh); + } + + if (FAILED(SaveAssimpModel(pModelFilePath))) + return E_FAIL; + + return S_OK; +} + +CVIBuffer_Model_Instance* CVIBuffer_Model_Instance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc, const _char* pModelFilePath, const _char* pMatrialPath) +{ + CVIBuffer_Model_Instance* pInstance = new CVIBuffer_Model_Instance(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype(pInstanceDesc, pModelFilePath, pMatrialPath))) + { + MSG_BOX("Failed to Created : CVIBuffer_Model_Instance"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +#endif + +CVIBuffer_Model_Instance* CVIBuffer_Model_Instance::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, const _char* pMatrialPath) +{ + CVIBuffer_Model_Instance* pInstance = new CVIBuffer_Model_Instance(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype(pModelFilePath, pMatrialPath))) + { + MSG_BOX("Failed to Created : CVIBuffer_Model_Instance"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +CComponent* CVIBuffer_Model_Instance::Clone(void* pArg, CGameObject* pOwner) +{ + CVIBuffer_Model_Instance* pInstance = new CVIBuffer_Model_Instance(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CVIBuffer_Model_Instance"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CVIBuffer_Model_Instance::Free() +{ + __super::Free(); + + for (auto& pMesh : m_Meshes) + SAFE_RELEASE(pMesh); + m_Meshes.clear(); + + for (auto& Materials : m_MeshMaterialsSRV) + { + for(auto& pSRV : Materials) + SAFE_RELEASE(pSRV); + Materials.clear(); + } + m_MeshMaterialsSRV.clear(); + + for (auto& Pathes : m_MeshMaterialPathes) + Pathes.clear(); + m_MeshMaterialPathes.clear(); + + m_SurfaceMaterialFlag.clear(); +} +#ifdef _DEBUG +void CVIBuffer_Model_Instance::Describe_Entity() +{ + GUI::Text("Instance Count : %d / %d", m_iCurrentNumInstance, m_iMaxNumInstance); +} +#endif diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp index 00a4a42f4..d37f468db 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Rect.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" #include "VIBuffer_Rect.h" CVIBuffer_Rect::CVIBuffer_Rect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) @@ -128,7 +128,10 @@ void CVIBuffer_Rect::Free() } +#ifdef _DEBUG void CVIBuffer_Rect::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp index ac794b025..7e8cb21f4 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp @@ -1,39 +1,92 @@ -#include "pch.h" +#include "pch.h" #include "VIBuffer_Terrain.h" - #include "GameInstance.h" +#include "QuadTree.h" -CVIBuffer_Terrain::CVIBuffer_Terrain(ID3D11Device * pDevice, ID3D11DeviceContext * pContext) +#define STB_IMAGE_IMPLEMENTATION +#define STB_IMAGE_WRITE_IMPLEMENTATION +#include "stb_image.h" + +CVIBuffer_Terrain::CVIBuffer_Terrain(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CVIBuffer{ pDevice, pContext } { } -CVIBuffer_Terrain::CVIBuffer_Terrain(CVIBuffer_Terrain& rhs) - :CVIBuffer(rhs), - m_iNumVerticesX{ rhs.m_iNumVerticesX }, - m_iNumVerticesZ{ rhs.m_iNumVerticesZ } +CVIBuffer_Terrain::CVIBuffer_Terrain(const CVIBuffer_Terrain& rhs) + : CVIBuffer(rhs) + , m_iNumVerticesX{ rhs.m_iNumVerticesX } + , m_iNumVerticesZ{ rhs.m_iNumVerticesZ } + , m_pQuadTree{ rhs.m_pQuadTree } + , m_HeigthValues{ rhs.m_HeigthValues } { + Safe_AddRef(m_pQuadTree); } HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iSizeX, _uint iSizeZ) { - m_bChange = { false }; + _int iWidth = {}; + _int iHeight = {}; + _int iComp = {}; - m_iNumVerticesX = iSizeX; - m_iNumVerticesZ = iSizeZ; + unsigned char* pTexture = {}; + pTexture = stbi_load(pFilePath, &iWidth, &iHeight, &iComp, 0); + + if (!pTexture) + { + MSG_BOX("Failed to Load HeightMapFile"); + return E_FAIL; + } + + m_iNumVerticesX = iWidth + 1; + m_iNumVerticesZ = iHeight + 1; m_iNumVertices = m_iNumVerticesX * m_iNumVerticesZ; - m_pVertexPositions = new _float3[m_iNumVertices]; - ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); + _float* pPixels = new _float[m_iNumVertices]; + ZeroMemory(pPixels, sizeof(_float) * m_iNumVertices); - //if (FAILED(Load_HeightFile(pFilePath))) - // return E_FAIL; + _uint iPixelIndex = {}; + for (int i = 0; i < iHeight; ++i) { + for (int j = 0; j < iWidth; ++j) { + int iTexureindex = iComp * ((iHeight - 1 - i) * iWidth + j); + iPixelIndex = i * m_iNumVerticesX + j; + if (iComp < 3) { + // 흑백 + } + else { + // RGB 컬러 + _uint height16 = ((int)pTexture[iTexureindex + 0]<< 8) + (int)pTexture[iTexureindex + 1]; // 0 ~ 65535 + pPixels[iPixelIndex] = height16 / 65535.0f; + int color_r = (int)pTexture[iTexureindex + 0]; + int color_g = (int)pTexture[iTexureindex + 1]; + int color_b = (int)pTexture[iTexureindex + 2]; + + // 알파 채널 + int alpha; + if (iComp > 3) { + /*pPixels[iIndex++] = + (int)pTexture[index + 3];*/ + } + else { + alpha = 255; + } + } + } + iPixelIndex = i * m_iNumVerticesX + iWidth; + pPixels[iPixelIndex] = 0.0f; + } + + _uint iLastRowStart = iHeight * m_iNumVerticesX; + for (_uint j = 0; j < m_iNumVerticesX; ++j) // m_iNumVerticesX == iWidth + 1 + { + pPixels[iLastRowStart + j] = 0.0f; + } + + stbi_image_free(pTexture); + m_iNumVertexBuffers = 1; - m_iVertexStride = sizeof(VTXNORTEX); - _uint* pPixels = new _uint[m_iNumVertices]; - ZeroMemory(pPixels, sizeof(_uint) * m_iNumVertices); + m_iVertexStride = sizeof(VTXNORTEX); m_iNumIndices = (m_iNumVerticesX - 1) * (m_iNumVerticesZ - 1) * 2 * 3; m_iIndexStride = 4; @@ -41,103 +94,112 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS m_eIndexFormat = DXGI_FORMAT_R32_UINT; m_ePrimitive = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST; -#pragma region VETEX_BUFFER - D3D11_BUFFER_DESC VBDesc = {}; +#pragma region VERTEX_BUFFER + D3D11_BUFFER_DESC VBDesc{}; VBDesc.ByteWidth = m_iVertexStride * m_iNumVertices; - VBDesc.Usage = D3D11_USAGE_DEFAULT; - VBDesc.BindFlags = D3D11_BIND_VERTEX_BUFFER; + VBDesc.Usage = D3D11_USAGE_STAGING; + VBDesc.BindFlags = 0;//D3D11_BIND_VERTEX_BUFFER; VBDesc.StructureByteStride = m_iVertexStride; - VBDesc.CPUAccessFlags = 0; + VBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE | D3D11_CPU_ACCESS_READ; VBDesc.MiscFlags = 0; VTXNORTEX* pVertices = new VTXNORTEX[m_iNumVertices]; ZeroMemory(pVertices, sizeof(VTXNORTEX) * m_iNumVertices); - for (_uint i = 0; i < m_iNumVerticesZ; ++i) - { - for (_uint j = 0; j < m_iNumVerticesX; ++j) - { - _uint iIndex = j + i * m_iNumVerticesX; + m_pVertexPositions = new _float3[m_iNumVertices]; + ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices); - m_pVertexPositions[iIndex] = pVertices[iIndex].vPosition = _float3((_float)j, 0.f, (_float)i); + for (_uint i = 0; i < m_iNumVerticesZ; i++) + { + for (_uint j = 0; j < m_iNumVerticesX; j++) + { + _uint iIndex = i * m_iNumVerticesX + j; + + m_pVertexPositions[iIndex] = pVertices[iIndex].vPosition = _float3( + (_float)j * m_iNumVerticesX / (m_iNumVerticesX - 1.f), + (_float)(pPixels[iIndex]) * 10.f * 256.f - 256.f, + (_float)i * m_iNumVerticesZ / (m_iNumVerticesZ -1.f) + ); + m_HeigthValues.push_back((_float)(pPixels[iIndex]) * 10.f * 256.f - 256.f); pVertices[iIndex].vNormal = _float3(0.f, 0.f, 0.f); - pVertices[iIndex].vTexcoord = _float2(j / (m_iNumVerticesX - 1.f), i / (m_iNumVerticesZ - 1.f)); + pVertices[iIndex].vTexcoord = _float2((_float)j / (m_iNumVerticesX), (_float)i / m_iNumVerticesZ ); } } - D3D11_SUBRESOURCE_DATA InitVBData = {}; - InitVBData.pSysMem = pVertices; + + D3D11_SUBRESOURCE_DATA InitialVBData{}; + InitialVBData.pSysMem = pVertices; #pragma endregion #pragma region INDEX_BUFFER - D3D11_BUFFER_DESC IBDesc = {}; - IBDesc.ByteWidth = m_iNumIndices * m_iIndexStride; - IBDesc.Usage = D3D11_USAGE_DEFAULT; + D3D11_BUFFER_DESC IBDesc{}; + IBDesc.ByteWidth = m_iIndexStride * m_iNumIndices; + IBDesc.Usage = D3D11_USAGE_DYNAMIC; IBDesc.BindFlags = D3D11_BIND_INDEX_BUFFER; IBDesc.StructureByteStride = m_iIndexStride; - IBDesc.CPUAccessFlags = 0; + IBDesc.CPUAccessFlags = D3D11_CPU_ACCESS_WRITE; IBDesc.MiscFlags = 0; + _uint* pIndices = new _uint[m_iNumIndices]; ZeroMemory(pIndices, sizeof(_uint) * m_iNumIndices); - _uint iNumIndex = {}; - _uint iCountZ = m_iNumVerticesZ - 1; - _uint iCountX = m_iNumVerticesX - 1; - for (_uint i = 0; i < iCountZ; ++i) - { - for (_uint j = 0; j < iCountX; ++j) - { - _uint iIndex = j + i * m_iNumVerticesX; + _uint iNumIndices = {}; - _uint Indices[4] = { + for (_uint i = 0; i < m_iNumVerticesZ - 1 ; i++) + { + for (_uint j = 0; j < m_iNumVerticesX - 1; j++) + { + _uint iIndex = i * m_iNumVerticesX + j; + + _uint iIndices[4] = { iIndex + m_iNumVerticesX, iIndex + m_iNumVerticesX + 1, iIndex + 1, - iIndex, + iIndex }; - pIndices[iNumIndex++] = Indices[0]; - pIndices[iNumIndex++] = Indices[1]; - pIndices[iNumIndex++] = Indices[2]; + _vector vSourDir, vDestDir, vNormal; - _vector vSrc, vDst, vNormal; + pIndices[iNumIndices++] = iIndices[0]; + pIndices[iNumIndices++] = iIndices[1]; + pIndices[iNumIndices++] = iIndices[2]; - vSrc = XMLoadFloat3(&pVertices[Indices[1]].vPosition) - XMLoadFloat3(&pVertices[Indices[0]].vPosition); - vDst = XMLoadFloat3(&pVertices[Indices[2]].vPosition) - XMLoadFloat3(&pVertices[Indices[0]].vPosition); + vSourDir = XMLoadFloat3(&pVertices[iIndices[1]].vPosition) - XMLoadFloat3(&pVertices[iIndices[0]].vPosition); + vDestDir = XMLoadFloat3(&pVertices[iIndices[2]].vPosition) - XMLoadFloat3(&pVertices[iIndices[1]].vPosition); + vNormal = XMVector3Normalize(XMVector3Cross(vSourDir, vDestDir)); - vNormal = XMVector3Normalize(XMVector3Cross(vSrc, vDst)); + XMStoreFloat3(&pVertices[iIndices[0]].vNormal, XMLoadFloat3(&pVertices[iIndices[0]].vNormal) + vNormal); + XMStoreFloat3(&pVertices[iIndices[1]].vNormal, XMLoadFloat3(&pVertices[iIndices[1]].vNormal) + vNormal); + XMStoreFloat3(&pVertices[iIndices[2]].vNormal, XMLoadFloat3(&pVertices[iIndices[2]].vNormal) + vNormal); - XMStoreFloat3(&pVertices[Indices[0]].vNormal, XMLoadFloat3(&pVertices[Indices[0]].vNormal) + vNormal); - XMStoreFloat3(&pVertices[Indices[1]].vNormal, XMLoadFloat3(&pVertices[Indices[1]].vNormal) + vNormal); - XMStoreFloat3(&pVertices[Indices[2]].vNormal, XMLoadFloat3(&pVertices[Indices[2]].vNormal) + vNormal); + pIndices[iNumIndices++] = iIndices[0]; + pIndices[iNumIndices++] = iIndices[2]; + pIndices[iNumIndices++] = iIndices[3]; - pIndices[iNumIndex++] = Indices[0]; - pIndices[iNumIndex++] = Indices[2]; - pIndices[iNumIndex++] = Indices[3]; + vSourDir = XMLoadFloat3(&pVertices[iIndices[2]].vPosition) - XMLoadFloat3(&pVertices[iIndices[0]].vPosition); + vDestDir = XMLoadFloat3(&pVertices[iIndices[3]].vPosition) - XMLoadFloat3(&pVertices[iIndices[2]].vPosition); + vNormal = XMVector3Normalize(XMVector3Cross(vSourDir, vDestDir)); - vSrc = XMLoadFloat3(&pVertices[Indices[2]].vPosition) - XMLoadFloat3(&pVertices[Indices[0]].vPosition); - vDst = XMLoadFloat3(&pVertices[Indices[3]].vPosition) - XMLoadFloat3(&pVertices[Indices[2]].vPosition); - - vNormal = XMVector3Normalize(XMVector3Cross(vSrc, vDst)); - - XMStoreFloat3(&pVertices[Indices[0]].vNormal, XMLoadFloat3(&pVertices[Indices[0]].vNormal) + vNormal); - XMStoreFloat3(&pVertices[Indices[2]].vNormal, XMLoadFloat3(&pVertices[Indices[2]].vNormal) + vNormal); - XMStoreFloat3(&pVertices[Indices[3]].vNormal, XMLoadFloat3(&pVertices[Indices[3]].vNormal) + vNormal); + XMStoreFloat3(&pVertices[iIndices[0]].vNormal, XMLoadFloat3(&pVertices[iIndices[0]].vNormal) + vNormal); + XMStoreFloat3(&pVertices[iIndices[2]].vNormal, XMLoadFloat3(&pVertices[iIndices[2]].vNormal) + vNormal); + XMStoreFloat3(&pVertices[iIndices[3]].vNormal, XMLoadFloat3(&pVertices[iIndices[3]].vNormal) + vNormal); } } - for (_uint i = 0; i < m_iNumVertices; ++i) + for (size_t i = 0; i < m_iNumVertices; i++) { - XMStoreFloat3(&pVertices[i].vNormal, XMVector3Normalize(XMLoadFloat3(&pVertices[i].vNormal))); + XMStoreFloat3(&pVertices[i].vNormal, + XMVector3Normalize(XMLoadFloat3(&pVertices[i].vNormal))); } - D3D11_SUBRESOURCE_DATA InitIBData = {}; - InitIBData.pSysMem = pIndices; + D3D11_SUBRESOURCE_DATA InitialIBData{}; + InitialIBData.pSysMem = pIndices; +#pragma endregion - if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitVBData, &m_pVB))) + if (FAILED(m_pDevice->CreateBuffer(&VBDesc, &InitialVBData, &m_pVB))) return E_FAIL; - if (FAILED(m_pDevice->CreateBuffer(&IBDesc, &InitIBData, &m_pIB))) + if (FAILED(m_pDevice->CreateBuffer(&IBDesc, &InitialIBData, &m_pIB))) return E_FAIL; Safe_Delete_Array(pVertices); @@ -145,7 +207,11 @@ HRESULT CVIBuffer_Terrain::Initialize_Prototype(const _char* pFilePath, _uint iS Safe_Delete_Array(pPixels); -#pragma endregion + m_pQuadTree = CQuadTree::Create(m_iNumVerticesX * m_iNumVerticesZ - m_iNumVerticesX, m_iNumVerticesX * m_iNumVerticesZ - 1, m_iNumVerticesX - 1, 0); + if (nullptr == m_pQuadTree) + return E_FAIL; + + m_pQuadTree->SetUp_Neighbors(); return S_OK; } @@ -155,76 +221,184 @@ HRESULT CVIBuffer_Terrain::Initialize(void* pArg) return S_OK; } -_bool CVIBuffer_Terrain::Picking(CTransform* pTransform, _float3& pOut) +_bool CVIBuffer_Terrain::Picking(_fmatrix WorldMatrix, _float3* pOut) { - _matrix WorldMatrixInv = pTransform->Get_WorldMatrixInv(); + _matrix WorldInv = XMMatrixInverse(nullptr, WorldMatrix); - m_pGameInstance->Ray_WorldToLocal(&WorldMatrixInv); + m_pGameInstance->Ray_WorldToLocal(&WorldInv); + return m_pQuadTree->Picking(m_pGameInstance,m_pVertexPositions, *pOut, WorldMatrix); +} - _uint iNumIndices = {}; +void CVIBuffer_Terrain::Culling(_fmatrix WorldMatrix) +{ + m_pGameInstance->Transform_Frustum_ToLocalSpace(XMMatrixInverse(nullptr, WorldMatrix)); - for (_uint i = 0; i < m_iNumVerticesZ - 1; i++) + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pIB, 0, D3D11_MAP_WRITE_DISCARD, 0, &SubResource); + + _uint* pIndices = static_cast<_uint*>(SubResource.pData); + + _uint iNumIndices = {}; + + m_pQuadTree->Culling(m_pGameInstance, m_pVertexPositions, pIndices, &iNumIndices); + + m_pContext->Unmap(m_pIB, 0); + + m_iNumIndices = iNumIndices; +} + +void CVIBuffer_Terrain::FitY(_fmatrix WorldMatrix, _float fY) +{ + m_pGameInstance->Transform_Frustum_ToLocalSpace(XMMatrixInverse(nullptr, WorldMatrix)); + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVB, 0, D3D11_MAP_READ_WRITE, 0, &SubResource); + + VTXNORTEX* pVertices = static_cast(SubResource.pData); + + _matrix WorldInv = XMMatrixInverse(nullptr, WorldMatrix); + + m_pGameInstance->Ray_WorldToLocal(&WorldInv); + + m_pQuadTree->Set_Y(m_pGameInstance, m_pVertexPositions, pVertices, WorldMatrix, fY); + + for (_uint i = 0; i < m_iNumVertices; ++i) { - for (_uint j = 0; j < m_iNumVerticesX - 1; j++) - { - _uint iIndex = i * m_iNumVerticesX + j; - - _uint iIndices[4] = { - iIndex + m_iNumVerticesX, - iIndex + m_iNumVerticesX + 1, - iIndex + 1, - iIndex - }; - - if (true == m_pGameInstance->MousePicking_InLocalSpace(m_pVertexPositions[iIndices[0]], m_pVertexPositions[iIndices[1]], m_pVertexPositions[iIndices[2]], pOut)) - { - XMStoreFloat3(&pOut, XMVector3TransformCoord(XMLoadFloat3(&pOut), XMLoadFloat4x4(pTransform->Get_WorldMatrixPtr()))); - return true; - } - - if (true == m_pGameInstance->MousePicking_InWorldSpace(m_pVertexPositions[iIndices[0]], m_pVertexPositions[iIndices[2]], m_pVertexPositions[iIndices[3]], pOut)) - { - XMStoreFloat3(&pOut, XMVector3TransformCoord(XMLoadFloat3(&pOut), XMLoadFloat4x4(pTransform->Get_WorldMatrixPtr()))); - return true; - } - } + memcpy(&m_pVertexPositions[i], &pVertices[i].vPosition, sizeof(_float3)); } - return false; + + m_pContext->Unmap(m_pVB, 0); +} + +void CVIBuffer_Terrain::Change_HeigthRatio(_float fRatio) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE, 0, &SubResource); + + VTXNORTEX* pVertices = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iNumVertices; ++i) + { + pVertices[i].vPosition.y = m_HeigthValues[i] * fRatio; + } + + m_pContext->Unmap(m_pVB, 0); +} +#ifdef _DEBUG + +void CVIBuffer_Terrain::Set_CullingRadius(_float fRaduis) +{ + m_pQuadTree->Set_CullingRadius(fRaduis); } -CVIBuffer_Terrain * CVIBuffer_Terrain::Create(ID3D11Device * pDevice, ID3D11DeviceContext * pContext, const _char * pFilePath, _uint iSizeX, _uint iSizeZ) +HRESULT CVIBuffer_Terrain::Save_HeightMap(const _char* pFilePath) +{ + string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath); + + ofstream out(strFilePath, ios::binary); + + if (false == out.is_open()) + { + MSG_BOX("Failed to Save Binanry File"); + return E_FAIL; + } + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVB, 0, D3D11_MAP_READ, 0, &SubResource); + + VTXNORTEX* pVertices = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iNumVerticesZ; ++i) + { + for (_uint j = 0; j < m_iNumVerticesX; ++j) + { + _uint iIndex = i * m_iNumVerticesX + j; + out.write(reinterpret_cast(&pVertices[iIndex].vPosition.y), sizeof(_float)); + } + } + m_pContext->Unmap(m_pVB, 0); + + out.close(); + + MSG_BOX("Success to Load Binanry File"); + + return S_OK; +} + +HRESULT CVIBuffer_Terrain::Load_HeightMap(const _char* pFilePath) +{ + string strFilePath = "../Bin/Resources/Data/Map/" + string(pFilePath); + + ifstream in(strFilePath, ios::binary); + + if (false == in.is_open()) + { + MSG_BOX("Failed to Load Model Binanry File"); + return E_FAIL; + } + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + m_pContext->Map(m_pVB, 0, D3D11_MAP_WRITE, 0, &SubResource); + + VTXNORTEX* pVertices = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iNumVerticesZ; ++i) + { + for (_uint j = 0; j < m_iNumVerticesX; ++j) + { + _uint iIndex = i * m_iNumVerticesX + j; + in.read(reinterpret_cast<_char*>(&pVertices[iIndex].vPosition.y), sizeof(_float)); + } + } + + in.close(); + + m_pContext->Unmap(m_pVB, 0); + + return S_OK; +} +#endif // _DEBUG + +CVIBuffer_Terrain* CVIBuffer_Terrain::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ) { CVIBuffer_Terrain* pInstance = new CVIBuffer_Terrain(pDevice, pContext); if (FAILED(pInstance->Initialize_Prototype(pFilePath, iSizeX, iSizeZ))) { - MSG_BOX("Failed to Create : CVIBuffer_Terrain"); - SAFE_RELEASE(pInstance); + MSG_BOX("Failed to Created : CVIBuffer_Terrain"); + Safe_Release(pInstance); } return pInstance; } -CVIBuffer_Terrain* CVIBuffer_Terrain::Clone(void* pArg, CGameObject* pOwner) +CComponent* CVIBuffer_Terrain::Clone(void* pArg, class CGameObject* pOwner) { CVIBuffer_Terrain* pInstance = new CVIBuffer_Terrain(*this); - pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) { MSG_BOX("Failed to Cloned : CVIBuffer_Terrain"); - SAFE_RELEASE(pInstance); + Safe_Release(pInstance); } return pInstance; } - void CVIBuffer_Terrain::Free() { __super::Free(); + + Safe_Release(m_pQuadTree); } +#ifdef _DEBUG void CVIBuffer_Terrain::Describe_Entity() { -} \ No newline at end of file +} +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp index 6a1868346..110a22c4f 100644 --- a/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp +++ b/Jusin154_Team3D/Engine/Private/VIBuffer_UI_Instance.cpp @@ -10,7 +10,6 @@ CVIBuffer_UI_Instance::CVIBuffer_UI_Instance(ID3D11Device* pDevice, ID3D11Device CVIBuffer_UI_Instance::CVIBuffer_UI_Instance(const CVIBuffer_UI_Instance& Prototype) : CVIBuffer_Instance{ Prototype } , m_pInstanceVertices{ Prototype.m_pInstanceVertices } - , m_fSize{ Prototype.m_fSize } , m_fPosition{ Prototype.m_fPosition } { } @@ -112,17 +111,9 @@ HRESULT CVIBuffer_UI_Instance::Initialize_Prototype(const INSTANCE_DESC* pInstan m_pInstanceVertices = new VTX_INSTANCE_UI[m_iNumInstance]; ZeroMemory(m_pInstanceVertices, sizeof(VTX_INSTANCE_UI) * m_iNumInstance); - m_fSize = new _float2[m_iNumInstance]; - ZeroMemory(m_fSize, sizeof(_float2) * m_iNumInstance); - m_fPosition = new _float2[m_iNumInstance]; ZeroMemory(m_fPosition, sizeof(_float2) * m_iNumInstance); - for (size_t i = 0; i < m_iNumInstance; ++i) - { - m_pInstanceVertices[i].fSize = (pDesc->vSize); - m_pInstanceVertices[i].fPos = _float2(pDesc->vPsition.x + 75 * i, pDesc->vPsition.y); - } m_InstanceInitialDesc.pSysMem = m_pInstanceVertices; @@ -140,19 +131,49 @@ HRESULT CVIBuffer_UI_Instance::Initialize(void* pArg) return S_OK; } -void CVIBuffer_UI_Instance::Set_Pos(_float fX, _float fY, _float OffSet) +void CVIBuffer_UI_Instance::Set_Index_Position(_uint iIndex, _float fX, _float fY) { D3D11_MAPPED_SUBRESOURCE SubResource{}; - m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); - for (size_t i = 0; i < m_iNumInstance; i++) + pVertices[iIndex].fPos.x = fX; + pVertices[iIndex].fPos.y = fY; + + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_UI_Instance::Set_Index_Size(_uint iIndex, _float fSizeX, _float fSizeY) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); + + VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); + + pVertices[iIndex].fSize.x = fSizeX; + pVertices[iIndex].fSize.y = fSizeY; + + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_UI_Instance::Set_Pos(_float fX, _float fY, _float OffSetX, _float OffSetY, _uint iCols) +{ + + D3D11_MAPPED_SUBRESOURCE SubResource{}; + m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); + + VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); + + for (_uint i = 0; i < m_iNumInstance; i++) { - pVertices[i].fPos.x = fX + m_pInstanceVertices[i].fPos.x; // 인덱스 * 간격 - pVertices[i].fPos.y = fY; + _uint col = i % iCols; // 가로 인덱스 + _uint row = i / iCols; // 세로 인덱스 + + pVertices[i].fPos.x = fX + col * OffSetX; + pVertices[i].fPos.y = fY + row * OffSetY; } + m_pContext->Unmap(m_pVBInstance, 0); } @@ -168,7 +189,63 @@ void CVIBuffer_UI_Instance::Set_Size(_float fSizeX, _float fSizeY) { pVertices[i].fSize.x = fSizeX; pVertices[i].fSize.y = fSizeY; + } + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_UI_Instance::Set_SizeX(_float fSizeX) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); + + VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); + + for (size_t i = 0; i < m_iNumInstance; i++) + { + pVertices[i].fSize.x = fSizeX; + } + + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_UI_Instance::Set_SizeY(_float fSizeY) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); + + VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); + + for (size_t i = 0; i < m_iNumInstance; i++) + { + pVertices[i].fSize.y = fSizeY; + } + + m_pContext->Unmap(m_pVBInstance, 0); +} + +void CVIBuffer_UI_Instance::Set_ImageUV(UI_ATLAS_DESC* AtlasUV) +{ + D3D11_MAPPED_SUBRESOURCE SubResource{}; + + m_pContext->Map(m_pVBInstance, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &SubResource); + + VTX_INSTANCE_UI* pVertices = static_cast(SubResource.pData); + + for (size_t i = 0; i < m_iNumInstance; i++) + { + if (AtlasUV == nullptr) + { + pVertices[i].fUVStart = _float2(0.f, 0.f); + pVertices[i].fUVStart = _float2(1.f, 1.f); + } + else + { + pVertices[i].fUVStart = AtlasUV[i].fUVStart; + pVertices[i].fUVEnd = AtlasUV[i].fUVEnd; + } } m_pContext->Unmap(m_pVBInstance, 0); @@ -183,7 +260,7 @@ CVIBuffer_UI_Instance* CVIBuffer_UI_Instance::Create(ID3D11Device* pDevice, ID3D MSG_BOX("Failed to Created : CVIBuffer_UI_Instance"); Safe_Release(pInstance); } - + return pInstance; } @@ -208,9 +285,13 @@ void CVIBuffer_UI_Instance::Free() if (false == m_isCloned) { Safe_Delete_Array(m_pInstanceVertices); + Safe_Delete_Array(m_fPosition); } } +#ifdef _DEBUG void CVIBuffer_UI_Instance::Describe_Entity() { } + +#endif // _DEBUG diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 5d86dbdad..43a2aeb8f 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -11,7 +11,9 @@ class ENGINE_DLL CAnimation : public CBase CAnimation(const CAnimation& rhs); virtual ~CAnimation() = default; public: - _bool Update_TransformationMatrices(const vector& Bones, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr); + _bool Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr, _float m_fAmount = 1.f); + void Reset(); + void ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount); void ResetRootMotion(); void Depart_Animation(); void Set_AnimPause(_bool bValue) { m_bPause = bValue; } @@ -21,30 +23,48 @@ class ENGINE_DLL CAnimation : public CBase void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition); vector<_int>* Capture_Bones(); void InterpAnim(CAnimation* pPreAnim, vector& Bones, float fRatio); + + + + void CreateGPUData(ID3D11Device* pDevice); + + vector Get_StartFrameInformations() { return m_StartKeyFrames; } const _string& Get_Name() const { return m_strName; } const _char* Get_SZName() const { return m_szName; } - void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition =TrackPosition; } + void Set_CurrentTrackPosition(_float TrackPosition) { m_fCurrentTrackPosition = TrackPosition; } _float Get_CurrentTrackPosition() { return m_fCurrentTrackPosition; } + _float Get_CurrentTrackProgressRatio() { return m_fCurrentTrackPosition / m_fDuration; } void Set_AnimSpeed(_float fSpeed) { m_fAnimSpeed = fSpeed; } _float Get_AnimSpeed() { return m_fAnimSpeed; } + + _uint Get_ChannelCount() { return m_iNumChannels; } + _float Get_Duration() { return m_fDuration; } + + ID3D11Buffer* Get_KeyFrameBuffer() { return m_pKeyFrameBuffer; } + ID3D11Buffer* Get_ChannelBuffer() { return m_pChannelBuffer; } + ID3D11ShaderResourceView* Get_KeyFrameSrv() { return m_pKeyFrameSrv; } + ID3D11ShaderResourceView* Get_ChannelSrv() { return m_pChannelSrv; } #ifdef EDITOR_PROJECT private: HRESULT Initialize(const vector& Bones, const aiAnimation* pAIAnimation); public: - HRESULT SaveAsBinary(HANDLE hFile, DWORD& dwByte); static CAnimation* Create(const vector& Bones, const aiAnimation* pAnimation); #endif // EDITOR_PROJECT private: - HRESULT Initialize(HANDLE hFile, DWORD& dwByte); // 바이너리 - HRESULT Initialize(const class CModel* pModel,SaveAnimation* pSaveAnimation); + HRESULT Initialize(const vector& Bones, const class CModel* pModel,SaveAnimation* pSaveAnimation); // HRESULT Combined_Initialize(); _uint Get_BoneIndex(const char* pChannelName); + HRESULT CreateKeyFrameBuffer(ID3D11Device* pDevice, vector keyframe); + HRESULT CreateChannelBuffer(ID3D11Device* pDevice, vector channel); + + + private: SaveAnimation* m_pSaveAnim = { nullptr }; _char m_szName[MAX_PATH] = {}; @@ -63,15 +83,28 @@ class ENGINE_DLL CAnimation : public CBase vector<_int> m_DestBones; // 이 애니메이션에서 영향을 받는 본들의 집합 vector m_StartKeyFrames; // 이 애니메이션의 영향을 받는 본들의 초기값 - vector<_matrix> m_vBoneTransformationMatrix = {}; + vector<_matrix> m_vBoneTransformationMatrix = {}; + + _uint m_iChannelCount; + _uint m_iKeyframeCount; + _uint m_iBoneCount; + vector m_KeyFrameDesc; + vector m_ChannelDesc; + + ID3D11Buffer* m_pKeyFrameBuffer; + ID3D11Buffer* m_pChannelBuffer; + ID3D11ShaderResourceView* m_pKeyFrameSrv = {}; + ID3D11ShaderResourceView* m_pChannelSrv = {}; public: - static CAnimation* Create(HANDLE hFile, DWORD& dwByte); // 바이너리 - static CAnimation* Create(const class CModel* pModel, SaveAnimation* pSaveAnimation); + static CAnimation* Create(const vector& Bones, const class CModel* pModel, SaveAnimation* pSaveAnimation); // CAnimation* Clone(); virtual void Free() override; +#ifdef _DEBUG void Describe_Entity(); +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Assimp/material.h b/Jusin154_Team3D/Engine/Public/Assimp/material.h index 9d10347cc..1da122b05 100644 --- a/Jusin154_Team3D/Engine/Public/Assimp/material.h +++ b/Jusin154_Team3D/Engine/Public/Assimp/material.h @@ -1,4 +1,4 @@ -/* +/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- diff --git a/Jusin154_Team3D/Engine/Public/Base.h b/Jusin154_Team3D/Engine/Public/Base.h index df272ea38..bb1f818a1 100644 --- a/Jusin154_Team3D/Engine/Public/Base.h +++ b/Jusin154_Team3D/Engine/Public/Base.h @@ -16,10 +16,10 @@ class ENGINE_DLL CBase abstract _uint Release(); protected: - _uint m_iRefCnt = {}; + atomic<_uint> m_iRefCnt = { 0 }; public: virtual void Free(); }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Bone.h b/Jusin154_Team3D/Engine/Public/Bone.h index 12b408475..6343c5043 100644 --- a/Jusin154_Team3D/Engine/Public/Bone.h +++ b/Jusin154_Team3D/Engine/Public/Bone.h @@ -8,6 +8,7 @@ class ENGINE_DLL CBone final : public CBase { private: CBone(); + CBone(const CBone& other); virtual ~CBone() = default; public: _matrix Get_CombinedTransformationMatrix() const { @@ -27,14 +28,13 @@ class ENGINE_DLL CBone final : public CBase _float3 Get_LocalPosition(); void Update_CombinedTransformationMatrix(const vector& Bones, _fmatrix PreTransformMatrix); void Set_TransformationMatrix(_fmatrix TransformationMatrix); // 애니메이션에서 현재 로컬 매트릭스를 변경할 때 사용된다 - + _int Get_ParentBoneIndex() { return m_iParentBoneIndex; } private: _char m_szName[MAX_PATH] = {}; // 본의 이름 _float4x4 m_TransformationMatrix = {}; // 본의 현재 로컬 매트릭스 _float4x4 m_CombinedTransformationMatrix = {}; // 본의 루트노드로부터 상대적인 복합매트릭스 ( 부모노드는 PreTranformMatrix와 월드좌표로부터 상대적임 ) _int m_iParentBoneIndex = { -1 }; // 부모본의 인덱스 ( 모델에 있는 본벡터의 인덱스 ) ( 부모는 인덱스 -1 고정 ) _float4x4 m_matInitial = {}; - private: HRESULT Initialize(HANDLE hFile, DWORD& dwByte); // 바이너리 @@ -59,4 +59,4 @@ class ENGINE_DLL CBone final : public CBase }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Camera.h b/Jusin154_Team3D/Engine/Public/Camera.h index 595ab25f9..a055af9ce 100644 --- a/Jusin154_Team3D/Engine/Public/Camera.h +++ b/Jusin154_Team3D/Engine/Public/Camera.h @@ -12,8 +12,19 @@ class ENGINE_DLL CCamera abstract : public CGameObject _float fFovy{}, fNear{}, fFar{}; _uint iPriority = { UINT_MAX }; const _wchar* pCameraKey = { }; - CGameObject* pFollowTarget = { nullptr }; - CGameObject* pLookTarget = { nullptr }; + + // Lerping + CGameObject* pFollowTarget = { nullptr }; + CGameObject* pLookTarget = { nullptr }; + + _bool bEnableTransitionLerp = { false }; + _float2 vTransitionTime = { 0.f, 1.f }; + + _bool bEnableLookLerp = { false }; + _float2 vLookLerpTime = { 0.f, 0.16f }; + + _bool bEnableFollowLerp = { false }; + _float2 vFollowLerpTime = { 0.f, 0.16f }; }CAMERA_DESC; protected: @@ -40,12 +51,21 @@ class ENGINE_DLL CCamera abstract : public CGameObject _float m_fNear = {}; _float m_fFar = {}; - _float m_fTransitionMaxTime = { 1.f }; - _float m_fTransitionCurrentTime = { 0.f }; - + _float2 m_vTransitionTime = { 0.f, 1.f }; + _float2 m_vLookLerpTime = { 0.f, 0.16f }; + _float3 m_vLookPos_Src = { 0.f, 0.f, 1.f }; + _float3 m_vLookPos_Dest = { 0.f, 0.f, 1.f }; + _float2 m_vFollowLerpTime = { 0.f, 0.16f }; + _float3 m_vFollowPos_Src = { 0.f, 0.f, 0.f }; + _float3 m_vFollowPos_Dest = { 0.f, 0.f, 0.f }; _uint m_iPriority = { UINT_MAX }; _bool m_bIsCurrentTransition = { false }; + _bool m_bEnable_TransitionLerp = { false }; + _bool m_bEnable_LookLerp = { false }; + _bool m_bEnable_FollowLerp = { false }; + + _bool m_bActive = { false }; diff --git a/Jusin154_Team3D/Engine/Public/Camera_Manager.h b/Jusin154_Team3D/Engine/Public/Camera_Manager.h index a6c31d7dc..718bf6b55 100644 --- a/Jusin154_Team3D/Engine/Public/Camera_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Camera_Manager.h @@ -16,6 +16,7 @@ class CCamera_Manager final : public CBase HRESULT Add_Camera(_uint iLevel, CCamera* pCamera, const _wstring& wstrCameraKey); HRESULT Bind_Camera(_uint iLevel, const _wstring& wstrCameraKey, _bool bIgnorePriority); HRESULT IsBinded_Camera(const _wstring& wstrCameraKey); + _vector Get_CameraLook(); void Force_CamPosition(_fvector vPos); diff --git a/Jusin154_Team3D/Engine/Public/Channel.h b/Jusin154_Team3D/Engine/Public/Channel.h index 745a95f1c..593a43116 100644 --- a/Jusin154_Team3D/Engine/Public/Channel.h +++ b/Jusin154_Team3D/Engine/Public/Channel.h @@ -13,20 +13,20 @@ class ENGINE_DLL CChannel : public CBase #ifdef EDITOR_PROJECT private: HRESULT Initialize(const vector& Bones, const aiNodeAnim* pAIChannel); -public: - HRESULT SaveAsBinary(HANDLE hFile, DWORD& dwByte); - static CChannel* Create(const vector& Bones, const aiNodeAnim* pAIChannel); -#endif // EDITOR_PROJECT public: - void Update_TransformationMatirx(const vector& Bones, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr); + static CChannel* Create(const vector& Bones, const aiNodeAnim* pAIChannel); + +#endif // EDITOR_PROJECT +public: + void Fill_GPU_Keyframes(vector& outKeyframes); + CHANNEL_DESC Fill_GPU_ChannelDesc(); + +public: + void Update_TransformationMatirx(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _float fCurrentTrackPosition, _uint* pCurrentKeyFrameIndex,class CTransform* pTransform=nullptr,_float m_fAmount = 1.f); _int Get_BoneIndex() { return { m_iBoneIndex }; } void Set_BoneIndex(_int iBoneIndex) { m_iBoneIndex = iBoneIndex; } - void ResetRootMotion() { - m_vPrevRootPos = { 0.f, 0.f, 0.f }; - m_vPrevRootRot = { 0.f,0.f,0.f,0.f }; - m_bInitialRootRotSaved = false; - } + void ResetRootMotion(); _matrix Get_BoneTransformationMatrix() { return m_BoneTransformationMatrix; } KEYFRAME* Get_Frame(_uint iIndex); @@ -51,12 +51,12 @@ class ENGINE_DLL CChannel : public CBase _float3 m_vPrevRootPos = { 0.f, 0.f, 0.f }; _float4 m_vPrevRootRot = { 0.f, 0.f, 0.f,0.f }; _matrix m_BoneTransformationMatrix = {}; - _float m_fPrevYaw = 0.f; - _bool m_bInitialRootRotSaved = {false}; -_float4 m_vInitialRootRot = {}; + _bool m_bInitialRootPos = { false }; + _bool m_bInitialRootRotSaved = {false}; + _float4 m_vInitialRootRot = {}; + + vector m_KeyFrameDesc; public: - static CChannel* Create(const vector& Bones, _uint iIndex); // 럴프전용 - static CChannel* Create(HANDLE hFile, DWORD& dwByte); // 바이너리 static CChannel* Create(const class CModel* pModel, SaveChannel* pSaveChannel); // diff --git a/Jusin154_Team3D/Engine/Public/Character_Controller.h b/Jusin154_Team3D/Engine/Public/Character_Controller.h index 0d3173be0..18aed237d 100644 --- a/Jusin154_Team3D/Engine/Public/Character_Controller.h +++ b/Jusin154_Team3D/Engine/Public/Character_Controller.h @@ -61,6 +61,8 @@ class ENGINE_DLL CCharacter_Controller final : _float3 Get_Volume(); HRESULT ConvertToDO(class CRigidBody_Dynamic& BodyOriginal); + _bool IsGravity() { return m_bGravity; } + void SetGravity(_bool bCondition) { m_bGravity = bCondition; }; _bool IsActive() const { return m_bActive; } void SetActive(_bool bCondition) { m_bActive = bCondition; } @@ -74,6 +76,7 @@ class ENGINE_DLL CCharacter_Controller final : PSX::PxControllerCollisionFlags m_eBeforeCollisionFlags = {}; _bool m_bActive = { true }; + _bool m_bGravity = { true }; #ifdef _DEBUG unique_ptr m_pMainShape = { nullptr }; unique_ptr m_pSubShape = { nullptr }; @@ -93,7 +96,10 @@ class ENGINE_DLL CCharacter_Controller final : static CCharacter_Controller* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity() override; +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Collider.h b/Jusin154_Team3D/Engine/Public/Collider.h index 01c399467..96529f754 100644 --- a/Jusin154_Team3D/Engine/Public/Collider.h +++ b/Jusin154_Team3D/Engine/Public/Collider.h @@ -43,8 +43,9 @@ class ENGINE_DLL CCollider final : public CComponent static CCollider* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; +#ifdef _DEBUG void Describe_Entity() override; - +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/ComputeShader.h b/Jusin154_Team3D/Engine/Public/ComputeShader.h index d13457208..69e66bcff 100644 --- a/Jusin154_Team3D/Engine/Public/ComputeShader.h +++ b/Jusin154_Team3D/Engine/Public/ComputeShader.h @@ -6,7 +6,6 @@ NS_BEGIN(Engine) class ENGINE_DLL CComputeShader final : public CBase { - private: CComputeShader(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual ~CComputeShader() = default; @@ -17,6 +16,9 @@ class ENGINE_DLL CComputeShader final : public CBase public: vector Dispatch(_uint iSRVIndex, _uint iUAVIndex, _float3 vGroupCount, ID3D11Buffer** ppBuffers, ID3D11Buffer* pConstantBuffer = nullptr); void Bind_OutPut_SRV(_uint iIndex, _uint iBufferIndex); + ID3D11ComputeShader* Get_Compute() { return m_pComputeShader; } + ID3D11UnorderedAccessView* GetOutputUAV(_uint iIndex) const; + vector ReadBackOutputs(); private: void Bind_SRV(_uint iIndex); void Bind_UAV(_uint iIndex); @@ -27,14 +29,14 @@ class ENGINE_DLL CComputeShader final : public CBase HRESULT CreateComputeShader(const _tchar* pShaderFilePath, const _char* pStartFunctionName); private: - ID3D11Device* m_pDevice = { nullptr }; + ID3D11Device* m_pDevice = { nullptr }; ID3D11DeviceContext* m_pContext = { nullptr }; class CGameInstance* m_pGameInstance = { nullptr }; private: vector m_pInputSRV = {}; vector m_pOutputUAV = {}; - vector< ID3D11ShaderResourceView*> m_pOutputSRV = {}; + vector m_pOutputSRV = {}; vector m_pInputBuffer = {}; vector m_pOutputBuffer = {}; @@ -43,7 +45,7 @@ class ENGINE_DLL CComputeShader final : public CBase vector m_pOutputStagingBuffer = {}; ID3D11ComputeShader* m_pComputeShader = nullptr; - + private: @@ -57,4 +59,4 @@ class ENGINE_DLL CComputeShader final : public CBase }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/ContainerObject.h b/Jusin154_Team3D/Engine/Public/ContainerObject.h index 0c9339555..f0d2f8f06 100644 --- a/Jusin154_Team3D/Engine/Public/ContainerObject.h +++ b/Jusin154_Team3D/Engine/Public/ContainerObject.h @@ -26,6 +26,20 @@ class ENGINE_DLL CContainerObject abstract : public CGameObject return nullptr; } + template + T* Get_PartObject() { + + for (auto& pPart : m_PartObjects) + { + if (typeid((*pPart.second)) == typeid(T)) + { + return dynamic_cast(pPart.second); + } + + } + return nullptr; + } + protected: unordered_map<_string, class CPartObject*> m_PartObjects; @@ -61,4 +75,4 @@ class ENGINE_DLL CContainerObject abstract : public CGameObject virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/ElementObject.h b/Jusin154_Team3D/Engine/Public/ElementObject.h index 6718bfa69..8ace2e23b 100644 --- a/Jusin154_Team3D/Engine/Public/ElementObject.h +++ b/Jusin154_Team3D/Engine/Public/ElementObject.h @@ -30,8 +30,10 @@ class ENGINE_DLL CElementObject abstract : public CUIObject virtual _float Get_Nine_Slice_Top() override; virtual _float Get_Nine_Slice_Bottom() override; - virtual void Start_Lerp(_float fTimeDelta, _bool Alpha = false) override; - virtual void Reset_Pos(_float fTimeDelta, _bool Alpha = false) override; + virtual void Start_Lerp(_float fTimeDelta) override; + virtual void Reset_Pos(_float fTimeDelta)override; + virtual void Start_Size_Lerp(_float fTimeDelta) override; + virtual void Reset_Size_Lerp(_float fTimeDelta) override; virtual _vector Get_Lerp_Pos() override; protected: diff --git a/Jusin154_Team3D/Engine/Public/Engine_Define.h b/Jusin154_Team3D/Engine/Public/Engine_Define.h index 58bde9156..972d28f49 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Define.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Define.h @@ -17,4 +17,4 @@ static _uint g_iStaticLevel; NS_END -USING(Engine); \ No newline at end of file +USING(Engine); diff --git a/Jusin154_Team3D/Engine/Public/Engine_Enum.h b/Jusin154_Team3D/Engine/Public/Engine_Enum.h index ea9ef2e51..a2f0c036c 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Enum.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Enum.h @@ -5,7 +5,7 @@ NS_BEGIN(Engine) enum class STATE { RIGHT, UP, LOOK, POSITION, END }; enum class LIGHT { DIRECTIONAL, POINT, SPOT, END }; enum class COLLIDER { AABB, OBB, SPHERE, END }; -enum class RENDER { PRIORITY, SHADOW, NONBLEND, BLUR, NONLIGHT, EFFECT ,BLEND, UI, END }; +enum class RENDER { PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, UI, END }; enum class RAY { LOCAL, WORLD, END }; enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END }; @@ -34,9 +34,14 @@ enum class NAVI_POINT { A, B, C, END }; enum class NAVI_LINE { AB, BC, CA, END }; enum class SHADER_PASS_CELL { DEBUG, END }; -enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPOT, END }; +enum class SHADER_PASS_DEFERRED { DEBUG, DIRECTIONAL, POINT, COMBINED, BLUR, SPOT, REFIT, EMBOSSING, BLOOM_BLURX, BLOOM_BLURY, BLOOM_ACCUM, BLOOM_FINISH, END }; enum class QUESTYPE {MAIN, SUB, END}; +enum class TEXTURE_MOUNT_SLOT0 { NOT_DEFINED, METALLIC, SPECULAR, HEIGHT, END }; +enum class TEXTURE_MOUNT_SLOT1 { NOT_DEFINED, ROUGHNESS, END }; +enum class TEXTURE_MOUNT_SLOT2 { NOT_DEFINED, OCCLUSION, ALPHA, Amount_Scatter, END }; +enum class TEXTURE_MOUNT_SLOT3 { NOT_DEFINED, HEIGHT, ALPHA, Brightness_Scatter, END }; + #ifndef EDITOR_PROJECT enum aiTextureType { diff --git a/Jusin154_Team3D/Engine/Public/Engine_Function.h b/Jusin154_Team3D/Engine/Public/Engine_Function.h index 6ce4121da..64086a61a 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Function.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Function.h @@ -24,7 +24,7 @@ void Safe_Delete_Array(T& Pointer) } template -unsigned long SAFE_ADDREF(T& pInstance) +unsigned long Safe_AddRef(T& pInstance) { unsigned long dwRefCnt = 0; diff --git a/Jusin154_Team3D/Engine/Public/Engine_Macro.h b/Jusin154_Team3D/Engine/Public/Engine_Macro.h index 00bf5e20e..4096e43a0 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Macro.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Macro.h @@ -19,10 +19,10 @@ #ifdef 기무리 #undef ASSERT_NURI #define ASSERT_NURI(expression) assert(expression) -#elif kim05 +#elif 진우 #undef ASSERT_JINWOO #define ASSERT_JINWOO(expression) assert(expression) -#elif 82103 +#elif gimch #undef ASSERT_JINHO #define ASSERT_JINHO(expression) assert(expression) #elif Bin @@ -71,6 +71,11 @@ #define PURE = 0 #endif +#define FX_DEFERRED TEXT("FX_DEFERRED") +#define FX_LASTCOLOR TEXT("FX_LASTCOLOR") +#define FX_WEIGHTBELND TEXT("FX_WEIGHTBELND") + + #define SAFE_ADDREF(pInstance) Safe_AddRef(pInstance) #define SAFE_RELEASE(pInstance) Safe_Release(pInstance) diff --git a/Jusin154_Team3D/Engine/Public/Engine_Struct.h b/Jusin154_Team3D/Engine/Public/Engine_Struct.h index 89146f58e..d763ad9b1 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Struct.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Struct.h @@ -122,7 +122,7 @@ struct SaveMesh struct SaveMaterial { - vector Path[27]; + vector Path[AI_TEXTURE_TYPE_MAX]; }; @@ -178,6 +178,14 @@ struct SaveModel #pragma region VTX +typedef struct tagVertexInstance_Model +{ + _float4 vRight = {}; + _float4 vUp = {}; + _float4 vLook = {}; + _float4 vTranslation = {}; +}VTX_INSTANCE_MODEL; + typedef struct tagVertexInstance_Particle { _float4 vRight = {}; @@ -192,6 +200,8 @@ typedef struct tagVertexInstance_UI { _float2 fSize = {}; _float2 fPos = {}; + _float2 fUVStart = {}; + _float2 fUVEnd = {}; }VTX_INSTANCE_UI; typedef struct tagVertexBlock @@ -206,7 +216,6 @@ typedef struct tagVertexBlock { "NORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 }, { "TEXCOORD", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 24, D3D11_INPUT_PER_VERTEX_DATA, 0 }, }; - }VTXBLOCK; typedef struct tagVertexPosition { @@ -319,13 +328,45 @@ typedef struct tagVertexModelInstanceParticleDesc }; }VTX_MODEL_INSTANCE_PARTICLE; +typedef struct tagVertexModelInstanceModelDesc +{ + static constexpr _uint iNumElements = { 9 }; + static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { + { "POSITION" , 0 , DXGI_FORMAT_R32G32B32_FLOAT , 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0}, + { "NORMAL" , 0 , DXGI_FORMAT_R32G32B32_FLOAT , 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0}, + { "TANGENT" , 0 , DXGI_FORMAT_R32G32B32_FLOAT , 0, 24, D3D11_INPUT_PER_VERTEX_DATA, 0}, + { "BINORMAL", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 36, D3D11_INPUT_PER_VERTEX_DATA, 0}, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 48, D3D11_INPUT_PER_VERTEX_DATA, 0}, + + { "TEXCOORD", 1, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 0, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 2, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 16, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 3, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 32, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 4, DXGI_FORMAT_R32G32B32A32_FLOAT, 1, 48, D3D11_INPUT_PER_INSTANCE_DATA, 1 } + }; +}VTX_MODEL_INSTANCE_MODEL; + #pragma endregion +typedef struct tagVertexInstance_UIDesc +{ + static constexpr unsigned int iNumElements = {6}; + static constexpr D3D11_INPUT_ELEMENT_DESC Elements[] = { + { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0}, + { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0}, + + { "TEXCOORD", 1, DXGI_FORMAT_R32G32_FLOAT, 1, 0, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 2, DXGI_FORMAT_R32G32_FLOAT, 1, 8, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 3, DXGI_FORMAT_R32G32_FLOAT, 1, 16, D3D11_INPUT_PER_INSTANCE_DATA, 1 }, + { "TEXCOORD", 4, DXGI_FORMAT_R32G32_FLOAT, 1, 24, D3D11_INPUT_PER_INSTANCE_DATA, 1 } + }; + +}VTX_POSTEX_INSTANCE_UI; typedef struct tagPhsXUserData { - PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED; - class CGameObject* pOwner = { nullptr }; + PHYSX_KIND eKind = PHYSX_KIND::NOT_DEFINED; + + class CGameObject* pOwner = { nullptr }; _float4x4 BeforeMatrix = { }; _uint iSubKind = UINT_MAX; @@ -337,4 +378,51 @@ typedef struct tagPhsXUserData { }PhsXUserData; +typedef struct tagOnCollsionInfo +{ + _vector vWorldPos = {}; // 접촉지점 + _vector vWorldNomal = {}; // 접촉노말 + _vector vHitDir = {}; // 시도한 move 방향 + _float fLength = {}; // 작용된 힘 + +}ON_COLLISION_INFO; + +typedef struct tagKeyFrameDesc +{ + _float3 vScale; + _float4 vRotation; + _float3 vTranslation; + _float fTrackPosition; + +}KEYFRAME_DESC; + +typedef struct tagChannelDesc +{ + _uint StartIndex; + _uint KeyCount; + _uint BoneIndex; + //_uint Padding; +}CHANNEL_DESC; + + +typedef struct tagParentDesc +{ + _int ParentIndex; +}PARENT_DESC; + +typedef struct tagLocalPos +{ + _float3 Scale; + _float pad0; + _float4 Rotation; + _float3 Translation; + _float pad1; +}LOCALPOS_DESC; + +typedef struct tagBoneDesc +{ + _float4x4 Combined; +}BONE_DESC; + + NS_END diff --git a/Jusin154_Team3D/Engine/Public/Engine_Typedef.h b/Jusin154_Team3D/Engine/Public/Engine_Typedef.h index 40ba0d8ef..dd7629714 100644 --- a/Jusin154_Team3D/Engine/Public/Engine_Typedef.h +++ b/Jusin154_Team3D/Engine/Public/Engine_Typedef.h @@ -43,4 +43,4 @@ typedef CXMMATRIX _cmatrix; typedef POINT _point; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h index 736f2c6ca..61f7cc80f 100644 --- a/Jusin154_Team3D/Engine/Public/FSM.h +++ b/Jusin154_Team3D/Engine/Public/FSM.h @@ -1,14 +1,23 @@ #include "Component.h" NS_BEGIN(FSMSTATE) -enum ESTATE +enum ESTATE : _u64Flag { - IDLE,IDLE_TURN, - MOVE, WALK, WALK_FWD, WALK_BWD, JOG, SPRINT, - JUMP, - LAND, - DODGE, - COMBAT, LIGHT_ATTACK, CAST, SKILL,SKILL2, + NOT_DEFINE = 0, + IDLE = 1ULL << 0, + MOVE = 1ULL << 1, + WALK = 1ULL << 2, + JOG = 1ULL << 3, + SPRINT = 1ULL << 4, + JUMP = 1ULL << 5, + LAND = 1ULL << 6, + DODGE = 1ULL << 7, + COMBAT = 1ULL << 8, + LIGHT_ATTACK = 1ULL << 9, + SPELL = 1ULL << 10, + SKILL = 1ULL << 11, + SKILL2 = 1ULL << 12, + MAPHELP = 1ULL << 13, END }; NS_END @@ -19,34 +28,53 @@ class CState; class ENGINE_DLL CFSM final : public CComponent { +public: + typedef struct tagFSMDesc + { + unordered_map* pStates = { nullptr }; + size_t* pStateMask = { nullptr }; + }FSM_DESC; private: CFSM(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CFSM(const CFSM& rhs); virtual ~CFSM() = default; public: - void Add_State(_uint iIndex, CState* state); - void Change_State(_uint iIndex); - void Update(_float fTimeDelta); + void Change_State(size_t iStateMask); + HRESULT Update_State(_float fTimeDelta); - _uint Get_CurrState(); - _uint Get_PrevState(); - void Set_Parent(FSMSTATE::ESTATE Child, FSMSTATE::ESTATE Parent); + CState* Get_PrevState() { return m_pPreviousState; } + size_t Get_PrevStateMask() { return m_iPreviousStateMask; } + + inline void Enable_State(size_t stateMask) { *m_pStateMask |= stateMask; } + inline void Set_State(size_t initialStateMask) { *m_pStateMask = initialStateMask; } + inline void Disable_State(size_t stateMask) { *m_pStateMask &= ~stateMask; } + + inline _bool IsEnable(size_t stateMask) const { return (*m_pStateMask & stateMask) != 0; } + inline _bool IsEnable_Previous(size_t stateMask) const { return (m_iPreviousStateMask & stateMask) != 0; } + + + HRESULT Bind_States(FSM_DESC& Desc); private: - vector m_States; - CState* m_pCurrent = { nullptr }; - CState* m_pPrevious = { nullptr }; + unordered_map* m_pStates = { nullptr }; + size_t* m_pStateMask = { nullptr }; + + size_t m_iPreviousStateMask = { 0 }; + + CState* m_pCurrentState = { nullptr }; + CState* m_pPreviousState = { nullptr }; private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; - public: static CFSM* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; + virtual CFSM* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h index 0f7449f89..9939c98a1 100644 --- a/Jusin154_Team3D/Engine/Public/GameInstance.h +++ b/Jusin154_Team3D/Engine/Public/GameInstance.h @@ -1,5 +1,6 @@ #pragma once #include "Prototype_Manager.h" +#include "ThreadHolder.h" #include "GameObject_Manager.h" NS_BEGIN(Engine) @@ -28,6 +29,7 @@ class ENGINE_DLL CGameInstance final : public CBase void Render_Begin(const _float4* pClearColor); void Render_End(); HRESULT Bind_DepthStencil(class CShader* pShader, const _char* pContantName); + void Get_BackBufferPTR(ID3D11Texture2D** pTexture2D); #pragma endregion #pragma region TIMER_MANAGER @@ -67,7 +69,7 @@ class ENGINE_DLL CGameInstance final : public CBase } template - _string Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") + _string Asset_Description(_uint iLevel, const _char* pComponentName, CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") { return m_pPrototype_Manager->CPrototype_Manager::Asset_Description(iLevel, pComponentName, ppOut, pDesc, pOwner, wstrGroupName); } @@ -93,7 +95,6 @@ class ENGINE_DLL CGameInstance final : public CBase void Clear_Objects_With_Layers(_uint iLevelIndex); #pragma endregion - #pragma region RENDERER HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject); #pragma endregion @@ -157,6 +158,10 @@ class ENGINE_DLL CGameInstance final : public CBase HRESULT End_MRT(); HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName); HRESULT Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D); + HRESULT Paste_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D); + HRESULT Accumulate_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTarget_SrcA, const _wstring& wstrRenderTarget_SrcB, const _wstring& wstrRenderTarget_Target, SHADER_PASS_DEFERRED ePass); + 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); #ifdef _DEBUG void RenderTarget_Debuger(); HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer); @@ -168,6 +173,7 @@ class ENGINE_DLL CGameInstance final : public CBase HRESULT Add_Camera(_uint iLevel, class CCamera* pCamera, const _wstring& strCameraKey); HRESULT Bind_Camera(_uint iLevel, const _wstring& strCameraKey, _bool bIgnorePriority); HRESULT IsBinded_Camera(const _wstring& strCameraKey); + _vector Get_CameraLook(); const _float* Get_CurrentCameraFar(); void Force_CamPosition(_fvector vPos); #pragma endregion @@ -198,34 +204,37 @@ class ENGINE_DLL CGameInstance final : public CBase void Attach_Actor(PSX::PxActor& Actor); void Detach_Actor(PSX::PxActor& pActor); void Release_Actor(PSX::PxActor& Actor); - +#ifdef EDITOR_PROJECT HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity()); HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes); +#endif // EDITOR_PROJECT HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); // 모델 불러왔던 경로에 그대로 있음 #pragma endregion - +#pragma region THREADHOLDER + template + future> EnqueueJob(Function&& func, Args&&... args) + { + return m_pThreadHolder->EnqueueJob( + forward(func), + forward(args)... + ); + } +#pragma endregion public: - void Add_ModelToMap(const _char* filePath, CModel* pModel) - { - m_ModelMap[filePath] = pModel; - } + void Add_ModelToMap(const _char* filePath, CModel* pModel); - void Add_SaveModel(const _char* filePath, SaveModel sModel) - { - m_sModelMap[filePath] = sModel; - } - -#ifdef EDITOR_PROJECT - _bool SaveAssimpModel(const _char* filename); -#endif + void Add_SaveModel(const _char* filePath, SaveModel sModel); SaveModel* Load_SaveModel(const _char* filePath); +#ifdef EDITOR_PROJECT + _bool SaveAssimpModel(const _char* filename); void Save_ModelFilePath(const _char* FilePath); const _char* Load_ModelFilePath(_uint iIndex); const _char* Load_BinaryModelFilePath(_uint iIndex); size_t BinaryModelFilePathCount(); size_t ModelFilePathCount(); +#endif private: class CGraphic_Device* m_pGraphic_Device = { nullptr }; @@ -244,6 +253,7 @@ class ENGINE_DLL CGameInstance final : public CBase class CCollider_Manager* m_pCollider_Manager = { nullptr }; class CPhysX_Manager* m_pPhysX_Manager = { nullptr }; class CPicking* m_pPicking = { nullptr }; + class CThreadHolder* m_pThreadHolder = { nullptr }; #ifdef _DEBUG private: @@ -256,9 +266,9 @@ class ENGINE_DLL CGameInstance final : public CBase vector m_FilePaths = {}; map m_ModelMap; - map m_sModelMap; -#endif // _DEBUG +#endif // _DEBUG + map m_sModelMap; public: void Release_Engine(); virtual void Free() override; diff --git a/Jusin154_Team3D/Engine/Public/GameObject.h b/Jusin154_Team3D/Engine/Public/GameObject.h index 4d068bad7..7cb2635fe 100644 --- a/Jusin154_Team3D/Engine/Public/GameObject.h +++ b/Jusin154_Team3D/Engine/Public/GameObject.h @@ -8,6 +8,7 @@ NS_BEGIN(Engine) class ENGINE_DLL CGameObject abstract : public CBase { + protected: CGameObject(ID3D11Device * pDevice, ID3D11DeviceContext * pContext); CGameObject(const CGameObject& rhs); @@ -25,7 +26,7 @@ class ENGINE_DLL CGameObject abstract virtual _float Get_Depth(); // z 소팅 할 때 쓰시면 됨 // 내가 맞음 ( Collider_Manager가 부름 ) - virtual void OnCollision(CGameObject* pOther = nullptr); + virtual void OnCollision(CGameObject* pOther = nullptr ,void* pDesc = nullptr); // 내가 때림 ( 히트박스가 부름 ) virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr); @@ -39,7 +40,7 @@ class ENGINE_DLL CGameObject abstract _uint Get_CollisionID() const { return m_iCollisionID; } _bool Get_Visible() const { return m_bVisible; } void Set_Visible(_bool bValue) { m_bVisible = bValue; } - const CGameObject* Get_Owner() const { return m_pOwner; } + CGameObject* Get_Owner() const { return m_pOwner; } public: HRESULT Add_Asset_Component(_uint iTargetLevel, const _wstring strPrototypeTag, CComponent** ppOut, void* pArg = nullptr); @@ -109,7 +110,10 @@ class ENGINE_DLL CGameObject abstract public: virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner = nullptr)PURE; virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity()PURE; +#endif // _DEBUG + }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Graphic_Device.h b/Jusin154_Team3D/Engine/Public/Graphic_Device.h index c41bdacf7..b24ff2118 100644 --- a/Jusin154_Team3D/Engine/Public/Graphic_Device.h +++ b/Jusin154_Team3D/Engine/Public/Graphic_Device.h @@ -20,6 +20,8 @@ class CGraphic_Device final HRESULT Present(); + void Get_BackBufferPTR(ID3D11Texture2D** pTexture2D); + HRESULT Bind_DepthStencil(class CShader* pShader, const _char* pContantName); private: diff --git a/Jusin154_Team3D/Engine/Public/Instance_Model.h b/Jusin154_Team3D/Engine/Public/Instance_Model.h index 201eaa47f..ee154f124 100644 --- a/Jusin154_Team3D/Engine/Public/Instance_Model.h +++ b/Jusin154_Team3D/Engine/Public/Instance_Model.h @@ -1,8 +1,6 @@ #pragma once #include "Component.h" -#include "Assimp/scene.h" - NS_BEGIN(Engine) class ENGINE_DLL CInstance_Model final : public CComponent @@ -34,10 +32,31 @@ class ENGINE_DLL CInstance_Model final : public CComponent _bool isMoveForward = {}; _float2 vGravity = { 0.f , 9.8f }; + _bool isSinWave = {}; - _float3 vSinMinAmount = { 0.f , 0.f , 0.f}; + _float3 vSinMinAmount = { 0.f , 0.f , 0.f }; _float3 vSinMaxAmount = { 0.f , 0.f , 0.f }; + _bool isTurn; + _float3 vDeltaAngleMin = {}; + _float3 vDeltaAngleMax = {}; + + _bool isAxisTurn; + _float3 vDeltaAxisAngleMin = {}; + _float3 vDeltaAxisAngleMax = {}; + + _bool isPivotMove = {}; + _float2 vDrag = {}; + _float3 vPivotMin = {}; + _float3 vPivotMax = {}; + + _bool isSizeLerp = {}; + _float3 vDeltaSize = {}; + _float2 vSizeDrag = {}; + + _float2 vDelay = {}; + + _bool isNoWorld = {}; }INSTANCE_DESC; typedef struct tagPreInstanceDesc @@ -66,25 +85,58 @@ class ENGINE_DLL CInstance_Model final : public CComponent _bool isMoveForward = {}; _float2 vGravity = { 0.f , 9.8f }; + _bool isSinWave = {}; _float3 vSinMinAmount = { 0.f , 0.f , 0.f }; _float3 vSinMaxAmount = { 0.f , 0.f , 0.f }; + + _bool isTurn = {}; + _float3 vDeltaAngleMin = {}; + _float3 vDeltaAngleMax = {}; + + _bool isAxisTurn = {}; + _float3 vDeltaAxisAngleMin = {}; + _float3 vDeltaAxisAngleMax = {}; + + _bool isPivotMove = {}; + _float2 vDrag = {}; + _float3 vPivotMin = {}; + _float3 vPivotMax = {}; + + _bool isSizeLerp = {}; + _float3 vDeltaSize = {}; + _float2 vSizeDrag = {}; + + _float2 vDelay = {}; + }PRE_INSTANCE_DESC; typedef struct tagCSParticleDesc { - _float4x4 CamViewInvMatrix = {}; + _float4x4 WorldMatrix = {}; _int isLoop = {}; _int isDrop = {}; _int isMoveForward = {}; _int isSinWave = {}; + _int isTurn = {}; + _int isAxisTurn = {}; + _int isPivotMove = {}; + _int isSizeLerp = {}; + + + _int isNoWorld = {}; + _int isPadding0 = {}; + _int isPadding1 = {}; + _int isPadding2 = {}; + _float fTimeDelta = {}; _float fPadding2 = {}; _float fPadding3 = {}; _float fPadding4 = {}; + }CS_PARTICLE_DESC; typedef struct tagCSParticleValueDesc @@ -106,7 +158,17 @@ class ENGINE_DLL CInstance_Model final : public CComponent _float2 vAniIndex = {}; _float fGravity = {}; - _float3 vSinAmount = {}; + _float3 vSinAmount = {}; + _float3 vDeltaAngle = {}; + _float3 vDeltaAxisAngle = {}; + + _float fDrag = {}; + _float3 vPivot = {}; + + _float fSizeDrag = {}; + _float3 vDeltaSize = {}; + + _float2 vDelay = {}; }CS_PARTICLE_VALUE_DESC; @@ -116,8 +178,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent virtual ~CInstance_Model() = default; public: -#ifdef EDITOR_PROJECT virtual HRESULT Initialize_Prototype(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); +#ifdef EDITOR_PROJECT HRESULT Save_InstanceModel(HANDLE hFile); HRESULT PreLoad(HANDLE hFile); #endif @@ -131,18 +193,29 @@ class ENGINE_DLL CInstance_Model final : public CComponent HRESULT Bind_CS_Output(_uint Index, _uint iBufferIndex); INSTANCE_DESC Get_EffectValue() { return m_InstanceDesc; } HRESULT Load_InstanceModel(HANDLE hFile); +private: + bool LoadData(const _char* filename); + private: #ifdef EDITOR_PROJECT HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix); + _bool SaveAssimpModel(const _char* filename, const aiScene* pAIScene); +#endif -#endif + HRESULT Ready_Meshes(); HRESULT Change_NumInstance(); HRESULT Create_Instance_Buffer(); HRESULT Create_SubResource_Buffer(); HRESULT Create_CS(); +private: +#ifdef EDITOR_PROJECT + const aiScene* m_pAIScene = { nullptr }; + Assimp::Importer m_Importer; +#endif + private: ID3D11Buffer* m_pVBInstance = { nullptr }; @@ -160,19 +233,21 @@ class ENGINE_DLL CInstance_Model final : public CComponent vector m_Meshes = {}; vector m_Bones = {}; // 나중에 혹시 애님메쉬를 인스턴싱 할 일이 있을지도 모르니 남겨놓음 - + SaveModel m_SaveModel = {}; private: class CComputeShader* m_pComputeShader = {}; ID3D11Buffer* m_pConstantBuffer = { nullptr }; // 컴퓨트 쉐이드 전용 상수버퍼 ID3D11Buffer* m_pParticleValueBuffer = { nullptr }; // 컴퓨트 쉐이드 두번째 버퍼 (스피드, 로테이션) public: -#ifdef EDITOR_PROJECT + //인스턴싱으로 바꾸기 static CInstance_Model* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex); -#endif + virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr); virtual void Free() override; +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h index ea5877295..ac5562130 100644 --- a/Jusin154_Team3D/Engine/Public/Light.h +++ b/Jusin154_Team3D/Engine/Public/Light.h @@ -13,7 +13,7 @@ class ENGINE_DLL CLight final : public CComponent public: _bool operator==(const CLight& rhs) const; - _bool operator==(const Engine::LIGHT_DESC& rhs) const; + _bool operator==(const LIGHT_DESC& rhs) const; public: virtual HRESULT Initialize_Prototype() override; @@ -29,7 +29,9 @@ class ENGINE_DLL CLight final : public CComponent static CLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CComponent* Clone(void* pArg, CGameObject* pOwner) override; virtual void Free() override; +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG }; diff --git a/Jusin154_Team3D/Engine/Public/Light_Manager.h b/Jusin154_Team3D/Engine/Public/Light_Manager.h index c028d0752..fad3c9aa8 100644 --- a/Jusin154_Team3D/Engine/Public/Light_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Light_Manager.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -9,8 +9,6 @@ class CLight_Manager final : public CBase private: CLight_Manager(); virtual ~CLight_Manager() = default; - - public: void Add_Light(_uint _iCurrentLevel, class CLight* _pLight); void Delete_Light(_uint _iCurrentLevel, class CLight* _pLight); @@ -18,7 +16,7 @@ class CLight_Manager final : public CBase const LIGHT_DESC* Get_Light_Info(_uint _iCurrentLevel ,_uint _iLightIndex); public: - HRESULT Render_Lights(_uint _iCurrentLevel, class CShader* pShader, class CVIBuffer* pVIBuffer); + HRESULT Render_Lights(_uint iCurrentLevel, class CShader* pShader, class CVIBuffer* pVIBuffer); private: HRESULT Initialize(_uint iNumLevels); @@ -31,4 +29,4 @@ class CLight_Manager final : public CBase virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Material.h b/Jusin154_Team3D/Engine/Public/Material.h index 7f56edd79..ab0c0678b 100644 --- a/Jusin154_Team3D/Engine/Public/Material.h +++ b/Jusin154_Team3D/Engine/Public/Material.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -11,7 +11,7 @@ class ENGINE_DLL CMaterial final : public CBase virtual ~CMaterial() = default; public: - HRESULT Bind_SRV(class CShader* pShader, const _char* pConstantName, _uint iType, _uint iTextureIndex); + HRESULT Bind_SRV(class CShader* pShader); SaveMaterial Get_SaveMaterial() { return m_SaveMaterial; } private: class CGameInstance* m_pGameInstance = { nullptr }; @@ -25,7 +25,6 @@ class ENGINE_DLL CMaterial final : public CBase public: static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, const aiMaterial* pAIMaterial); static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pMaterialFilePath, const _char* pTextureFilePath); - HRESULT SaveAsBinary(HANDLE hFile, DWORD& dwByte); private: vector m_strPath[AI_TEXTURE_TYPE_MAX]; HRESULT Initialize(const _char* pModelFilePath, const aiMaterial* pAIMaterial); @@ -34,15 +33,15 @@ class ENGINE_DLL CMaterial final : public CBase HRESULT Add_Texture(const _char* pTextureFolderPath, string& FileType); #endif // EDITOR_PROJECT - // ¹ÙÀ̳ʸ® + // 바이너리 HRESULT Initialize(const _char* pModelFilePath, const SaveMaterial& _SaveMaterial); // public: - // ¹ÙÀ̳ʸ® + // 바이너리 static CMaterial* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePathconst, const SaveMaterial& _SaveMaterial); // virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Mesh.h b/Jusin154_Team3D/Engine/Public/Mesh.h index 63a669d03..f0ed2e36b 100644 --- a/Jusin154_Team3D/Engine/Public/Mesh.h +++ b/Jusin154_Team3D/Engine/Public/Mesh.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "VIBuffer.h" @@ -20,6 +20,7 @@ class ENGINE_DLL CMesh final : public CVIBuffer HRESULT Bind_BoneMatrices(const vector& Bones, class CShader* pShader, const _char* pConstantName); HRESULT Bind_BoneMatrices(_float4x4* pCombinedMatrices, class CShader* pShader, const _char* pConstantName); HRESULT Render_Indexed(_uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); + #ifdef EDITOR_PROJECT private: virtual HRESULT Initialize_Prototype(MODEL eType, vector& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix); @@ -27,46 +28,56 @@ class ENGINE_DLL CMesh final : public CVIBuffer HRESULT Ready_VertexBuffer_For_Anim(vector& Bones, const aiMesh* pAIMesh); public: static CMesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, vector& Bones, const aiMesh* pAIMesh, _fmatrix& PreTransformMatrix); - HRESULT SaveAsBinary(HANDLE hFile, DWORD& dwByte); PSX::PxTriangleMesh* ConvertToPxMesh(const PSX::PxCookingParams* pParam, PSX::PxPhysics* pPhysX, _matrix WorldMatrix); #endif // EDITOR_PROJECT public: - //ÀνºÅϽÌ ¸ðµ¨ Àü¿ë µå·οì, ¹ÙÀεù ÇԼö + //인스턴싱 모델 전용 드로우, 바인딩 함수 virtual HRESULT Bind_Resources_Instance(ID3D11Buffer* pVBInstance, _uint iInstanceStride, _uint iBufferCount); virtual HRESULT Render_Instance(_uint iNumInstance); + _uint Get_Vertex() { return m_iNumVertices; } private: - virtual HRESULT Initialize_Prototype(HANDLE hFile, DWORD& dwByte); virtual HRESULT Initialize(void* pArg) override; - HRESULT Ready_VertexBuffer_For_NonAnim(HANDLE hFile, DWORD& dwByte); - HRESULT Ready_VertexBuffer_For_Anim(HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // 바이너리 virtual HRESULT Initialize_Prototype(MODEL eType, const class CModel* pModel, SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix); HRESULT Ready_VertexBuffer_For_NonAnim(SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix); HRESULT Ready_VertexBuffer_For_Anim(const class CModel* pModel, SaveMesh* _SaveMesh); + + + // private: _char m_szName[MAX_PATH] = {}; _uint m_iMaterialIndex = {}; _uint m_iNumBones = { }; + _uint m_iStartIndex = {}; vector<_int> m_BoneIndices; _float4x4* m_pBoneMatrices = { nullptr }; vector<_float4x4> m_offsetMatrices; - // ¹ÙÀ̳ʸ® + + // 바이너리 std::vector<_uint> m_Indices; std::vector<_float3> m_Vertices; // +private: + _uint m_iNumBuffer = {}; + _uint m_iNumMeshes = {}; + _int m_iRootBoneIndex = { -1 }; + public: - static CMesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, HANDLE hFile, DWORD& dwByte); - // ¹ÙÀ̳ʸ® + // 바이너리 static CMesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, MODEL eType, const class CModel* pModel, SaveMesh* _SaveMesh, _fmatrix PreTransformMatrix); // virtual CMesh* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; +#ifdef _DEBUG void Describe_Entity() override; + +#endif // _DEBUG + }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 0762b3962..a133be211 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -6,6 +6,17 @@ NS_BEGIN(Engine) class ENGINE_DLL CModel final : public CComponent { +public: + typedef struct tagAnimStateDesc + { + _float CurrentTime; + _float Duration; + _float Speed; + _int BoneCount; + _float4x4 PreTransformMatrix; + + }ANIMSTATE_DESC; + private: CModel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CModel(const CModel& rhs); @@ -13,7 +24,6 @@ class ENGINE_DLL CModel final : public CComponent public: #pragma region Model - MODEL Get_Type() const { return m_eType; } _float Get_Radius() const { return m_fRadius; } _float3& Get_RadiusOffset() { return m_vRadiusOffset; } _float4x4* Get_PreTransformMatrixPtr() { return &m_PreTransformMatrix; } @@ -22,24 +32,15 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - void Change_AnimationIndex(_int iAnimationIndex, _bool bIsLoop, _float fLerpDuration, _bool bIgnoreCurrentIndex = false); // 애니메이션을 다른 인덱스로 변경함 _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌 - void RefreshAnim(); // 애님을 현재 애님의 초기상태로 되돌림 - void Set_AnimationIndex(_uint iIndex, _bool isLoop = true); - void Stop_Animation(); // 애니메이션을 정지 (초기상태로) - void Set_Anim(CModel* Source); + void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f); _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } - _bool IsFinishedLerp() const { return m_bIsFinishedLerp; } - _float Get_AnimProgressRatio(); - _int Get_AnimProgressPostion(const _char* pAnimChannelName); - _float Get_AnimEstimatedDuration(); - void Set_AnimProgressPostion(const _char* pChannelName, _uint iPosition); - void Set_AnimPauseState(_bool bValue);// 애님을 현재상태로 정지 - void ReallocateResources(class CTransform* pTransform = nullptr); // 애님 이동의 대상 트랜스폼(이동시켜야할 트랜스폼)을 재지정함 - void Set_CurrentTrackPosition(_float TrackPosition); + void Set_CurrentTrackPosition(_float TrackPosition); const _char* Get_AnimList(_uint iIndex); - size_t Get_AnimSize() { return m_Animations.size(); } _float Get_CurrentTrackPosition(); + _float Get_CurrentTrackProgressRatio(); + + size_t Get_AnimSize() { return m_Animations.size(); } void Set_PlayAnim(_bool bPlayAnim) { m_bPlayAnim = bPlayAnim; } _bool Get_PlayAnim() const { return m_bPlayAnim; } _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } @@ -51,21 +52,20 @@ class ENGINE_DLL CModel final : public CComponent _uint Get_NumMeshes() const { return m_iNumMeshes; } #pragma endregion #pragma region Bone - HRESULT Bind_BoneMatrices(_uint iMeshIndex, class CShader* pShader, const _char* pConstantName); - void Get_BoneMatrices(_float4x4* pOut); - _uint Get_BonesNum() const { return (_uint)m_Bones.size(); } - const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; - _int Get_RootBoneIndex() const { return m_iRootBoneIndex; } - void Set_RootBoneIndex(_int iIndex) { m_iRootBoneIndex = iIndex; } -static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본의 벡터와 이름을 넘겨주면 인덱스를 넘겨줌 ( n 순회 ) - _int Get_BoneIndex(const _char* pBoneName) const; - _matrix Get_BoneMatrix(_uint iBoneIndex); +HRESULT Bind_BoneMatrices(_uint iMeshIndex, class CShader* pShader, const _char* pConstantName); +const _float4x4* Get_BoneMatrixPtr(const _char* pBoneName) const; +static _int Get_BoneIndex(const _char* pBoneName, vector Bones); // 본의 벡터와 이름을 넘겨주면 인덱스를 넘겨줌 ( n 순회 ) +_int Get_BoneIndex(const _char* pBoneName) const; +_matrix Get_BoneMatrix(_uint iBoneIndex); +void Combined_BoneMatrix(); + #pragma endregion #pragma region Material - HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader, const _char* pConstantName, _uint iType, _uint iTextureIndex); + HRESULT Bind_Material(_uint iMeshIndex, class CShader* pShader); #pragma endregion + void ComputeAnimation(); public: #ifdef EDITOR_PROJECT @@ -110,6 +110,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / _bool m_bIsFinishedAnim = { false }; // 대상 애니메이션이 끝났는지 _bool m_bIsFinishedLerp = { false }; // 럴프 애니메이션이 끝났는지 _bool m_bPlayAnim = { true }; + _float m_fAmount = { 1.f }; _int m_iPreAnimIndex = { 0 }; _float m_fBlendTime = { 0.f }; @@ -127,11 +128,38 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / _matrix m_DeltaAnimationMatrix = {}; // 루트본의 델타애니메이션 class CTransform* m_pTransform = { nullptr }; // 모델 대상의 트랜스폼 - // 바이너리 SaveModel* m_pSaveModel = { nullptr }; list m_SaveModel; // + + vector<_float4x4> m_BoneMatrix; + + +#pragma region Compute + +private: + HRESULT Create_ParentVB(); + HRESULT Create_CS(); + void Create_Temp(); + void Create_LocalPosVB(); + void Create_Con(); + void UpdateAnimationCS(); + _uint m_iNumBuffer = {}; + + vector m_Parent = {}; + vector m_AnimRanges; + + LOCALPOS_DESC* m_pLocalPos = { nullptr }; + + class CComputeShader* m_pComputeShader = nullptr; + + ID3D11Buffer* m_pConstantBuffer = { nullptr }; + + ID3D11Buffer* m_pParentBuffer = { nullptr }; + ID3D11Buffer* m_pLocalPosBuffer = { nullptr }; +#pragma endregion + private: // 바이너리 virtual HRESULT Initialize_Prototype(MODEL eType, const _char* pModelFilePath, _fmatrix PreTransformMatrix); @@ -146,7 +174,7 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / HRESULT Ready_Meshes(); HRESULT Ready_Materials(const _char* pModelFilePath); HRESULT Ready_Bones(const std::vector& allNodes, _int currentIndex, _int parentIndex); - HRESULT Ready_Animations(); + HRESULT Ready_Animations(const vector& Bones); // public: @@ -156,7 +184,10 @@ static _int Get_BoneIndex(const _char* pBoneName, vector Bones); / virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr); virtual void Free(); public: +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/MyTools.h b/Jusin154_Team3D/Engine/Public/MyTools.h index 50ad36e03..9ecc59ba6 100644 --- a/Jusin154_Team3D/Engine/Public/MyTools.h +++ b/Jusin154_Team3D/Engine/Public/MyTools.h @@ -37,7 +37,7 @@ class CMyTools { return XMVectorSet(r, g, b, a); } #pragma endregion - +#pragma region String // wstring --> string 변환 static _string ToString(const _wstring& var) { @@ -64,6 +64,16 @@ class CMyTools { return wstrTo; } + // source에 keyword가 있는지 검사 + static _bool ContainsString(const char* source, const char* keyword) { + if (!source || !keyword || *keyword == '\0') { + return false; + } + return (strstr(source, keyword) != nullptr); + } + +#pragma endregion +#pragma region Mathematics // ratio로 현재 value 가져오기 static _float Lerp_f1D(_float fA, _float fB, _float fRatio) { @@ -76,7 +86,6 @@ class CMyTools { if (fA == fB) return 0.0f; return (fValue - fA) / (fB - fA); } - // A -> B, A- >C의 외적이 업벡터 방향으로 외적되도록 B C를 교정 static void CorrectTriangleToUpHead(_float3& dotA, _float3& dotB, _float3& dotC) { @@ -89,7 +98,7 @@ class CMyTools { } } - // dx9에 있던 그거 + // dx9에 있던 IntersectTri static _bool IntersectTri( const _fvector& vPos, const _fvector& vDir, const _fvector& vertexA, const _gvector& vertexB, const _hvector& vertexC, @@ -116,24 +125,12 @@ class CMyTools { return t >= 0.f; } - // source에 keyword가 있는지 검사 - static _bool ContainsString(const char* source, const char* keyword) { - if (!source || !keyword || *keyword == '\0') { - return false; - } - return (strstr(source, keyword) != nullptr); - } - // 매트릭스 럴프 static void MatrixLerp( _In_ _float4x4* pMatOrigin, // Origin -> 0 _In_ _float4x4* pMatTarget, // Target -> 1 _Out_ _float4x4& matOut, _float fRatio) { - if (0.f > fRatio) { - fRatio = 0.f; - } - if (1.f < fRatio) { - fRatio = 1.f; - } + fRatio = Saturate(fRatio); + _vector vTargetScale{}, vTargetRotq{}, vTargetTrans{}; _vector vOriginScale{}, vOriginRotq{}, vOriginTrans{}; XMMatrixDecompose(&vTargetScale, &vTargetRotq, &vTargetTrans, XMLoadFloat4x4(pMatTarget)); @@ -154,7 +151,7 @@ class CMyTools { return XMVectorGetX(XMVector3Dot(vNormalA, vNormalB)); } - // hlsl에 있는 Saturate 그거임 + // hlsl에 있는 Saturate static _float Saturate(_float fValue) { if (fValue > 1.f) { fValue = 1.f; @@ -178,9 +175,10 @@ class CMyTools { return fRadian; } + // 입력라디안에서 출력라디안까지 로테이션 스피드만큼 돌려주고 보정해서 SrcRadian에 넣어줌 inline static void RotateRadianTowards(_float& fSrcRadian, const _float& fDstRadian, _float fRotateSpeed) { - _float fDiffRadian = fmodf(fSrcRadian - fDstRadian, 2 * XM_PI); - if (fDiffRadian < 0) fDiffRadian += 2 * XM_PI; + _float fDiffRadian = fmodf(fSrcRadian - fDstRadian, XM_2PI); + if (fDiffRadian < 0) fDiffRadian += XM_2PI; if (fDiffRadian < (fRotateSpeed * XM_PI) / 180.f) { fSrcRadian = fDstRadian; @@ -193,7 +191,76 @@ class CMyTools { fSrcRadian += (fRotateSpeed * XM_PI) / 180.f; } } + + // 2D 평면에 사상된 방향을 교정해서 리턴 + // float -> Radian값 + // -, + + inline static _float Get_Direction2D(_float2 vOrigianlDir, _float2 vInputDir) { + _vector vOriginal = XMVector2Normalize(XMLoadFloat2(&vOrigianlDir)); + _vector vInput = XMVector2Normalize(XMLoadFloat2(&vInputDir)); + + _float fDiffAngle = XMVectorGetX(XMVector2AngleBetweenNormals(vOriginal, vInput)); + _float fCross = XMVectorGetZ(XMVector2Cross(vOriginal, vInput)); + return fDiffAngle * (fCross < 0 ? -1.f : 1.f); + } + // yaw 360도 자동 커트 + // pitch 80도 클램프 + inline static void AdjustAccumulateDegreePitchYawDegree(_float2& vAccumulateDegreePitchYaw, float fPitchLimitDegree = 80.f) + { + if (vAccumulateDegreePitchYaw.y > 360.f) + { + vAccumulateDegreePitchYaw.y -= 360.f; + } + else if (vAccumulateDegreePitchYaw.y < -360.f) + { + vAccumulateDegreePitchYaw.y += 360.f; + } + + if (vAccumulateDegreePitchYaw.x > fPitchLimitDegree) + { + vAccumulateDegreePitchYaw.x = fPitchLimitDegree; + } + else if (vAccumulateDegreePitchYaw.x < -fPitchLimitDegree) + { + vAccumulateDegreePitchYaw.x = -fPitchLimitDegree; + } + } + + // yaw 360도 자동 커트 + // pitch 80도 클램프 + inline void AdjustAccumulateDegreePitchYawRadian(_float2& vAccumulateRadianPitchYaw, float fPitchLimitRadian = XMConvertToRadians(80.f)) + { + if (vAccumulateRadianPitchYaw.y > XM_PI) + { + vAccumulateRadianPitchYaw.y -= XM_PI; + } + else if (vAccumulateRadianPitchYaw.y < -XM_PI) + { + vAccumulateRadianPitchYaw.y += XM_PI; + } + + if (vAccumulateRadianPitchYaw.x > fPitchLimitRadian) + { + vAccumulateRadianPitchYaw.x = fPitchLimitRadian; + } + else if (vAccumulateRadianPitchYaw.x < -fPitchLimitRadian) + { + vAccumulateRadianPitchYaw.x = -fPitchLimitRadian; + } + } + + + inline static _uint AlphabetToInt(_tchar Alphabet) + { + Alphabet = towupper(Alphabet); + + if (Alphabet < 'A' || Alphabet > 'Z') + return 0; + + return (Alphabet - 'A'); + } +#pragma endregion #pragma region FileSystem //static void Folder_Func(/* 재귀적으로 탐색할지 */ _In_ _bool bRecursive, // /* 탐색할 폴더 경로 */ _In_ const _wstring& TargetPath, diff --git a/Jusin154_Team3D/Engine/Public/NCallBack_Playable_Behavior.h b/Jusin154_Team3D/Engine/Public/NCallBack_Playable_Behavior.h index f08a7ef67..cd512f1aa 100644 --- a/Jusin154_Team3D/Engine/Public/NCallBack_Playable_Behavior.h +++ b/Jusin154_Team3D/Engine/Public/NCallBack_Playable_Behavior.h @@ -1,10 +1,7 @@ #pragma once #include "Base.h" -NS_BEGIN(PSX) -class PxControllerBehaviorCallback; -class PxUserControllerHitReport; -NS_END + class CCallBack_Playable_Behavior final : public PSX::PxControllerBehaviorCallback { diff --git a/Jusin154_Team3D/Engine/Public/NCallBack_Playable_HitRepot.h b/Jusin154_Team3D/Engine/Public/NCallBack_Playable_HitRepot.h index 198023d22..4d3031fb7 100644 --- a/Jusin154_Team3D/Engine/Public/NCallBack_Playable_HitRepot.h +++ b/Jusin154_Team3D/Engine/Public/NCallBack_Playable_HitRepot.h @@ -1,10 +1,7 @@ #pragma once #include "Base.h" -NS_BEGIN(PSX) -class PxControllerBehaviorCallback; -class PxUserControllerHitReport; -NS_END + class CCallBack_Playable_HitRepot final : public PSX::PxUserControllerHitReport { diff --git a/Jusin154_Team3D/Engine/Public/Navigation.h b/Jusin154_Team3D/Engine/Public/Navigation.h index 9e9bee7ab..b01dd9217 100644 --- a/Jusin154_Team3D/Engine/Public/Navigation.h +++ b/Jusin154_Team3D/Engine/Public/Navigation.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" @@ -6,7 +6,7 @@ NS_BEGIN(Engine) class ENGINE_DLL CNavigation final : public CComponent { - // ¸ÊÅø Çü´Բ²¼­ ´Ù °¥¾Æ ¾þÀ¸¼ŵµ µ˴ϴÙ ^^7, CCell, CVIBuffer_Cell, ÀÌ챏µéÀ̶û ¿µÇâ·ÂÀÌ ¹­¿©À־î¿ä + // 맵툴 형님께서 다 갈아 엎으셔도 됩니다 ^^7, CCell, CVIBuffer_Cell, 이친구들이랑 영향력이 묶여있어요 static _float4x4 s_WorldMatrix; public: typedef struct tagNavigaionDesc @@ -55,8 +55,9 @@ class ENGINE_DLL CNavigation final : public CComponent static CNavigation* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; - +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/PanelObject.h b/Jusin154_Team3D/Engine/Public/PanelObject.h index 4dc8c4deb..c661f9c47 100644 --- a/Jusin154_Team3D/Engine/Public/PanelObject.h +++ b/Jusin154_Team3D/Engine/Public/PanelObject.h @@ -31,8 +31,8 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject virtual const vector Element_Name(); virtual void ElementAllVisible(_bool bVisible); - virtual void Add_Function(wstring Name, function Evnet) override; - virtual void Function_Callback(wstring Name) override; + virtual void Add_Function(wstring Name, function Evnet) override; + virtual void Function_Callback(wstring Name, void* pArg = nullptr) override; protected: virtual void Add_Element(wstring Name, class CGameObject* pElement); virtual _bool Chack_Visible() override; @@ -42,7 +42,7 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject vector m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서 map m_Elements_map; // 캔버스에서 내가 원하는 패널을 찾기 위해서 - multimap> m_ElementFunction_map; + multimap> m_ElementFunction_map; _int m_iElements_Count{}; // 전체 엘리멘트의 갯수 diff --git a/Jusin154_Team3D/Engine/Public/PartObject.h b/Jusin154_Team3D/Engine/Public/PartObject.h index 713ee5e26..114793e13 100644 --- a/Jusin154_Team3D/Engine/Public/PartObject.h +++ b/Jusin154_Team3D/Engine/Public/PartObject.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "GameObject.h" @@ -7,7 +7,7 @@ NS_BEGIN(Engine) class ENGINE_DLL CPartObject abstract : public CGameObject { public: - typedef struct tagPartObjectDesc + typedef struct tagPartObjectDesc { class CTransform* pParentTransform = { nullptr }; }PARTOBJECT_DESC; @@ -38,4 +38,4 @@ class ENGINE_DLL CPartObject abstract : public CGameObject virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h index c8b405f5c..2e407bf13 100644 --- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h +++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h @@ -28,9 +28,11 @@ class CPhysX_Manager final : public CBase void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh); PSX::PxMaterial* Create_Material(const _float3* vMatInfo); +#ifdef EDITOR_PROJECT HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix); HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes); +#endif // EDITOR_PROJECT HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes); //HRESULT LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes); PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName); @@ -83,6 +85,15 @@ class CPhysX_Manager final : public CBase #ifdef 기무리 PhsXUserData PlaneData = {}; +#endif // 기무리 +#ifdef 진우 + PhsXUserData PlaneData = {}; + +#endif // 기무리 + +#ifdef Bin + PhsXUserData PlaneData = {}; + #endif // 기무리 diff --git a/Jusin154_Team3D/Engine/Public/Picking.h b/Jusin154_Team3D/Engine/Public/Picking.h index ef5e709cc..a41197db0 100644 --- a/Jusin154_Team3D/Engine/Public/Picking.h +++ b/Jusin154_Team3D/Engine/Public/Picking.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -14,6 +14,7 @@ class CPicking final : public CBase HRESULT Initialize(HWND hWnd, _uint iSizeX, _uint iSizeY); void Update(); _bool isPicking(_float3* pOut); + private: HWND m_hWnd = { }; ID3D11Device* m_pDevice = { nullptr }; @@ -32,4 +33,4 @@ class CPicking final : public CBase virtual void Free(); }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h index 75f3cf073..fb03c9f6d 100644 --- a/Jusin154_Team3D/Engine/Public/Prototype_Manager.h +++ b/Jusin154_Team3D/Engine/Public/Prototype_Manager.h @@ -16,6 +16,7 @@ #include "FSM.h" #include "State.h" #include "VIBuffer_UI_Instance.h" +#include "Trail.h" NS_BEGIN(Engine) @@ -76,7 +77,7 @@ class CPrototype_Manager final : public CBase //만들고 선택할 시에 내 ppOut에 클론하는 기능을 담당 template - _string Asset_Description(_uint iLevel, const _char* pComponentName, Engine::CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") + _string Asset_Description(_uint iLevel, const _char* pComponentName, CComponent** ppOut, void* pDesc, class CGameObject* pOwner = nullptr, _wstring wstrGroupName = L"") { vector pComponentNames = {}; vector<_string> strNames = {}; diff --git a/Jusin154_Team3D/Engine/Public/QuadTree.h b/Jusin154_Team3D/Engine/Public/QuadTree.h new file mode 100644 index 000000000..444a3626a --- /dev/null +++ b/Jusin154_Team3D/Engine/Public/QuadTree.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Base.h" + +NS_BEGIN(Engine) + +class CQuadTree final : public CBase +{ +public: + enum CORNER { CORNER_LT, CORNER_RT, CORNER_RB, CORNER_LB, CORNER_END }; + enum NEIGHBOR { NEIGHBOR_LEFT, NEIGHBOR_TOP, NEIGHBOR_RIGHT, NEIGHBOR_BOTTOM, NEIGHBOR_END }; +private: + CQuadTree(); + virtual ~CQuadTree() = default; + +public: +#ifdef _DEBUG + void Set_CullingRadius(_float fRadius); +#endif // _DEBUG + + + void Culling(class CGameInstance* pGameInstance, const _float3* pVertexPositions, _uint* pIndices, _uint* pNumIndices); + void SetUp_Neighbors(); + _bool Picking(class CGameInstance* pGameInstance, const _float3* pVertexPositions, _float3& Out, _fmatrix WorldMatrix); + _bool Set_Y(class CGameInstance* pGameInstance, const _float3* pVertexPositions, VTXNORTEX* pVertices, _fmatrix WorldMatrix, _float fY); + void Add_Y(VTXNORTEX* pVertices, _float fY); + +private: + _uint m_iCorners[CORNER_END] = { }; + _uint m_iCenter = {}; + + _float m_fCullingRadius = { 0.2f }; + + CQuadTree* m_pChildren[CORNER_END] = { nullptr }; + CQuadTree* m_pNeighbors[NEIGHBOR_END] = { nullptr, nullptr, nullptr, nullptr }; + +private: + _bool isDraw(class CGameInstance* pGameInstance, const _float3* pVertexPositions); + HRESULT Initialize(_uint iLT, _uint iRT, _uint iRB, _uint iLB); + +public: + static CQuadTree* Create(_uint iLT, _uint iRT, _uint iRB, _uint iLB); + virtual void Free() override; +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget.h b/Jusin154_Team3D/Engine/Public/RenderTarget.h index e10d2ac3f..ef0f42f20 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Base.h" @@ -18,6 +18,9 @@ class CRenderTarget final : public CBase HRESULT Bind_ShaderResource(class CShader* pShader, const _char* pConstantName); void Clear(); void Copy_Resource(ID3D11Texture2D* pTexture2D); + void Paste_Resource(ID3D11Texture2D* pTexture2D); + void Get_TextureDesc(D3D11_TEXTURE2D_DESC& Desc); + ID3D11ShaderResourceView* Get_SRV() const { return m_pSRV; } #ifdef _DEBUG public: @@ -47,4 +50,4 @@ class CRenderTarget final : public CBase virtual void Free() override; }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h index 24baa3dd0..1055e8a4d 100644 --- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h +++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h @@ -18,6 +18,11 @@ class CRenderTarget_Manager final : public CBase HRESULT End_MRT(); HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName); HRESULT Copy_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D); + HRESULT Paste_RenderTarget(const _wstring& strTargetTag, ID3D11Texture2D* pTexture2D); + + HRESULT Accumulate_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTarget_SrcA, const _wstring& wstrRenderTarget_SrcB, const _wstring& wstrRenderTarget_Target, SHADER_PASS_DEFERRED ePass); + 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); #ifdef _DEBUG public: @@ -27,8 +32,8 @@ class CRenderTarget_Manager final : public CBase #ifdef _DEBUG private: - _int m_iSizeX = { 100 }; - _int m_iSizeY = { 100 }; + _int m_iSizeX = { 200 }; + _int m_iSizeY = { 200 }; #endif // _DEBUG private: diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h index 53c2ff33e..83aa33cfe 100644 --- a/Jusin154_Team3D/Engine/Public/Renderer.h +++ b/Jusin154_Team3D/Engine/Public/Renderer.h @@ -44,6 +44,8 @@ class CRenderer final : public CBase SHADOW_LIGHT_DESC m_PreShadowDesc = {}; _float4x4 m_PreShadowMatrices[ENUM_CLASS(D3DTS::END)] = {}; + _bool m_bPostProcessing_BLOOM = { false }; + private: void Render_Priority(); @@ -56,6 +58,7 @@ class CRenderer final : public CBase void Render_WeightBlend(); void Render_NonLight(); void Render_Blend(); + void Render_Bloom(); void Render_LastColor(); void Render_UI(); diff --git a/Jusin154_Team3D/Engine/Public/RigidBody.h b/Jusin154_Team3D/Engine/Public/RigidBody.h index b7007ca27..7a37d795d 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody.h @@ -1,11 +1,6 @@ #pragma once #include "Component.h" -NS_BEGIN(PSX) -class PxActor; -class PxMaterial; -NS_END - NS_BEGIN(Engine) class CTransform; class CMesh; @@ -58,7 +53,9 @@ class ENGINE_DLL CRigidBody abstract : public CComponent public: virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h index f48594939..35b210392 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h @@ -71,7 +71,9 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody static CRigidBody_Dynamic* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, RIGIDBODY_PROTOTYPE_DYNAMIC_DESC& Desc); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h index 0e965b0a9..d0122d2fd 100644 --- a/Jusin154_Team3D/Engine/Public/RigidBody_Static.h +++ b/Jusin154_Team3D/Engine/Public/RigidBody_Static.h @@ -40,7 +40,9 @@ class ENGINE_DLL CRigidBody_Static : public CRigidBody static CRigidBody_Static* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, RIGIDBODY_STATIC_PROTOTYPEDESC& Desc); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; diff --git a/Jusin154_Team3D/Engine/Public/Shader.h b/Jusin154_Team3D/Engine/Public/Shader.h index 75c14e3e4..82dd9b14a 100644 --- a/Jusin154_Team3D/Engine/Public/Shader.h +++ b/Jusin154_Team3D/Engine/Public/Shader.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" @@ -53,8 +53,9 @@ class ENGINE_DLL CShader final : public CComponent virtual CComponent* Clone(void* pArg, class CGameObject* pOwner) override; virtual void Free() override; - // CComponentÀ»(¸¦) ÅëÇØ »ó¼ӵÊ +#ifdef _DEBUG void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 13abe1d97..1079da162 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -6,13 +6,15 @@ enum ESTATE { IDLE, IDLE_TURN_L, IDLE_TURN_R, IDLE_TURN_BWD, MOVE, - WALK, WALK_FWD, WALK_BWD, WALK_STOP, - JOG, + WALK, WALK_FWD, WALK_BWD,WALK_STOP, + JOG,JOG_FWD, JOG_BWD,JOG_STOP, SPRINT, - JUMP,JUMP_WALK,JUMP_SPRINT, + JUMP,JUMP_JOG,JUMP_SPRINT, LAND, - DODGE, - COMBAT, LIGHT_ATTACK, CAST, SKILL, SKILL2, + DODGE,DODGE_BLINK, + COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2, + ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,DISILLUSION_ENTER,DISILLUSION_EXIT, + MAPHELP, END }; NS_END @@ -22,36 +24,33 @@ class CUnit; class CModel; class CFSM; class CGameInstance; + class ENGINE_DLL CState abstract : public CBase { +protected: + typedef struct tagStateDesc { + class CUnit* pOwner = { nullptr }; + }STATEDESC; + protected: CState(); virtual ~CState() = default; public: - virtual void Enter(); - virtual void Update(_float fTimeDelta); - virtual void Exit(); - virtual _bool CheckExitState(); - void Set_Owner(class CGameObject* pOwner); - virtual void Set_Component(); - - void Set_State(_uint State) { m_eState = State; } - _uint Get_State() { return m_eState; } - void Set_Parent(CState* State) { m_pParent = State; } - CState* Get_Parent() { return m_pParent; } + virtual void Enter()PURE; + virtual HRESULT Update(_float fTimeDelta)PURE; + virtual void Exit()PURE; protected: - CUnit* m_pOwner = { nullptr }; + class CUnit* m_pOwner = { nullptr }; CModel* m_pModel = { nullptr }; CFSM* m_pFSM = { nullptr }; - CState* m_pParent = { nullptr }; CGameInstance* m_pGameInstance = { nullptr }; - _uint m_eState = {}; +protected: + HRESULT Initialize(STATEDESC* pArg); - -public: +protected: virtual void Free() override; virtual void Describe_Entity(); }; diff --git a/Jusin154_Team3D/Engine/Public/Texture.h b/Jusin154_Team3D/Engine/Public/Texture.h index ba972ab2c..842e8ecce 100644 --- a/Jusin154_Team3D/Engine/Public/Texture.h +++ b/Jusin154_Team3D/Engine/Public/Texture.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" NS_BEGIN(Engine) @@ -38,7 +38,9 @@ class ENGINE_DLL CTexture final : static CTexture* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, TEXTURE_LOAD_TYPE eType, const _tchar* pTextureFilePath, _uint iNumTextures, _wstring wstrPrototypeName = L""); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/ThreadHolder.h b/Jusin154_Team3D/Engine/Public/ThreadHolder.h new file mode 100644 index 000000000..16b5a8f24 --- /dev/null +++ b/Jusin154_Team3D/Engine/Public/ThreadHolder.h @@ -0,0 +1,53 @@ +#pragma once + +#include "Base.h" + +NS_BEGIN(Engine) + + +class ENGINE_DLL CThreadHolder final : public CBase +{ +private: + CThreadHolder(); + ~CThreadHolder(); +public: + template + future> EnqueueJob(Function&& func, Args&&... args) + { + if (true == m_bStop_All) { + throw runtime_error("ThreadPool 사용 중지됨"); + } + using return_type = invoke_result_t; + + auto job = make_shared>(bind(forward(func), forward(args)...)); + future job_result_future = job->get_future(); + { + lock_guard lock(m_mtxJobQueue); + m_JobQueue.push([job]() { (*job)(); }); + } + m_cvJobQueue.notify_one(); + + return job_result_future; + } + +private: + _uint m_iNumThreads = {}; + vector m_Workers = {}; + + queue> m_JobQueue = {}; + condition_variable m_cvJobQueue = {}; + mutex m_mtxJobQueue = {}; + + _bool m_bStop_All = { true }; + +private: + HRESULT Initialize(_uint iSize); + void WorkerThread(); + +public: + static CThreadHolder* Create(_uint iSize); + virtual void Free() override; + void Describe_Entity(); +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Public/Trail.h b/Jusin154_Team3D/Engine/Public/Trail.h index 1a53f5315..150b76bc4 100644 --- a/Jusin154_Team3D/Engine/Public/Trail.h +++ b/Jusin154_Team3D/Engine/Public/Trail.h @@ -6,11 +6,25 @@ NS_BEGIN(Engine) class ENGINE_DLL CTrail final : public CVIBuffer { +public: + typedef struct tagTrailDesc + { + _float3 vHigh; + _float3 vLow; + }TRAIL_DESC; protected: CTrail(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CTrail(const CTrail& rhs); virtual ~CTrail() = default; +public: + void Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix); + +#ifdef _DEBUG + HRESULT Save_Trail(HANDLE hFile); +#endif + HRESULT Load_Trail(HANDLE hFile); + private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; @@ -19,7 +33,24 @@ class ENGINE_DLL CTrail final : static CTrail* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CTrail* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG + virtual HRESULT Render() override; +private: + TRAIL_DESC m_TrailDesc = {}; + + _uint m_iNumCount = {}; + + _vector m_PreHigh[2] = {}; + _vector m_PreLow[2] = {}; + + VTXPOSTEX* m_pVertices = { nullptr }; + + _float m_fAccTime = {}; + _float m_fTrailUpdateTime = {}; + + _uint m_iNumVerticesPerInstance = {}; }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Transform.h b/Jusin154_Team3D/Engine/Public/Transform.h index 690439bbe..a0400c51e 100644 --- a/Jusin154_Team3D/Engine/Public/Transform.h +++ b/Jusin154_Team3D/Engine/Public/Transform.h @@ -33,7 +33,9 @@ class ENGINE_DLL CTransform final : _float3 Get_Scale() const; _vector Get_QuarternionVector() const; // 현재 회전정보를 담고 있는 쿼터니언 벡터를 out _vector Get_RollPitchYawVector() const; - _vector Get_State(STATE eState) const { return XMLoadFloat4(reinterpret_cast(&m_WorldMatrix.m[ENUM_CLASS(eState)])); } + _vector Get_State(STATE eState) const { + return XMLoadFloat4(reinterpret_cast(&m_WorldMatrix.m[ENUM_CLASS(eState)])); + } const _float4* Get_StatePtr(STATE eState) { return reinterpret_cast<_float4*>(&m_WorldMatrix.m[ENUM_CLASS(eState)]); } const _float4x4* Get_WorldMatrixPtr() const { return &m_WorldMatrix; } const _matrix Get_XMWorldMatrix() const { return XMLoadFloat4x4(&m_WorldMatrix); } @@ -66,6 +68,8 @@ class ENGINE_DLL CTransform final : // Up, Down 벡터를 바라보게 하면 터짐 void LookAt(_fvector vAt); + _float TargetDis(_fvector vTarget); + private: _float m_fSpeedPerSec = {}; _float m_fRotationPerSec = {}; @@ -84,7 +88,9 @@ class ENGINE_DLL CTransform final : static CTransform* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/UIComponent.h b/Jusin154_Team3D/Engine/Public/UIComponent.h index 91130f389..4e331fcf9 100644 --- a/Jusin154_Team3D/Engine/Public/UIComponent.h +++ b/Jusin154_Team3D/Engine/Public/UIComponent.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "Component.h" NS_BEGIN(Engine) @@ -37,7 +37,9 @@ class ENGINE_DLL CUIComponent final : public CComponent static CUIComponent* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h index 741437e22..cc24b14a3 100644 --- a/Jusin154_Team3D/Engine/Public/UIObject.h +++ b/Jusin154_Team3D/Engine/Public/UIObject.h @@ -8,7 +8,7 @@ class ENGINE_DLL CUIObject abstract : public CGameObject { public: enum class SKILLTYPE { - SHADOW, CONTROL, POWER, DAMAGE, +CONTROL, POWER, DAMAGE, UTILITY ,TRANSFORM, CURSE, ESSENTIAL }; typedef struct tagUIObjectDesc @@ -32,7 +32,10 @@ typedef struct tagUIObjectDesc public: virtual void MoveX(_float fX); virtual void MoveY(_float fY); + virtual void Move(_float fX, _float fY); virtual void SizeUpdate(_float fSizeX, _float fSizeY); + virtual void SizeUpX(_float fSizeX); + virtual void SizeUpY(_float fSizeY); virtual void SizeUpdate_float(_float3 fSizeXY); virtual void Set_Time(_float fTime); virtual void Set_TimeMult(_float Mult); @@ -80,8 +83,10 @@ typedef struct tagUIObjectDesc virtual void Lerp_PosX(_float PosX); virtual void Lerp_PosY(_float PosY); - virtual void Start_Lerp(_float fTimeDelta, _bool Alpha = true); - virtual void Reset_Pos(_float fTimeDelta, _bool Alpha = true); + virtual void Start_Lerp(_float fTimeDelta); + virtual void Reset_Pos(_float fTimeDelta); + virtual void Start_Size_Lerp(_float fTimeDelta); + virtual void Reset_Size_Lerp(_float fTimeDelta); virtual _vector Get_Lerp_Pos(); virtual void LerpOn(); virtual void LerpOff(); @@ -101,8 +106,8 @@ typedef struct tagUIObjectDesc virtual void Set_CoolTime(_float CoolTime); virtual _float Get_CoolTime(); - virtual void Add_Function(wstring Name, function Evnet); - virtual void Function_Callback(wstring Name); + virtual void Add_Function(wstring Name, function Evnet); + virtual void Function_Callback(wstring Name, void* pArg = nullptr); protected: _vector m_fOrigin_Position_vector{}; _float2 m_fOrigin_Position{}; @@ -151,10 +156,6 @@ typedef struct tagUIObjectDesc _float m_fMoveSpeed{}; _float4 m_vNine_Slice{}; - _float m_fLeft{}; - _float m_fRight{}; - _float m_fTop{}; - _float m_fBottom{}; protected: virtual HRESULT Initialize_Prototype(); diff --git a/Jusin154_Team3D/Engine/Public/Unit.h b/Jusin154_Team3D/Engine/Public/Unit.h index 45bc73380..1b2b036c9 100644 --- a/Jusin154_Team3D/Engine/Public/Unit.h +++ b/Jusin154_Team3D/Engine/Public/Unit.h @@ -1,14 +1,11 @@ #pragma once #include "Engine_Define.h" -#include "GameObject.h" +#include "ContainerObject.h" NS_BEGIN(Engine) -class CShader; -class CModel; -class CFSM; -class ENGINE_DLL CUnit abstract : public CGameObject +class ENGINE_DLL CUnit abstract : public CContainerObject { public: typedef struct tagObjectDesc @@ -28,8 +25,12 @@ class ENGINE_DLL CUnit abstract : public CGameObject virtual void Late_Update(_float fTimeDelta) override; virtual HRESULT Render() override; _wstring& Get_PrototypeTag() { return m_strModelPrototypeTag; } +#ifdef _DEBUG void Load_KeyFrame(); +#endif // _DEBUG + public: + #pragma region STATE pair<_uint, _bool> Get_AnimInfo(_uint iIndex) { return m_Animation[iIndex]; } virtual _bool Check(FSMSTATE::ESTATE state) { return false; } @@ -39,7 +40,9 @@ class ENGINE_DLL CUnit abstract : public CGameObject void Set_LightCombo(_uint LightCombo) { m_iLightCombo = LightCombo; } _float Get_KeyFrame(_string FrameName); _bool IsCurrentKeyFrame(_string FrameName); + virtual void Reset_Sprint() {}; + virtual void Reset_Walk() {}; #pragma endregion protected: @@ -57,6 +60,10 @@ class ENGINE_DLL CUnit abstract : public CGameObject vector> m_Animation; + unordered_map m_States = { }; + size_t m_iStateMask = { 0 }; + + STATEANIM::ESTATE m_eSpell = { STATEANIM::END }; private: virtual void Add_FSM() {}; @@ -70,7 +77,10 @@ class ENGINE_DLL CUnit abstract : public CGameObject public: virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)PURE; virtual void Free() override; +#ifdef _DEBUG virtual void Describe_Entity() override; +#endif // _DEBUG + }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h index 4a0c8617b..1f7e91347 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Cell.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "VIBuffer.h" NS_BEGIN(Engine) @@ -22,7 +22,9 @@ class ENGINE_DLL CVIBuffer_Cell final : static CVIBuffer_Cell* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _float3* pPoints); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h index 1142a205e..2b4a47df2 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Cube.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "VIBuffer.h" NS_BEGIN(Engine) @@ -24,7 +24,9 @@ class ENGINE_DLL CVIBuffer_Cube final : static CVIBuffer_Cube* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CVIBuffer_Cube* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Instance.h index e82650657..37006a479 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Instance.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Instance.h @@ -10,8 +10,10 @@ class ENGINE_DLL CVIBuffer_Instance abstract : public CVIBuffer typedef struct tagInstanceDesc { _uint iNum = {}; - _float2 vSize = { }; - _float2 vPsition = {}; + _float2 vSize = {}; + _float fPositionOffSetX{}; + _float fPositionOffSetY{}; + _float2 vPosition = {}; }INSTANCE_DESC; protected: CVIBuffer_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); @@ -25,7 +27,7 @@ class ENGINE_DLL CVIBuffer_Instance abstract : public CVIBuffer virtual HRESULT Render() override; protected: - ID3D11Buffer* m_pVBInstance = { nullptr }; + ID3D11Buffer* m_pVBInstance = { nullptr }; D3D11_BUFFER_DESC m_InstanceBufferDesc = {}; D3D11_SUBRESOURCE_DATA m_InstanceInitialDesc = {}; _uint m_iInstanceStride = {}; diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Model_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Model_Instance.h new file mode 100644 index 000000000..c459ea1bb --- /dev/null +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Model_Instance.h @@ -0,0 +1,74 @@ +#pragma once +#include "VIBuffer_Instance.h" + +NS_BEGIN(Engine) + +class ENGINE_DLL CVIBuffer_Model_Instance final : public CVIBuffer_Instance +{ +private: + CVIBuffer_Model_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CVIBuffer_Model_Instance(const CVIBuffer_Model_Instance& rhs); + virtual ~CVIBuffer_Model_Instance() = default; + +public: + _uint Get_NumMesh() const { return m_iNumMeshes; } + +public: + virtual HRESULT Initialize_Prototype(const _char* pModelFilePath, const _char* pMatrialPath); + virtual HRESULT Initialize(void* pArg) override; + virtual HRESULT Render(_uint iMeshIndex); + + HRESULT Bind_Matrial(class CShader* pShader, _uint iMeshIndex); + HRESULT Load_WorldData(vector<_float4x4>& WorldMatrices); +private: + _uint m_iNumBuffer = {}; + _uint m_iNumMeshes = {}; + + _uint m_iCurrentNumInstance = {}; + _uint m_iMaxNumInstance = {}; + + INSTANCE_DESC m_InstanceDesc = {}; + + vector m_Meshes = {}; + vector> m_MeshMaterialsSRV = {}; + vector m_SurfaceMaterialFlag = {}; + + vector> m_MeshMaterialPathes = {}; + +private: + HRESULT Reay_Instance_Buffer(); + HRESULT Load_InstanceData(ifstream& in); + HRESULT Load_ModelData(const _char* pModelFilePath); + HRESULT Load_Material(const _char* pModelFilePath, const _char* pMatrialPath); + HRESULT Ready_Materials(); + +#ifdef EDITOR_PROJECT +public: + void Update_Instance(); + void Add_Instance(_fmatrix WorldMatrix); + void Delete_Instance(); + void Fix_Instance(_fmatrix WorldMatrix); + + virtual HRESULT Initialize_Prototype(const INSTANCE_DESC* pDesc, const _char* pFileName, const _char* pMatrialPath); + HRESULT Assimp_Model_Load(const _char* pModelFilePath); + HRESULT SaveAssimpModel(const _char* pModelFilePath); + +public: + static CVIBuffer_Model_Instance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc, const _char* pModelFilePath, const _char* pMatrialPath); + + const aiScene* m_pAIScene = { nullptr }; + Assimp::Importer m_Importer; + vector m_SaveMeshDesc = {}; +#endif + +public: + static CVIBuffer_Model_Instance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pModelFilePath, const _char* pMatrialPath); + virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; + virtual void Free() override; +#ifdef _DEBUG + virtual void Describe_Entity() override; +#endif + +}; + +NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h index c9ca3ca49..c4077d5e4 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Rect.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "VIBuffer.h" NS_BEGIN(Engine) @@ -19,7 +19,9 @@ class ENGINE_DLL CVIBuffer_Rect final : static CVIBuffer_Rect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); virtual CVIBuffer_Rect* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h index 33a4ed7bf..c2cb6f982 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_Terrain.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once #include "VIBuffer.h" NS_BEGIN(Engine) @@ -13,7 +13,7 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer }VIBUFFER_TERRAIN_DESC; private: CVIBuffer_Terrain(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); - CVIBuffer_Terrain(CVIBuffer_Terrain& rhs); + CVIBuffer_Terrain(const CVIBuffer_Terrain& rhs); virtual ~CVIBuffer_Terrain() = default; _float2 Get_Size() { return _float2((_float)m_iNumVerticesX, (_float)m_iNumVerticesZ); } @@ -22,7 +22,17 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer virtual HRESULT Initialize_Prototype(const _char* pFilePath, _uint iSizeX, _uint iSizeZ); virtual HRESULT Initialize(void* pArg); - _bool Picking(class CTransform* pTransform, _float3& pOut); + _bool Picking(_fmatrix WorldMatrix, _float3* pOut); + void Culling(_fmatrix WorldMatrix); + void FitY(_fmatrix WorldMatrix, _float fY); + void Change_HeigthRatio(_float fRatio); + +#ifdef _DEBUG + void Set_CullingRadius(_float fRaduis); + HRESULT Save_HeightMap(const _char* pFilePath); + HRESULT Load_HeightMap(const _char* pFilePath); +#endif // _DEBUG + private: _bool m_bChange = {}; @@ -31,11 +41,15 @@ class ENGINE_DLL CVIBuffer_Terrain final : public CVIBuffer vector<_float> m_HeigthValues = {}; + class CQuadTree* m_pQuadTree = { nullptr }; + public: static CVIBuffer_Terrain* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const _char* pFilePath, _uint iSizeX, _uint iSizeZ); - virtual CVIBuffer_Terrain* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; + virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; -NS_END \ No newline at end of file +NS_END diff --git a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h index 757d892c0..6c65232a6 100644 --- a/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h +++ b/Jusin154_Team3D/Engine/Public/VIBuffer_UI_Instance.h @@ -10,6 +10,11 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance typedef struct tagUIInstanceDesc final : public CVIBuffer_Instance::INSTANCE_DESC { }UI_INSTANCE_DESC; + typedef struct tagUIAtlasDesc + { + _float2 fUVStart{}; + _float2 fUVEnd{}; + }UI_ATLAS_DESC; private: CVIBuffer_UI_Instance(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); CVIBuffer_UI_Instance(const CVIBuffer_UI_Instance& Prototype); @@ -20,9 +25,14 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance virtual HRESULT Initialize(void* pArg) override; public: - virtual void Set_Pos(_float fX, _float fY,_float OffSet); - virtual void Set_Size(_float fSizeX, _float fSizeY); - virtual void Set_Cloned(_bool isCloned) { m_isCloned = isCloned; } + void Set_Index_Position(_uint iIndex, _float fX, _float fY); + void Set_Index_Size(_uint iIndex, _float fSizeX, _float fSizeY); + void Set_Pos(_float fX, _float fY, _float OffSetX, _float OffSetY, _uint iCols); + void Set_Size(_float fSizeX, _float fSizeY); + void Set_SizeX(_float fSizeX); + void Set_SizeY(_float fSizeY); + void Set_Cloned(_bool isCloned) { m_isCloned = isCloned; } + void Set_ImageUV(UI_ATLAS_DESC* AtlasUV = nullptr); private: VTX_INSTANCE_UI* m_pInstanceVertices = { nullptr }; @@ -31,11 +41,14 @@ class ENGINE_DLL CVIBuffer_UI_Instance final : public CVIBuffer_Instance _float2* m_fPosition{ nullptr }; _float m_fAddPosition{}; + public: static CVIBuffer_UI_Instance* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, const INSTANCE_DESC* pInstanceDesc); virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override; virtual void Free() override; - virtual void Describe_Entity() override; +#ifdef _DEBUG + void Describe_Entity() override; +#endif // _DEBUG }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/pch.h b/Jusin154_Team3D/Engine/Public/pch.h index 8a61f4686..c27ab5229 100644 --- a/Jusin154_Team3D/Engine/Public/pch.h +++ b/Jusin154_Team3D/Engine/Public/pch.h @@ -54,6 +54,11 @@ using namespace DirectX; #include #include #include +#include +#include +#include +#include + using namespace std; diff --git a/Jusin154_Team3D/Engine/Public/stb_image.h b/Jusin154_Team3D/Engine/Public/stb_image.h new file mode 100644 index 000000000..9eedabedc --- /dev/null +++ b/Jusin154_Team3D/Engine/Public/stb_image.h @@ -0,0 +1,7988 @@ +/* stb_image - v2.30 - public domain image loader - http://nothings.org/stb + no warranty implied; use at your own risk + + Do this: + #define STB_IMAGE_IMPLEMENTATION + before you include this file in *one* C or C++ file to create the implementation. + + // i.e. it should look like this: + #include ... + #include ... + #include ... + #define STB_IMAGE_IMPLEMENTATION + #include "stb_image.h" + + You can #define STBI_ASSERT(x) before the #include to avoid using assert.h. + And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free + + + QUICK NOTES: + Primarily of interest to game developers and other people who can + avoid problematic images and only need the trivial interface + + JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib) + PNG 1/2/4/8/16-bit-per-channel + + TGA (not sure what subset, if a subset) + BMP non-1bpp, non-RLE + PSD (composited view only, no extra channels, 8/16 bit-per-channel) + + GIF (*comp always reports as 4-channel) + HDR (radiance rgbE format) + PIC (Softimage PIC) + PNM (PPM and PGM binary only) + + Animated GIF still needs a proper API, but here's one way to do it: + http://gist.github.com/urraka/685d9a6340b26b830d49 + + - decode from memory or through FILE (define STBI_NO_STDIO to remove code) + - decode from arbitrary I/O callbacks + - SIMD acceleration on x86/x64 (SSE2) and ARM (NEON) + + Full documentation under "DOCUMENTATION" below. + + +LICENSE + + See end of file for license information. + +RECENT REVISION HISTORY: + + 2.30 (2024-05-31) avoid erroneous gcc warning + 2.29 (2023-05-xx) optimizations + 2.28 (2023-01-29) many error fixes, security errors, just tons of stuff + 2.27 (2021-07-11) document stbi_info better, 16-bit PNM support, bug fixes + 2.26 (2020-07-13) many minor fixes + 2.25 (2020-02-02) fix warnings + 2.24 (2020-02-02) fix warnings; thread-local failure_reason and flip_vertically + 2.23 (2019-08-11) fix clang static analysis warning + 2.22 (2019-03-04) gif fixes, fix warnings + 2.21 (2019-02-25) fix typo in comment + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) bugfix, 1-bit BMP, 16-bitness query, fix warnings + 2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes + 2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64 + RGB-format JPEG; remove white matting in PSD; + allocate large structures on the stack; + correct channel count for PNG & BMP + 2.10 (2016-01-22) avoid warning introduced in 2.09 + 2.09 (2016-01-16) 16-bit TGA; comments in PNM files; STBI_REALLOC_SIZED + + See end of file for full revision history. + + + ============================ Contributors ========================= + + Image formats Extensions, features + Sean Barrett (jpeg, png, bmp) Jetro Lauha (stbi_info) + Nicolas Schulz (hdr, psd) Martin "SpartanJ" Golini (stbi_info) + Jonathan Dummer (tga) James "moose2000" Brown (iPhone PNG) + Jean-Marc Lienher (gif) Ben "Disch" Wenger (io callbacks) + Tom Seddon (pic) Omar Cornut (1/2/4-bit PNG) + Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip) + Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD) + github:urraka (animated gif) Junggon Kim (PNM comments) + Christopher Forseth (animated gif) Daniel Gibson (16-bit TGA) + socks-the-fox (16-bit PNG) + Jeremy Sawicki (handle all ImageNet JPGs) + Optimizations & bugfixes Mikhail Morozov (1-bit BMP) + Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query) + Arseny Kapoulkine Simon Breuss (16-bit PNM) + John-Mark Allen + Carmelo J Fdez-Aguera + + Bug & warning fixes + Marc LeBlanc David Woo Guillaume George Martins Mozeiko + Christpher Lloyd Jerry Jansson Joseph Thomson Blazej Dariusz Roszkowski + Phil Jordan Dave Moore Roy Eltham + Hayaki Saito Nathan Reed Won Chun + Luke Graham Johan Duparc Nick Verigakis the Horde3D community + Thomas Ruf Ronny Chevalier github:rlyeh + Janez Zemva John Bartholomew Michal Cichon github:romigrou + Jonathan Blow Ken Hamada Tero Hanninen github:svdijk + Eugene Golushkov Laurent Gomila Cort Stratton github:snagar + Aruelien Pocheville Sergio Gonzalez Thibault Reuille github:Zelex + Cass Everitt Ryamond Barbiero github:grim210 + Paul Du Bois Engin Manap Aldo Culquicondor github:sammyhw + Philipp Wiesemann Dale Weiler Oriol Ferrer Mesia github:phprus + Josh Tobin Neil Bickford Matthew Gregan github:poppolopoppo + Julian Raschke Gregory Mullen Christian Floisand github:darealshinji + Baldur Karlsson Kevin Schmidt JR Smith github:Michaelangel007 + Brad Weinberger Matvey Cherevko github:mosra + Luca Sas Alexander Veselov Zack Middleton [reserved] + Ryan C. Gordon [reserved] [reserved] + DO NOT ADD YOUR NAME HERE + + Jacko Dirks + + To add your name to the credits, pick a random blank space in the middle and fill it. + 80% of merge conflicts on stb PRs are due to people adding their name at the end + of the credits. +*/ + +#ifndef STBI_INCLUDE_STB_IMAGE_H +#define STBI_INCLUDE_STB_IMAGE_H + +// DOCUMENTATION +// +// Limitations: +// - no 12-bit-per-channel JPEG +// - no JPEGs with arithmetic coding +// - GIF always returns *comp=4 +// +// Basic usage (see HDR discussion below for HDR usage): +// int x,y,n; +// unsigned char *data = stbi_load(filename, &x, &y, &n, 0); +// // ... process data if not NULL ... +// // ... x = width, y = height, n = # 8-bit components per pixel ... +// // ... replace '0' with '1'..'4' to force that many components per pixel +// // ... but 'n' will always be the number that it would have been if you said 0 +// stbi_image_free(data); +// +// Standard parameters: +// int *x -- outputs image width in pixels +// int *y -- outputs image height in pixels +// int *channels_in_file -- outputs # of image components in image file +// int desired_channels -- if non-zero, # of image components requested in result +// +// The return value from an image loader is an 'unsigned char *' which points +// to the pixel data, or NULL on an allocation failure or if the image is +// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels, +// with each pixel consisting of N interleaved 8-bit components; the first +// pixel pointed to is top-left-most in the image. There is no padding between +// image scanlines or between pixels, regardless of format. The number of +// components N is 'desired_channels' if desired_channels is non-zero, or +// *channels_in_file otherwise. If desired_channels is non-zero, +// *channels_in_file has the number of components that _would_ have been +// output otherwise. E.g. if you set desired_channels to 4, you will always +// get RGBA output, but you can check *channels_in_file to see if it's trivially +// opaque because e.g. there were only 3 channels in the source image. +// +// An output image with N components has the following components interleaved +// in this order in each pixel: +// +// N=#comp components +// 1 grey +// 2 grey, alpha +// 3 red, green, blue +// 4 red, green, blue, alpha +// +// If image loading fails for any reason, the return value will be NULL, +// and *x, *y, *channels_in_file will be unchanged. The function +// stbi_failure_reason() can be queried for an extremely brief, end-user +// unfriendly explanation of why the load failed. Define STBI_NO_FAILURE_STRINGS +// to avoid compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly +// more user-friendly ones. +// +// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized. +// +// To query the width, height and component count of an image without having to +// decode the full file, you can use the stbi_info family of functions: +// +// int x,y,n,ok; +// ok = stbi_info(filename, &x, &y, &n); +// // returns ok=1 and sets x, y, n if image is a supported format, +// // 0 otherwise. +// +// Note that stb_image pervasively uses ints in its public API for sizes, +// including sizes of memory buffers. This is now part of the API and thus +// hard to change without causing breakage. As a result, the various image +// loaders all have certain limits on image size; these differ somewhat +// by format but generally boil down to either just under 2GB or just under +// 1GB. When the decoded image would be larger than this, stb_image decoding +// will fail. +// +// Additionally, stb_image will reject image files that have any of their +// dimensions set to a larger value than the configurable STBI_MAX_DIMENSIONS, +// which defaults to 2**24 = 16777216 pixels. Due to the above memory limit, +// the only way to have an image with such dimensions load correctly +// is for it to have a rather extreme aspect ratio. Either way, the +// assumption here is that such larger images are likely to be malformed +// or malicious. If you do need to load an image with individual dimensions +// larger than that, and it still fits in the overall size limit, you can +// #define STBI_MAX_DIMENSIONS on your own to be something larger. +// +// =========================================================================== +// +// UNICODE: +// +// If compiling for Windows and you wish to use Unicode filenames, compile +// with +// #define STBI_WINDOWS_UTF8 +// and pass utf8-encoded filenames. Call stbi_convert_wchar_to_utf8 to convert +// Windows wchar_t filenames to utf8. +// +// =========================================================================== +// +// Philosophy +// +// stb libraries are designed with the following priorities: +// +// 1. easy to use +// 2. easy to maintain +// 3. good performance +// +// Sometimes I let "good performance" creep up in priority over "easy to maintain", +// and for best performance I may provide less-easy-to-use APIs that give higher +// performance, in addition to the easy-to-use ones. Nevertheless, it's important +// to keep in mind that from the standpoint of you, a client of this library, +// all you care about is #1 and #3, and stb libraries DO NOT emphasize #3 above all. +// +// Some secondary priorities arise directly from the first two, some of which +// provide more explicit reasons why performance can't be emphasized. +// +// - Portable ("ease of use") +// - Small source code footprint ("easy to maintain") +// - No dependencies ("ease of use") +// +// =========================================================================== +// +// I/O callbacks +// +// I/O callbacks allow you to read from arbitrary sources, like packaged +// files or some other source. Data read from callbacks are processed +// through a small internal buffer (currently 128 bytes) to try to reduce +// overhead. +// +// The three functions you must define are "read" (reads some bytes of data), +// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end). +// +// =========================================================================== +// +// SIMD support +// +// The JPEG decoder will try to automatically use SIMD kernels on x86 when +// supported by the compiler. For ARM Neon support, you must explicitly +// request it. +// +// (The old do-it-yourself SIMD API is no longer supported in the current +// code.) +// +// On x86, SSE2 will automatically be used when available based on a run-time +// test; if not, the generic C versions are used as a fall-back. On ARM targets, +// the typical path is to have separate builds for NEON and non-NEON devices +// (at least this is true for iOS and Android). Therefore, the NEON support is +// toggled by a build flag: define STBI_NEON to get NEON loops. +// +// If for some reason you do not want to use any of SIMD code, or if +// you have issues compiling it, you can disable it entirely by +// defining STBI_NO_SIMD. +// +// =========================================================================== +// +// HDR image support (disable by defining STBI_NO_HDR) +// +// stb_image supports loading HDR images in general, and currently the Radiance +// .HDR file format specifically. You can still load any file through the existing +// interface; if you attempt to load an HDR file, it will be automatically remapped +// to LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1; +// both of these constants can be reconfigured through this interface: +// +// stbi_hdr_to_ldr_gamma(2.2f); +// stbi_hdr_to_ldr_scale(1.0f); +// +// (note, do not use _inverse_ constants; stbi_image will invert them +// appropriately). +// +// Additionally, there is a new, parallel interface for loading files as +// (linear) floats to preserve the full dynamic range: +// +// float *data = stbi_loadf(filename, &x, &y, &n, 0); +// +// If you load LDR images through this interface, those images will +// be promoted to floating point values, run through the inverse of +// constants corresponding to the above: +// +// stbi_ldr_to_hdr_scale(1.0f); +// stbi_ldr_to_hdr_gamma(2.2f); +// +// Finally, given a filename (or an open file or memory block--see header +// file for details) containing image data, you can query for the "most +// appropriate" interface to use (that is, whether the image is HDR or +// not), using: +// +// stbi_is_hdr(char *filename); +// +// =========================================================================== +// +// iPhone PNG support: +// +// We optionally support converting iPhone-formatted PNGs (which store +// premultiplied BGRA) back to RGB, even though they're internally encoded +// differently. To enable this conversion, call +// stbi_convert_iphone_png_to_rgb(1). +// +// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per +// pixel to remove any premultiplied alpha *only* if the image file explicitly +// says there's premultiplied data (currently only happens in iPhone images, +// and only if iPhone convert-to-rgb processing is on). +// +// =========================================================================== +// +// ADDITIONAL CONFIGURATION +// +// - You can suppress implementation of any of the decoders to reduce +// your code footprint by #defining one or more of the following +// symbols before creating the implementation. +// +// STBI_NO_JPEG +// STBI_NO_PNG +// STBI_NO_BMP +// STBI_NO_PSD +// STBI_NO_TGA +// STBI_NO_GIF +// STBI_NO_HDR +// STBI_NO_PIC +// STBI_NO_PNM (.ppm and .pgm) +// +// - You can request *only* certain decoders and suppress all other ones +// (this will be more forward-compatible, as addition of new decoders +// doesn't require you to disable them explicitly): +// +// STBI_ONLY_JPEG +// STBI_ONLY_PNG +// STBI_ONLY_BMP +// STBI_ONLY_PSD +// STBI_ONLY_TGA +// STBI_ONLY_GIF +// STBI_ONLY_HDR +// STBI_ONLY_PIC +// STBI_ONLY_PNM (.ppm and .pgm) +// +// - If you use STBI_NO_PNG (or _ONLY_ without PNG), and you still +// want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB +// +// - If you define STBI_MAX_DIMENSIONS, stb_image will reject images greater +// than that size (in either width or height) without further processing. +// This is to let programs in the wild set an upper bound to prevent +// denial-of-service attacks on untrusted data, as one could generate a +// valid image of gigantic dimensions and force stb_image to allocate a +// huge block of memory and spend disproportionate time decoding it. By +// default this is set to (1 << 24), which is 16777216, but that's still +// very big. + +#ifndef STBI_NO_STDIO +#include +#endif // STBI_NO_STDIO + +#define STBI_VERSION 1 + +enum +{ + STBI_default = 0, // only used for desired_channels + + STBI_grey = 1, + STBI_grey_alpha = 2, + STBI_rgb = 3, + STBI_rgb_alpha = 4 +}; + +#include +typedef unsigned char stbi_uc; +typedef unsigned short stbi_us; + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef STBIDEF +#ifdef STB_IMAGE_STATIC +#define STBIDEF static +#else +#define STBIDEF extern +#endif +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// PRIMARY API - works on images of any type +// + +// +// load image by filename, open file, or memory buffer +// + +typedef struct +{ + int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read + void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative + int (*eof) (void *user); // returns nonzero if we are at end of file/data +} stbi_io_callbacks; + +//////////////////////////////////// +// +// 8-bits-per-channel interface +// + +STBIDEF stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +// for stbi_load_from_file, file pointer is left pointing immediately after image +#endif + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +#endif + +#ifdef STBI_WINDOWS_UTF8 +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input); +#endif + +//////////////////////////////////// +// +// 16-bits-per-channel interface +// + +STBIDEF stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + +#ifndef STBI_NO_STDIO +STBIDEF stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); +STBIDEF stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); +#endif + +//////////////////////////////////// +// +// float-per-channel interface +// +#ifndef STBI_NO_LINEAR + STBIDEF float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels); + + #ifndef STBI_NO_STDIO + STBIDEF float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels); + STBIDEF float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels); + #endif +#endif + +#ifndef STBI_NO_HDR + STBIDEF void stbi_hdr_to_ldr_gamma(float gamma); + STBIDEF void stbi_hdr_to_ldr_scale(float scale); +#endif // STBI_NO_HDR + +#ifndef STBI_NO_LINEAR + STBIDEF void stbi_ldr_to_hdr_gamma(float gamma); + STBIDEF void stbi_ldr_to_hdr_scale(float scale); +#endif // STBI_NO_LINEAR + +// stbi_is_hdr is always defined, but always returns false if STBI_NO_HDR +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user); +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len); +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename); +STBIDEF int stbi_is_hdr_from_file(FILE *f); +#endif // STBI_NO_STDIO + + +// get a VERY brief reason for failure +// on most compilers (and ALL modern mainstream compilers) this is threadsafe +STBIDEF const char *stbi_failure_reason (void); + +// free the loaded image -- this is just free() +STBIDEF void stbi_image_free (void *retval_from_stbi_load); + +// get image dimensions & components without fully decoding +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len); +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user); + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp); +STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp); +STBIDEF int stbi_is_16_bit (char const *filename); +STBIDEF int stbi_is_16_bit_from_file(FILE *f); +#endif + + + +// for image formats that explicitly notate that they have premultiplied alpha, +// we just return the colors as stored in the file. set this flag to force +// unpremultiplication. results are undefined if the unpremultiply overflow. +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply); + +// indicate whether we should process iphone images back to canonical format, +// or just pass them through "as-is" +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert); + +// flip the image vertically, so the first pixel in the output array is the bottom left +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip); + +// as above, but only applies to images loaded on the thread that calls the function +// this function is only available if your compiler supports thread-local variables; +// calling it will fail to link if your compiler doesn't +STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply); +STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert); +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip); + +// ZLIB client - used by PNG, available for other purposes + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen); +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header); +STBIDEF char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + +STBIDEF char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen); +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen); + + +#ifdef __cplusplus +} +#endif + +// +// +//// end header file ///////////////////////////////////////////////////// +#endif // STBI_INCLUDE_STB_IMAGE_H + +#ifdef STB_IMAGE_IMPLEMENTATION + +#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \ + || defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) \ + || defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) \ + || defined(STBI_ONLY_ZLIB) + #ifndef STBI_ONLY_JPEG + #define STBI_NO_JPEG + #endif + #ifndef STBI_ONLY_PNG + #define STBI_NO_PNG + #endif + #ifndef STBI_ONLY_BMP + #define STBI_NO_BMP + #endif + #ifndef STBI_ONLY_PSD + #define STBI_NO_PSD + #endif + #ifndef STBI_ONLY_TGA + #define STBI_NO_TGA + #endif + #ifndef STBI_ONLY_GIF + #define STBI_NO_GIF + #endif + #ifndef STBI_ONLY_HDR + #define STBI_NO_HDR + #endif + #ifndef STBI_ONLY_PIC + #define STBI_NO_PIC + #endif + #ifndef STBI_ONLY_PNM + #define STBI_NO_PNM + #endif +#endif + +#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB) +#define STBI_NO_ZLIB +#endif + + +#include +#include // ptrdiff_t on osx +#include +#include +#include + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) +#include // ldexp, pow +#endif + +#ifndef STBI_NO_STDIO +#include +#endif + +#ifndef STBI_ASSERT +#include +#define STBI_ASSERT(x) assert(x) +#endif + +#ifdef __cplusplus +#define STBI_EXTERN extern "C" +#else +#define STBI_EXTERN extern +#endif + + +#ifndef _MSC_VER + #ifdef __cplusplus + #define stbi_inline inline + #else + #define stbi_inline + #endif +#else + #define stbi_inline __forceinline +#endif + +#ifndef STBI_NO_THREAD_LOCALS + #if defined(__cplusplus) && __cplusplus >= 201103L + #define STBI_THREAD_LOCAL thread_local + #elif defined(__GNUC__) && __GNUC__ < 5 + #define STBI_THREAD_LOCAL __thread + #elif defined(_MSC_VER) + #define STBI_THREAD_LOCAL __declspec(thread) + #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) + #define STBI_THREAD_LOCAL _Thread_local + #endif + + #ifndef STBI_THREAD_LOCAL + #if defined(__GNUC__) + #define STBI_THREAD_LOCAL __thread + #endif + #endif +#endif + +#if defined(_MSC_VER) || defined(__SYMBIAN32__) +typedef unsigned short stbi__uint16; +typedef signed short stbi__int16; +typedef unsigned int stbi__uint32; +typedef signed int stbi__int32; +#else +#include +typedef uint16_t stbi__uint16; +typedef int16_t stbi__int16; +typedef uint32_t stbi__uint32; +typedef int32_t stbi__int32; +#endif + +// should produce compiler error if size is wrong +typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1]; + +#ifdef _MSC_VER +#define STBI_NOTUSED(v) (void)(v) +#else +#define STBI_NOTUSED(v) (void)sizeof(v) +#endif + +#ifdef _MSC_VER +#define STBI_HAS_LROTL +#endif + +#ifdef STBI_HAS_LROTL + #define stbi_lrot(x,y) _lrotl(x,y) +#else + #define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (-(y) & 31))) +#endif + +#if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED)) +// ok +#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED) +// ok +#else +#error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)." +#endif + +#ifndef STBI_MALLOC +#define STBI_MALLOC(sz) malloc(sz) +#define STBI_REALLOC(p,newsz) realloc(p,newsz) +#define STBI_FREE(p) free(p) +#endif + +#ifndef STBI_REALLOC_SIZED +#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz) +#endif + +// x86/x64 detection +#if defined(__x86_64__) || defined(_M_X64) +#define STBI__X64_TARGET +#elif defined(__i386) || defined(_M_IX86) +#define STBI__X86_TARGET +#endif + +#if defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD) +// gcc doesn't support sse2 intrinsics unless you compile with -msse2, +// which in turn means it gets to use SSE2 everywhere. This is unfortunate, +// but previous attempts to provide the SSE2 functions with runtime +// detection caused numerous issues. The way architecture extensions are +// exposed in GCC/Clang is, sadly, not really suited for one-file libs. +// New behavior: if compiled with -msse2, we use SSE2 without any +// detection; if not, we don't use it at all. +#define STBI_NO_SIMD +#endif + +#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD) +// Note that __MINGW32__ doesn't actually mean 32-bit, so we have to avoid STBI__X64_TARGET +// +// 32-bit MinGW wants ESP to be 16-byte aligned, but this is not in the +// Windows ABI and VC++ as well as Windows DLLs don't maintain that invariant. +// As a result, enabling SSE2 on 32-bit MinGW is dangerous when not +// simultaneously enabling "-mstackrealign". +// +// See https://github.com/nothings/stb/issues/81 for more information. +// +// So default to no SSE2 on 32-bit MinGW. If you've read this far and added +// -mstackrealign to your build settings, feel free to #define STBI_MINGW_ENABLE_SSE2. +#define STBI_NO_SIMD +#endif + +#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET)) +#define STBI_SSE2 +#include + +#ifdef _MSC_VER + +#if _MSC_VER >= 1400 // not VC6 +#include // __cpuid +static int stbi__cpuid3(void) +{ + int info[4]; + __cpuid(info,1); + return info[3]; +} +#else +static int stbi__cpuid3(void) +{ + int res; + __asm { + mov eax,1 + cpuid + mov res,edx + } + return res; +} +#endif + +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + int info3 = stbi__cpuid3(); + return ((info3 >> 26) & 1) != 0; +} +#endif + +#else // assume GCC-style if not VC++ +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) + +#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2) +static int stbi__sse2_available(void) +{ + // If we're even attempting to compile this on GCC/Clang, that means + // -msse2 is on, which means the compiler is allowed to use SSE2 + // instructions at will, and so are we. + return 1; +} +#endif + +#endif +#endif + +// ARM NEON +#if defined(STBI_NO_SIMD) && defined(STBI_NEON) +#undef STBI_NEON +#endif + +#ifdef STBI_NEON +#include +#ifdef _MSC_VER +#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name +#else +#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16))) +#endif +#endif + +#ifndef STBI_SIMD_ALIGN +#define STBI_SIMD_ALIGN(type, name) type name +#endif + +#ifndef STBI_MAX_DIMENSIONS +#define STBI_MAX_DIMENSIONS (1 << 24) +#endif + +/////////////////////////////////////////////// +// +// stbi__context struct and start_xxx functions + +// stbi__context structure is our basic context used by all images, so it +// contains all the IO context, plus some basic image information +typedef struct +{ + stbi__uint32 img_x, img_y; + int img_n, img_out_n; + + stbi_io_callbacks io; + void *io_user_data; + + int read_from_callbacks; + int buflen; + stbi_uc buffer_start[128]; + int callback_already_read; + + stbi_uc *img_buffer, *img_buffer_end; + stbi_uc *img_buffer_original, *img_buffer_original_end; +} stbi__context; + + +static void stbi__refill_buffer(stbi__context *s); + +// initialize a memory-decode context +static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) +{ + s->io.read = NULL; + s->read_from_callbacks = 0; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer; + s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len; +} + +// initialize a callback-based context +static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user) +{ + s->io = *c; + s->io_user_data = user; + s->buflen = sizeof(s->buffer_start); + s->read_from_callbacks = 1; + s->callback_already_read = 0; + s->img_buffer = s->img_buffer_original = s->buffer_start; + stbi__refill_buffer(s); + s->img_buffer_original_end = s->img_buffer_end; +} + +#ifndef STBI_NO_STDIO + +static int stbi__stdio_read(void *user, char *data, int size) +{ + return (int) fread(data,1,size,(FILE*) user); +} + +static void stbi__stdio_skip(void *user, int n) +{ + int ch; + fseek((FILE*) user, n, SEEK_CUR); + ch = fgetc((FILE*) user); /* have to read a byte to reset feof()'s flag */ + if (ch != EOF) { + ungetc(ch, (FILE *) user); /* push byte back onto stream if valid. */ + } +} + +static int stbi__stdio_eof(void *user) +{ + return feof((FILE*) user) || ferror((FILE *) user); +} + +static stbi_io_callbacks stbi__stdio_callbacks = +{ + stbi__stdio_read, + stbi__stdio_skip, + stbi__stdio_eof, +}; + +static void stbi__start_file(stbi__context *s, FILE *f) +{ + stbi__start_callbacks(s, &stbi__stdio_callbacks, (void *) f); +} + +//static void stop_file(stbi__context *s) { } + +#endif // !STBI_NO_STDIO + +static void stbi__rewind(stbi__context *s) +{ + // conceptually rewind SHOULD rewind to the beginning of the stream, + // but we just rewind to the beginning of the initial buffer, because + // we only use it after doing 'test', which only ever looks at at most 92 bytes + s->img_buffer = s->img_buffer_original; + s->img_buffer_end = s->img_buffer_original_end; +} + +enum +{ + STBI_ORDER_RGB, + STBI_ORDER_BGR +}; + +typedef struct +{ + int bits_per_channel; + int num_channels; + int channel_order; +} stbi__result_info; + +#ifndef STBI_NO_JPEG +static int stbi__jpeg_test(stbi__context *s); +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNG +static int stbi__png_test(stbi__context *s); +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__png_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_BMP +static int stbi__bmp_test(stbi__context *s); +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_TGA +static int stbi__tga_test(stbi__context *s); +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s); +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc); +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__psd_is16(stbi__context *s); +#endif + +#ifndef STBI_NO_HDR +static int stbi__hdr_test(stbi__context *s); +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_test(stbi__context *s); +static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_GIF +static int stbi__gif_test(stbi__context *s); +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp); +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp); +#endif + +#ifndef STBI_NO_PNM +static int stbi__pnm_test(stbi__context *s); +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri); +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp); +static int stbi__pnm_is16(stbi__context *s); +#endif + +static +#ifdef STBI_THREAD_LOCAL +STBI_THREAD_LOCAL +#endif +const char *stbi__g_failure_reason; + +STBIDEF const char *stbi_failure_reason(void) +{ + return stbi__g_failure_reason; +} + +#ifndef STBI_NO_FAILURE_STRINGS +static int stbi__err(const char *str) +{ + stbi__g_failure_reason = str; + return 0; +} +#endif + +static void *stbi__malloc(size_t size) +{ + return STBI_MALLOC(size); +} + +// stb_image uses ints pervasively, including for offset calculations. +// therefore the largest decoded image size we can support with the +// current code, even on 64-bit targets, is INT_MAX. this is not a +// significant limitation for the intended use case. +// +// we do, however, need to make sure our size calculations don't +// overflow. hence a few helper functions for size calculations that +// multiply integers together, making sure that they're non-negative +// and no overflow occurs. + +// return 1 if the sum is valid, 0 on overflow. +// negative terms are considered invalid. +static int stbi__addsizes_valid(int a, int b) +{ + if (b < 0) return 0; + // now 0 <= b <= INT_MAX, hence also + // 0 <= INT_MAX - b <= INTMAX. + // And "a + b <= INT_MAX" (which might overflow) is the + // same as a <= INT_MAX - b (no overflow) + return a <= INT_MAX - b; +} + +// returns 1 if the product is valid, 0 on overflow. +// negative factors are considered invalid. +static int stbi__mul2sizes_valid(int a, int b) +{ + if (a < 0 || b < 0) return 0; + if (b == 0) return 1; // mul-by-0 is always safe + // portable way to check for no overflows in a*b + return a <= INT_MAX/b; +} + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow +static int stbi__mad2sizes_valid(int a, int b, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add); +} +#endif + +// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow +static int stbi__mad3sizes_valid(int a, int b, int c, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__addsizes_valid(a*b*c, add); +} + +// returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) +static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add) +{ + return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) && + stbi__mul2sizes_valid(a*b*c, d) && stbi__addsizes_valid(a*b*c*d, add); +} +#endif + +#if !defined(STBI_NO_JPEG) || !defined(STBI_NO_PNG) || !defined(STBI_NO_TGA) || !defined(STBI_NO_HDR) +// mallocs with size overflow checking +static void *stbi__malloc_mad2(int a, int b, int add) +{ + if (!stbi__mad2sizes_valid(a, b, add)) return NULL; + return stbi__malloc(a*b + add); +} +#endif + +static void *stbi__malloc_mad3(int a, int b, int c, int add) +{ + if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL; + return stbi__malloc(a*b*c + add); +} + +#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR) || !defined(STBI_NO_PNM) +static void *stbi__malloc_mad4(int a, int b, int c, int d, int add) +{ + if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL; + return stbi__malloc(a*b*c*d + add); +} +#endif + +// returns 1 if the sum of two signed ints is valid (between -2^31 and 2^31-1 inclusive), 0 on overflow. +static int stbi__addints_valid(int a, int b) +{ + if ((a >= 0) != (b >= 0)) return 1; // a and b have different signs, so no overflow + if (a < 0 && b < 0) return a >= INT_MIN - b; // same as a + b >= INT_MIN; INT_MIN - b cannot overflow since b < 0. + return a <= INT_MAX - b; +} + +// returns 1 if the product of two ints fits in a signed short, 0 on overflow. +static int stbi__mul2shorts_valid(int a, int b) +{ + if (b == 0 || b == -1) return 1; // multiplication by 0 is always 0; check for -1 so SHRT_MIN/b doesn't overflow + if ((a >= 0) == (b >= 0)) return a <= SHRT_MAX/b; // product is positive, so similar to mul2sizes_valid + if (b < 0) return a <= SHRT_MIN / b; // same as a * b >= SHRT_MIN + return a >= SHRT_MIN / b; +} + +// stbi__err - error +// stbi__errpf - error returning pointer to float +// stbi__errpuc - error returning pointer to unsigned char + +#ifdef STBI_NO_FAILURE_STRINGS + #define stbi__err(x,y) 0 +#elif defined(STBI_FAILURE_USERMSG) + #define stbi__err(x,y) stbi__err(y) +#else + #define stbi__err(x,y) stbi__err(x) +#endif + +#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL)) +#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL)) + +STBIDEF void stbi_image_free(void *retval_from_stbi_load) +{ + STBI_FREE(retval_from_stbi_load); +} + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp); +#endif + +#ifndef STBI_NO_HDR +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp); +#endif + +static int stbi__vertically_flip_on_load_global = 0; + +STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_global = flag_true_if_should_flip; +} + +#ifndef STBI_THREAD_LOCAL +#define stbi__vertically_flip_on_load stbi__vertically_flip_on_load_global +#else +static STBI_THREAD_LOCAL int stbi__vertically_flip_on_load_local, stbi__vertically_flip_on_load_set; + +STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip) +{ + stbi__vertically_flip_on_load_local = flag_true_if_should_flip; + stbi__vertically_flip_on_load_set = 1; +} + +#define stbi__vertically_flip_on_load (stbi__vertically_flip_on_load_set \ + ? stbi__vertically_flip_on_load_local \ + : stbi__vertically_flip_on_load_global) +#endif // STBI_THREAD_LOCAL + +static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + memset(ri, 0, sizeof(*ri)); // make sure it's initialized if we add new fields + ri->bits_per_channel = 8; // default is 8 so most paths don't have to be changed + ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order + ri->num_channels = 0; + + // test the formats with a very explicit header first (at least a FOURCC + // or distinctive magic number first) + #ifndef STBI_NO_PNG + if (stbi__png_test(s)) return stbi__png_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_BMP + if (stbi__bmp_test(s)) return stbi__bmp_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_GIF + if (stbi__gif_test(s)) return stbi__gif_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PSD + if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp, ri, bpc); + #else + STBI_NOTUSED(bpc); + #endif + #ifndef STBI_NO_PIC + if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp, ri); + #endif + + // then the formats that can end up attempting to load with just 1 or 2 + // bytes matching expectations; these are prone to false positives, so + // try them later + #ifndef STBI_NO_JPEG + if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp, ri); + #endif + #ifndef STBI_NO_PNM + if (stbi__pnm_test(s)) return stbi__pnm_load(s,x,y,comp,req_comp, ri); + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + float *hdr = stbi__hdr_load(s, x,y,comp,req_comp, ri); + return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp); + } + #endif + + #ifndef STBI_NO_TGA + // test tga last because it's a crappy test! + if (stbi__tga_test(s)) + return stbi__tga_load(s,x,y,comp,req_comp, ri); + #endif + + return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt"); +} + +static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi_uc *reduced; + + reduced = (stbi_uc *) stbi__malloc(img_len); + if (reduced == NULL) return stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + reduced[i] = (stbi_uc)((orig[i] >> 8) & 0xFF); // top half of each byte is sufficient approx of 16->8 bit scaling + + STBI_FREE(orig); + return reduced; +} + +static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels) +{ + int i; + int img_len = w * h * channels; + stbi__uint16 *enlarged; + + enlarged = (stbi__uint16 *) stbi__malloc(img_len*2); + if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + + for (i = 0; i < img_len; ++i) + enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff + + STBI_FREE(orig); + return enlarged; +} + +static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel) +{ + int row; + size_t bytes_per_row = (size_t)w * bytes_per_pixel; + stbi_uc temp[2048]; + stbi_uc *bytes = (stbi_uc *)image; + + for (row = 0; row < (h>>1); row++) { + stbi_uc *row0 = bytes + row*bytes_per_row; + stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row; + // swap row0 with row1 + size_t bytes_left = bytes_per_row; + while (bytes_left) { + size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp); + memcpy(temp, row0, bytes_copy); + memcpy(row0, row1, bytes_copy); + memcpy(row1, temp, bytes_copy); + row0 += bytes_copy; + row1 += bytes_copy; + bytes_left -= bytes_copy; + } + } +} + +#ifndef STBI_NO_GIF +static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel) +{ + int slice; + int slice_size = w * h * bytes_per_pixel; + + stbi_uc *bytes = (stbi_uc *)image; + for (slice = 0; slice < z; ++slice) { + stbi__vertical_flip(bytes, w, h, bytes_per_pixel); + bytes += slice_size; + } +} +#endif + +static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 8); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 8) { + result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 8; + } + + // @TODO: move stbi__convert_format to here + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi_uc)); + } + + return (unsigned char *) result; +} + +static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + stbi__result_info ri; + void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16); + + if (result == NULL) + return NULL; + + // it is the responsibility of the loaders to make sure we get either 8 or 16 bit. + STBI_ASSERT(ri.bits_per_channel == 8 || ri.bits_per_channel == 16); + + if (ri.bits_per_channel != 16) { + result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp); + ri.bits_per_channel = 16; + } + + // @TODO: move stbi__convert_format16 to here + // @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision + + if (stbi__vertically_flip_on_load) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16)); + } + + return (stbi__uint16 *) result; +} + +#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR) +static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp) +{ + if (stbi__vertically_flip_on_load && result != NULL) { + int channels = req_comp ? req_comp : *comp; + stbi__vertical_flip(result, *x, *y, channels * sizeof(float)); + } +} +#endif + +#ifndef STBI_NO_STDIO + +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) +STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide); +STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default); +#endif + +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) +STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input) +{ + return WideCharToMultiByte(65001 /* UTF8 */, 0, input, -1, buffer, (int) bufferlen, NULL, NULL); +} +#endif + +static FILE *stbi__fopen(char const *filename, char const *mode) +{ + FILE *f; +#if defined(_WIN32) && defined(STBI_WINDOWS_UTF8) + wchar_t wMode[64]; + wchar_t wFilename[1024]; + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename)/sizeof(*wFilename))) + return 0; + + if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode)/sizeof(*wMode))) + return 0; + +#if defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != _wfopen_s(&f, wFilename, wMode)) + f = 0; +#else + f = _wfopen(wFilename, wMode); +#endif + +#elif defined(_MSC_VER) && _MSC_VER >= 1400 + if (0 != fopen_s(&f, filename, mode)) + f=0; +#else + f = fopen(filename, mode); +#endif + return f; +} + + +STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + unsigned char *result; + if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__uint16 *result; + stbi__context s; + stbi__start_file(&s,f); + result = stbi__load_and_postprocess_16bit(&s,x,y,comp,req_comp); + if (result) { + // need to 'unget' all the characters in the IO buffer + fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR); + } + return result; +} + +STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + stbi__uint16 *result; + if (!f) return (stbi_us *) stbi__errpuc("can't fopen", "Unable to open file"); + result = stbi_load_from_file_16(f,x,y,comp,req_comp); + fclose(f); + return result; +} + + +#endif //!STBI_NO_STDIO + +STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *)clbk, user); + return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels); +} + +STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_GIF +STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + unsigned char *result; + stbi__context s; + stbi__start_mem(&s,buffer,len); + + result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp); + if (stbi__vertically_flip_on_load) { + stbi__vertical_flip_slices( result, *x, *y, *z, *comp ); + } + + return result; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp) +{ + unsigned char *data; + #ifndef STBI_NO_HDR + if (stbi__hdr_test(s)) { + stbi__result_info ri; + float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp, &ri); + if (hdr_data) + stbi__float_postprocess(hdr_data,x,y,comp,req_comp); + return hdr_data; + } + #endif + data = stbi__load_and_postprocess_8bit(s, x, y, comp, req_comp); + if (data) + return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp); + return stbi__errpf("unknown image type", "Image not of any known type, or corrupt"); +} + +STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} + +#ifndef STBI_NO_STDIO +STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp) +{ + float *result; + FILE *f = stbi__fopen(filename, "rb"); + if (!f) return stbi__errpf("can't fopen", "Unable to open file"); + result = stbi_loadf_from_file(f,x,y,comp,req_comp); + fclose(f); + return result; +} + +STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) +{ + stbi__context s; + stbi__start_file(&s,f); + return stbi__loadf_main(&s,x,y,comp,req_comp); +} +#endif // !STBI_NO_STDIO + +#endif // !STBI_NO_LINEAR + +// these is-hdr-or-not is defined independent of whether STBI_NO_LINEAR is +// defined, for API simplicity; if STBI_NO_LINEAR is defined, it always +// reports false! + +STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(buffer); + STBI_NOTUSED(len); + return 0; + #endif +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_is_hdr (char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result=0; + if (f) { + result = stbi_is_hdr_from_file(f); + fclose(f); + } + return result; +} + +STBIDEF int stbi_is_hdr_from_file(FILE *f) +{ + #ifndef STBI_NO_HDR + long pos = ftell(f); + int res; + stbi__context s; + stbi__start_file(&s,f); + res = stbi__hdr_test(&s); + fseek(f, pos, SEEK_SET); + return res; + #else + STBI_NOTUSED(f); + return 0; + #endif +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user) +{ + #ifndef STBI_NO_HDR + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user); + return stbi__hdr_test(&s); + #else + STBI_NOTUSED(clbk); + STBI_NOTUSED(user); + return 0; + #endif +} + +#ifndef STBI_NO_LINEAR +static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f; + +STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; } +STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; } +#endif + +static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f; + +STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; } +STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; } + + +////////////////////////////////////////////////////////////////////////////// +// +// Common code used by all image loaders +// + +enum +{ + STBI__SCAN_load=0, + STBI__SCAN_type, + STBI__SCAN_header +}; + +static void stbi__refill_buffer(stbi__context *s) +{ + int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen); + s->callback_already_read += (int) (s->img_buffer - s->img_buffer_original); + if (n == 0) { + // at end of file, treat same as if from memory, but need to handle case + // where s->img_buffer isn't pointing to safe memory, e.g. 0-byte file + s->read_from_callbacks = 0; + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start+1; + *s->img_buffer = 0; + } else { + s->img_buffer = s->buffer_start; + s->img_buffer_end = s->buffer_start + n; + } +} + +stbi_inline static stbi_uc stbi__get8(stbi__context *s) +{ + if (s->img_buffer < s->img_buffer_end) + return *s->img_buffer++; + if (s->read_from_callbacks) { + stbi__refill_buffer(s); + return *s->img_buffer++; + } + return 0; +} + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_HDR) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +stbi_inline static int stbi__at_eof(stbi__context *s) +{ + if (s->io.read) { + if (!(s->io.eof)(s->io_user_data)) return 0; + // if feof() is true, check if buffer = end + // special case: we've only got the special 0 character at the end + if (s->read_from_callbacks == 0) return 1; + } + + return s->img_buffer >= s->img_buffer_end; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) +// nothing +#else +static void stbi__skip(stbi__context *s, int n) +{ + if (n == 0) return; // already there! + if (n < 0) { + s->img_buffer = s->img_buffer_end; + return; + } + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + s->img_buffer = s->img_buffer_end; + (s->io.skip)(s->io_user_data, n - blen); + return; + } + } + s->img_buffer += n; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_TGA) && defined(STBI_NO_HDR) && defined(STBI_NO_PNM) +// nothing +#else +static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n) +{ + if (s->io.read) { + int blen = (int) (s->img_buffer_end - s->img_buffer); + if (blen < n) { + int res, count; + + memcpy(buffer, s->img_buffer, blen); + + count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen); + res = (count == (n-blen)); + s->img_buffer = s->img_buffer_end; + return res; + } + } + + if (s->img_buffer+n <= s->img_buffer_end) { + memcpy(buffer, s->img_buffer, n); + s->img_buffer += n; + return 1; + } else + return 0; +} +#endif + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static int stbi__get16be(stbi__context *s) +{ + int z = stbi__get8(s); + return (z << 8) + stbi__get8(s); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && defined(STBI_NO_PIC) +// nothing +#else +static stbi__uint32 stbi__get32be(stbi__context *s) +{ + stbi__uint32 z = stbi__get16be(s); + return (z << 16) + stbi__get16be(s); +} +#endif + +#if defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) +// nothing +#else +static int stbi__get16le(stbi__context *s) +{ + int z = stbi__get8(s); + return z + (stbi__get8(s) << 8); +} +#endif + +#ifndef STBI_NO_BMP +static stbi__uint32 stbi__get32le(stbi__context *s) +{ + stbi__uint32 z = stbi__get16le(s); + z += (stbi__uint32)stbi__get16le(s) << 16; + return z; +} +#endif + +#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings + +#if defined(STBI_NO_JPEG) && defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +////////////////////////////////////////////////////////////////////////////// +// +// generic converter from built-in img_n to req_comp +// individual types do this automatically as much as possible (e.g. jpeg +// does all cases internally since it needs to colorspace convert anyway, +// and it never has alpha, so very few cases ). png can automatically +// interleave an alpha=255 channel, but falls back to this for other cases +// +// assume data buffer is malloced, so malloc a new one and free that one +// only failure mode is malloc failing + +static stbi_uc stbi__compute_y(int r, int g, int b) +{ + return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_BMP) && defined(STBI_NO_PSD) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF) && defined(STBI_NO_PIC) && defined(STBI_NO_PNM) +// nothing +#else +static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + unsigned char *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (unsigned char *) stbi__malloc_mad3(req_comp, x, y, 0); + if (good == NULL) { + STBI_FREE(data); + return stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + unsigned char *src = data + j * x * img_n ; + unsigned char *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=255; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=255; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=255; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = 255; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 stbi__compute_y_16(int r, int g, int b) +{ + return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8); +} +#endif + +#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) +// nothing +#else +static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y) +{ + int i,j; + stbi__uint16 *good; + + if (req_comp == img_n) return data; + STBI_ASSERT(req_comp >= 1 && req_comp <= 4); + + good = (stbi__uint16 *) stbi__malloc(req_comp * x * y * 2); + if (good == NULL) { + STBI_FREE(data); + return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory"); + } + + for (j=0; j < (int) y; ++j) { + stbi__uint16 *src = data + j * x * img_n ; + stbi__uint16 *dest = good + j * x * req_comp; + + #define STBI__COMBO(a,b) ((a)*8+(b)) + #define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b) + // convert source image with img_n components to one with req_comp components; + // avoid switch per pixel, so use switch per scanline and massive macros + switch (STBI__COMBO(img_n, req_comp)) { + STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=0xffff; } break; + STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=0xffff; } break; + STBI__CASE(2,1) { dest[0]=src[0]; } break; + STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break; + STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break; + STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=0xffff; } break; + STBI__CASE(3,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(3,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = 0xffff; } break; + STBI__CASE(4,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break; + STBI__CASE(4,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = src[3]; } break; + STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break; + default: STBI_ASSERT(0); STBI_FREE(data); STBI_FREE(good); return (stbi__uint16*) stbi__errpuc("unsupported", "Unsupported format conversion"); + } + #undef STBI__CASE + } + + STBI_FREE(data); + return good; +} +#endif + +#ifndef STBI_NO_LINEAR +static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp) +{ + int i,k,n; + float *output; + if (!data) return NULL; + output = (float *) stbi__malloc_mad4(x, y, comp, sizeof(float), 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale); + } + } + if (n < comp) { + for (i=0; i < x*y; ++i) { + output[i*comp + n] = data[i*comp + n]/255.0f; + } + } + STBI_FREE(data); + return output; +} +#endif + +#ifndef STBI_NO_HDR +#define stbi__float2int(x) ((int) (x)) +static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp) +{ + int i,k,n; + stbi_uc *output; + if (!data) return NULL; + output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0); + if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); } + // compute number of non-alpha components + if (comp & 1) n = comp; else n = comp-1; + for (i=0; i < x*y; ++i) { + for (k=0; k < n; ++k) { + float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + if (k < comp) { + float z = data[i*comp+k] * 255 + 0.5f; + if (z < 0) z = 0; + if (z > 255) z = 255; + output[i*comp + k] = (stbi_uc) stbi__float2int(z); + } + } + STBI_FREE(data); + return output; +} +#endif + +////////////////////////////////////////////////////////////////////////////// +// +// "baseline" JPEG/JFIF decoder +// +// simple implementation +// - doesn't support delayed output of y-dimension +// - simple interface (only one output format: 8-bit interleaved RGB) +// - doesn't try to recover corrupt jpegs +// - doesn't allow partial loading, loading multiple at once +// - still fast on x86 (copying globals into locals doesn't help x86) +// - allocates lots of intermediate memory (full size of all components) +// - non-interleaved case requires this anyway +// - allows good upsampling (see next) +// high-quality +// - upsampled channels are bilinearly interpolated, even across blocks +// - quality integer IDCT derived from IJG's 'slow' +// performance +// - fast huffman; reasonable integer IDCT +// - some SIMD kernels for common paths on targets with SSE2/NEON +// - uses a lot of intermediate memory, could cache poorly + +#ifndef STBI_NO_JPEG + +// huffman decoding acceleration +#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache + +typedef struct +{ + stbi_uc fast[1 << FAST_BITS]; + // weirdly, repacking this into AoS is a 10% speed loss, instead of a win + stbi__uint16 code[256]; + stbi_uc values[256]; + stbi_uc size[257]; + unsigned int maxcode[18]; + int delta[17]; // old 'firstsymbol' - old 'firstcode' +} stbi__huffman; + +typedef struct +{ + stbi__context *s; + stbi__huffman huff_dc[4]; + stbi__huffman huff_ac[4]; + stbi__uint16 dequant[4][64]; + stbi__int16 fast_ac[4][1 << FAST_BITS]; + +// sizes for components, interleaved MCUs + int img_h_max, img_v_max; + int img_mcu_x, img_mcu_y; + int img_mcu_w, img_mcu_h; + +// definition of jpeg image component + struct + { + int id; + int h,v; + int tq; + int hd,ha; + int dc_pred; + + int x,y,w2,h2; + stbi_uc *data; + void *raw_data, *raw_coeff; + stbi_uc *linebuf; + short *coeff; // progressive only + int coeff_w, coeff_h; // number of 8x8 coefficient blocks + } img_comp[4]; + + stbi__uint32 code_buffer; // jpeg entropy-coded buffer + int code_bits; // number of valid bits + unsigned char marker; // marker seen while filling entropy buffer + int nomore; // flag if we saw a marker so must stop + + int progressive; + int spec_start; + int spec_end; + int succ_high; + int succ_low; + int eob_run; + int jfif; + int app14_color_transform; // Adobe APP14 tag + int rgb; + + int scan_n, order[4]; + int restart_interval, todo; + +// kernels + void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]); + void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step); + stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs); +} stbi__jpeg; + +static int stbi__build_huffman(stbi__huffman *h, int *count) +{ + int i,j,k=0; + unsigned int code; + // build size list for each symbol (from JPEG spec) + for (i=0; i < 16; ++i) { + for (j=0; j < count[i]; ++j) { + h->size[k++] = (stbi_uc) (i+1); + if(k >= 257) return stbi__err("bad size list","Corrupt JPEG"); + } + } + h->size[k] = 0; + + // compute actual symbols (from jpeg spec) + code = 0; + k = 0; + for(j=1; j <= 16; ++j) { + // compute delta to add to code to compute symbol id + h->delta[j] = k - code; + if (h->size[k] == j) { + while (h->size[k] == j) + h->code[k++] = (stbi__uint16) (code++); + if (code-1 >= (1u << j)) return stbi__err("bad code lengths","Corrupt JPEG"); + } + // compute largest code + 1 for this size, preshifted as needed later + h->maxcode[j] = code << (16-j); + code <<= 1; + } + h->maxcode[j] = 0xffffffff; + + // build non-spec acceleration table; 255 is flag for not-accelerated + memset(h->fast, 255, 1 << FAST_BITS); + for (i=0; i < k; ++i) { + int s = h->size[i]; + if (s <= FAST_BITS) { + int c = h->code[i] << (FAST_BITS-s); + int m = 1 << (FAST_BITS-s); + for (j=0; j < m; ++j) { + h->fast[c+j] = (stbi_uc) i; + } + } + } + return 1; +} + +// build a table that decodes both magnitude and value of small ACs in +// one go. +static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h) +{ + int i; + for (i=0; i < (1 << FAST_BITS); ++i) { + stbi_uc fast = h->fast[i]; + fast_ac[i] = 0; + if (fast < 255) { + int rs = h->values[fast]; + int run = (rs >> 4) & 15; + int magbits = rs & 15; + int len = h->size[fast]; + + if (magbits && len + magbits <= FAST_BITS) { + // magnitude code followed by receive_extend code + int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits); + int m = 1 << (magbits - 1); + if (k < m) k += (~0U << magbits) + 1; + // if the result is small enough, we can fit it in fast_ac table + if (k >= -128 && k <= 127) + fast_ac[i] = (stbi__int16) ((k * 256) + (run * 16) + (len + magbits)); + } + } + } +} + +static void stbi__grow_buffer_unsafe(stbi__jpeg *j) +{ + do { + unsigned int b = j->nomore ? 0 : stbi__get8(j->s); + if (b == 0xff) { + int c = stbi__get8(j->s); + while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes + if (c != 0) { + j->marker = (unsigned char) c; + j->nomore = 1; + return; + } + } + j->code_buffer |= b << (24 - j->code_bits); + j->code_bits += 8; + } while (j->code_bits <= 24); +} + +// (1 << n) - 1 +static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535}; + +// decode a jpeg huffman value from the bitstream +stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h) +{ + unsigned int temp; + int c,k; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + // look at the top FAST_BITS and determine what symbol ID it is, + // if the code is <= FAST_BITS + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + k = h->fast[c]; + if (k < 255) { + int s = h->size[k]; + if (s > j->code_bits) + return -1; + j->code_buffer <<= s; + j->code_bits -= s; + return h->values[k]; + } + + // naive test is to shift the code_buffer down so k bits are + // valid, then test against maxcode. To speed this up, we've + // preshifted maxcode left so that it has (16-k) 0s at the + // end; in other words, regardless of the number of bits, it + // wants to be compared against something shifted to have 16; + // that way we don't need to shift inside the loop. + temp = j->code_buffer >> 16; + for (k=FAST_BITS+1 ; ; ++k) + if (temp < h->maxcode[k]) + break; + if (k == 17) { + // error! code not found + j->code_bits -= 16; + return -1; + } + + if (k > j->code_bits) + return -1; + + // convert the huffman code to the symbol id + c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k]; + if(c < 0 || c >= 256) // symbol id out of bounds! + return -1; + STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]); + + // convert the id to a symbol + j->code_bits -= k; + j->code_buffer <<= k; + return h->values[c]; +} + +// bias[n] = (-1<code_bits < n) stbi__grow_buffer_unsafe(j); + if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing + + sgn = j->code_buffer >> 31; // sign bit always in MSB; 0 if MSB clear (positive), 1 if MSB set (negative) + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k + (stbi__jbias[n] & (sgn - 1)); +} + +// get some unsigned bits +stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n) +{ + unsigned int k; + if (j->code_bits < n) stbi__grow_buffer_unsafe(j); + if (j->code_bits < n) return 0; // ran out of bits from stream, return 0s intead of continuing + k = stbi_lrot(j->code_buffer, n); + j->code_buffer = k & ~stbi__bmask[n]; + k &= stbi__bmask[n]; + j->code_bits -= n; + return k; +} + +stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j) +{ + unsigned int k; + if (j->code_bits < 1) stbi__grow_buffer_unsafe(j); + if (j->code_bits < 1) return 0; // ran out of bits from stream, return 0s intead of continuing + k = j->code_buffer; + j->code_buffer <<= 1; + --j->code_bits; + return k & 0x80000000; +} + +// given a value that's at position X in the zigzag stream, +// where does it appear in the 8x8 matrix coded as row-major? +static const stbi_uc stbi__jpeg_dezigzag[64+15] = +{ + 0, 1, 8, 16, 9, 2, 3, 10, + 17, 24, 32, 25, 18, 11, 4, 5, + 12, 19, 26, 33, 40, 48, 41, 34, + 27, 20, 13, 6, 7, 14, 21, 28, + 35, 42, 49, 56, 57, 50, 43, 36, + 29, 22, 15, 23, 30, 37, 44, 51, + 58, 59, 52, 45, 38, 31, 39, 46, + 53, 60, 61, 54, 47, 55, 62, 63, + // let corrupt input sample past end + 63, 63, 63, 63, 63, 63, 63, 63, + 63, 63, 63, 63, 63, 63, 63 +}; + +// decode one 64-entry block-- +static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant) +{ + int diff,dc,k; + int t; + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0 || t > 15) return stbi__err("bad huffman code","Corrupt JPEG"); + + // 0 all the ac values now so we can do it 32-bits at a time + memset(data,0,64*sizeof(data[0])); + + diff = t ? stbi__extend_receive(j, t) : 0; + if (!stbi__addints_valid(j->img_comp[b].dc_pred, diff)) return stbi__err("bad delta","Corrupt JPEG"); + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + if (!stbi__mul2shorts_valid(dc, dequant[0])) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + data[0] = (short) (dc * dequant[0]); + + // decode AC components, see JPEG spec + k = 1; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available"); + j->code_buffer <<= s; + j->code_bits -= s; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * dequant[zig]); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (rs != 0xf0) break; // end block + k += 16; + } else { + k += r; + // decode into unzigzag'd location + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]); + } + } + } while (k < 64); + return 1; +} + +static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b) +{ + int diff,dc; + int t; + if (j->spec_end != 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + + if (j->succ_high == 0) { + // first scan for DC coefficient, must be first + memset(data,0,64*sizeof(data[0])); // 0 all the ac values now + t = stbi__jpeg_huff_decode(j, hdc); + if (t < 0 || t > 15) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + diff = t ? stbi__extend_receive(j, t) : 0; + + if (!stbi__addints_valid(j->img_comp[b].dc_pred, diff)) return stbi__err("bad delta", "Corrupt JPEG"); + dc = j->img_comp[b].dc_pred + diff; + j->img_comp[b].dc_pred = dc; + if (!stbi__mul2shorts_valid(dc, 1 << j->succ_low)) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + data[0] = (short) (dc * (1 << j->succ_low)); + } else { + // refinement scan for DC coefficient + if (stbi__jpeg_get_bit(j)) + data[0] += (short) (1 << j->succ_low); + } + return 1; +} + +// @OPTIMIZE: store non-zigzagged during the decode passes, +// and only de-zigzag when dequantizing +static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac) +{ + int k; + if (j->spec_start == 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG"); + + if (j->succ_high == 0) { + int shift = j->succ_low; + + if (j->eob_run) { + --j->eob_run; + return 1; + } + + k = j->spec_start; + do { + unsigned int zig; + int c,r,s; + if (j->code_bits < 16) stbi__grow_buffer_unsafe(j); + c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1); + r = fac[c]; + if (r) { // fast-AC path + k += (r >> 4) & 15; // run + s = r & 15; // combined length + if (s > j->code_bits) return stbi__err("bad huffman code", "Combined length longer than code bits available"); + j->code_buffer <<= s; + j->code_bits -= s; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) ((r >> 8) * (1 << shift)); + } else { + int rs = stbi__jpeg_huff_decode(j, hac); + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r); + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + --j->eob_run; + break; + } + k += 16; + } else { + k += r; + zig = stbi__jpeg_dezigzag[k++]; + data[zig] = (short) (stbi__extend_receive(j,s) * (1 << shift)); + } + } + } while (k <= j->spec_end); + } else { + // refinement scan for these AC coefficients + + short bit = (short) (1 << j->succ_low); + + if (j->eob_run) { + --j->eob_run; + for (k = j->spec_start; k <= j->spec_end; ++k) { + short *p = &data[stbi__jpeg_dezigzag[k]]; + if (*p != 0) + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } + } else { + k = j->spec_start; + do { + int r,s; + int rs = stbi__jpeg_huff_decode(j, hac); // @OPTIMIZE see if we can use the fast path here, advance-by-r is so slow, eh + if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG"); + s = rs & 15; + r = rs >> 4; + if (s == 0) { + if (r < 15) { + j->eob_run = (1 << r) - 1; + if (r) + j->eob_run += stbi__jpeg_get_bits(j, r); + r = 64; // force end of block + } else { + // r=15 s=0 should write 16 0s, so we just do + // a run of 15 0s and then write s (which is 0), + // so we don't have to do anything special here + } + } else { + if (s != 1) return stbi__err("bad huffman code", "Corrupt JPEG"); + // sign bit + if (stbi__jpeg_get_bit(j)) + s = bit; + else + s = -bit; + } + + // advance by r + while (k <= j->spec_end) { + short *p = &data[stbi__jpeg_dezigzag[k++]]; + if (*p != 0) { + if (stbi__jpeg_get_bit(j)) + if ((*p & bit)==0) { + if (*p > 0) + *p += bit; + else + *p -= bit; + } + } else { + if (r == 0) { + *p = (short) s; + break; + } + --r; + } + } + } while (k <= j->spec_end); + } + } + return 1; +} + +// take a -128..127 value and stbi__clamp it and convert to 0..255 +stbi_inline static stbi_uc stbi__clamp(int x) +{ + // trick to use a single test to catch both cases + if ((unsigned int) x > 255) { + if (x < 0) return 0; + if (x > 255) return 255; + } + return (stbi_uc) x; +} + +#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5))) +#define stbi__fsh(x) ((x) * 4096) + +// derived from jidctint -- DCT_ISLOW +#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \ + int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \ + p2 = s2; \ + p3 = s6; \ + p1 = (p2+p3) * stbi__f2f(0.5411961f); \ + t2 = p1 + p3*stbi__f2f(-1.847759065f); \ + t3 = p1 + p2*stbi__f2f( 0.765366865f); \ + p2 = s0; \ + p3 = s4; \ + t0 = stbi__fsh(p2+p3); \ + t1 = stbi__fsh(p2-p3); \ + x0 = t0+t3; \ + x3 = t0-t3; \ + x1 = t1+t2; \ + x2 = t1-t2; \ + t0 = s7; \ + t1 = s5; \ + t2 = s3; \ + t3 = s1; \ + p3 = t0+t2; \ + p4 = t1+t3; \ + p1 = t0+t3; \ + p2 = t1+t2; \ + p5 = (p3+p4)*stbi__f2f( 1.175875602f); \ + t0 = t0*stbi__f2f( 0.298631336f); \ + t1 = t1*stbi__f2f( 2.053119869f); \ + t2 = t2*stbi__f2f( 3.072711026f); \ + t3 = t3*stbi__f2f( 1.501321110f); \ + p1 = p5 + p1*stbi__f2f(-0.899976223f); \ + p2 = p5 + p2*stbi__f2f(-2.562915447f); \ + p3 = p3*stbi__f2f(-1.961570560f); \ + p4 = p4*stbi__f2f(-0.390180644f); \ + t3 += p1+p4; \ + t2 += p2+p3; \ + t1 += p2+p4; \ + t0 += p1+p3; + +static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64]) +{ + int i,val[64],*v=val; + stbi_uc *o; + short *d = data; + + // columns + for (i=0; i < 8; ++i,++d, ++v) { + // if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing + if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0 + && d[40]==0 && d[48]==0 && d[56]==0) { + // no shortcut 0 seconds + // (1|2|3|4|5|6|7)==0 0 seconds + // all separate -0.047 seconds + // 1 && 2|3 && 4|5 && 6|7: -0.047 seconds + int dcterm = d[0]*4; + v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm; + } else { + STBI__IDCT_1D(d[ 0],d[ 8],d[16],d[24],d[32],d[40],d[48],d[56]) + // constants scaled things up by 1<<12; let's bring them back + // down, but keep 2 extra bits of precision + x0 += 512; x1 += 512; x2 += 512; x3 += 512; + v[ 0] = (x0+t3) >> 10; + v[56] = (x0-t3) >> 10; + v[ 8] = (x1+t2) >> 10; + v[48] = (x1-t2) >> 10; + v[16] = (x2+t1) >> 10; + v[40] = (x2-t1) >> 10; + v[24] = (x3+t0) >> 10; + v[32] = (x3-t0) >> 10; + } + } + + for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) { + // no fast case since the first 1D IDCT spread components out + STBI__IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7]) + // constants scaled things up by 1<<12, plus we had 1<<2 from first + // loop, plus horizontal and vertical each scale by sqrt(8) so together + // we've got an extra 1<<3, so 1<<17 total we need to remove. + // so we want to round that, which means adding 0.5 * 1<<17, + // aka 65536. Also, we'll end up with -128 to 127 that we want + // to encode as 0..255 by adding 128, so we'll add that before the shift + x0 += 65536 + (128<<17); + x1 += 65536 + (128<<17); + x2 += 65536 + (128<<17); + x3 += 65536 + (128<<17); + // tried computing the shifts into temps, or'ing the temps to see + // if any were out of range, but that was slower + o[0] = stbi__clamp((x0+t3) >> 17); + o[7] = stbi__clamp((x0-t3) >> 17); + o[1] = stbi__clamp((x1+t2) >> 17); + o[6] = stbi__clamp((x1-t2) >> 17); + o[2] = stbi__clamp((x2+t1) >> 17); + o[5] = stbi__clamp((x2-t1) >> 17); + o[3] = stbi__clamp((x3+t0) >> 17); + o[4] = stbi__clamp((x3-t0) >> 17); + } +} + +#ifdef STBI_SSE2 +// sse2 integer IDCT. not the fastest possible implementation but it +// produces bit-identical results to the generic C version so it's +// fully "transparent". +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + // This is constructed to match our regular (generic) integer IDCT exactly. + __m128i row0, row1, row2, row3, row4, row5, row6, row7; + __m128i tmp; + + // dot product constant: even elems=x, odd elems=y + #define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y)) + + // out(0) = c0[even]*x + c0[odd]*y (c0, x, y 16-bit, out 32-bit) + // out(1) = c1[even]*x + c1[odd]*y + #define dct_rot(out0,out1, x,y,c0,c1) \ + __m128i c0##lo = _mm_unpacklo_epi16((x),(y)); \ + __m128i c0##hi = _mm_unpackhi_epi16((x),(y)); \ + __m128i out0##_l = _mm_madd_epi16(c0##lo, c0); \ + __m128i out0##_h = _mm_madd_epi16(c0##hi, c0); \ + __m128i out1##_l = _mm_madd_epi16(c0##lo, c1); \ + __m128i out1##_h = _mm_madd_epi16(c0##hi, c1) + + // out = in << 12 (in 16-bit, out 32-bit) + #define dct_widen(out, in) \ + __m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); \ + __m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4) + + // wide add + #define dct_wadd(out, a, b) \ + __m128i out##_l = _mm_add_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_add_epi32(a##_h, b##_h) + + // wide sub + #define dct_wsub(out, a, b) \ + __m128i out##_l = _mm_sub_epi32(a##_l, b##_l); \ + __m128i out##_h = _mm_sub_epi32(a##_h, b##_h) + + // butterfly a/b, add bias, then shift by "s" and pack + #define dct_bfly32o(out0, out1, a,b,bias,s) \ + { \ + __m128i abiased_l = _mm_add_epi32(a##_l, bias); \ + __m128i abiased_h = _mm_add_epi32(a##_h, bias); \ + dct_wadd(sum, abiased, b); \ + dct_wsub(dif, abiased, b); \ + out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); \ + out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); \ + } + + // 8-bit interleave step (for transposes) + #define dct_interleave8(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi8(a, b); \ + b = _mm_unpackhi_epi8(tmp, b) + + // 16-bit interleave step (for transposes) + #define dct_interleave16(a, b) \ + tmp = a; \ + a = _mm_unpacklo_epi16(a, b); \ + b = _mm_unpackhi_epi16(tmp, b) + + #define dct_pass(bias,shift) \ + { \ + /* even part */ \ + dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); \ + __m128i sum04 = _mm_add_epi16(row0, row4); \ + __m128i dif04 = _mm_sub_epi16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); \ + dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); \ + __m128i sum17 = _mm_add_epi16(row1, row7); \ + __m128i sum35 = _mm_add_epi16(row3, row5); \ + dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); \ + dct_wadd(x4, y0o, y4o); \ + dct_wadd(x5, y1o, y5o); \ + dct_wadd(x6, y2o, y5o); \ + dct_wadd(x7, y3o, y4o); \ + dct_bfly32o(row0,row7, x0,x7,bias,shift); \ + dct_bfly32o(row1,row6, x1,x6,bias,shift); \ + dct_bfly32o(row2,row5, x2,x5,bias,shift); \ + dct_bfly32o(row3,row4, x3,x4,bias,shift); \ + } + + __m128i rot0_0 = dct_const(stbi__f2f(0.5411961f), stbi__f2f(0.5411961f) + stbi__f2f(-1.847759065f)); + __m128i rot0_1 = dct_const(stbi__f2f(0.5411961f) + stbi__f2f( 0.765366865f), stbi__f2f(0.5411961f)); + __m128i rot1_0 = dct_const(stbi__f2f(1.175875602f) + stbi__f2f(-0.899976223f), stbi__f2f(1.175875602f)); + __m128i rot1_1 = dct_const(stbi__f2f(1.175875602f), stbi__f2f(1.175875602f) + stbi__f2f(-2.562915447f)); + __m128i rot2_0 = dct_const(stbi__f2f(-1.961570560f) + stbi__f2f( 0.298631336f), stbi__f2f(-1.961570560f)); + __m128i rot2_1 = dct_const(stbi__f2f(-1.961570560f), stbi__f2f(-1.961570560f) + stbi__f2f( 3.072711026f)); + __m128i rot3_0 = dct_const(stbi__f2f(-0.390180644f) + stbi__f2f( 2.053119869f), stbi__f2f(-0.390180644f)); + __m128i rot3_1 = dct_const(stbi__f2f(-0.390180644f), stbi__f2f(-0.390180644f) + stbi__f2f( 1.501321110f)); + + // rounding biases in column/row passes, see stbi__idct_block for explanation. + __m128i bias_0 = _mm_set1_epi32(512); + __m128i bias_1 = _mm_set1_epi32(65536 + (128<<17)); + + // load + row0 = _mm_load_si128((const __m128i *) (data + 0*8)); + row1 = _mm_load_si128((const __m128i *) (data + 1*8)); + row2 = _mm_load_si128((const __m128i *) (data + 2*8)); + row3 = _mm_load_si128((const __m128i *) (data + 3*8)); + row4 = _mm_load_si128((const __m128i *) (data + 4*8)); + row5 = _mm_load_si128((const __m128i *) (data + 5*8)); + row6 = _mm_load_si128((const __m128i *) (data + 6*8)); + row7 = _mm_load_si128((const __m128i *) (data + 7*8)); + + // column pass + dct_pass(bias_0, 10); + + { + // 16bit 8x8 transpose pass 1 + dct_interleave16(row0, row4); + dct_interleave16(row1, row5); + dct_interleave16(row2, row6); + dct_interleave16(row3, row7); + + // transpose pass 2 + dct_interleave16(row0, row2); + dct_interleave16(row1, row3); + dct_interleave16(row4, row6); + dct_interleave16(row5, row7); + + // transpose pass 3 + dct_interleave16(row0, row1); + dct_interleave16(row2, row3); + dct_interleave16(row4, row5); + dct_interleave16(row6, row7); + } + + // row pass + dct_pass(bias_1, 17); + + { + // pack + __m128i p0 = _mm_packus_epi16(row0, row1); // a0a1a2a3...a7b0b1b2b3...b7 + __m128i p1 = _mm_packus_epi16(row2, row3); + __m128i p2 = _mm_packus_epi16(row4, row5); + __m128i p3 = _mm_packus_epi16(row6, row7); + + // 8bit 8x8 transpose pass 1 + dct_interleave8(p0, p2); // a0e0a1e1... + dct_interleave8(p1, p3); // c0g0c1g1... + + // transpose pass 2 + dct_interleave8(p0, p1); // a0c0e0g0... + dct_interleave8(p2, p3); // b0d0f0h0... + + // transpose pass 3 + dct_interleave8(p0, p2); // a0b0c0d0... + dct_interleave8(p1, p3); // a4b4c4d4... + + // store + _mm_storel_epi64((__m128i *) out, p0); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p0, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p2); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p2, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p1); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p1, 0x4e)); out += out_stride; + _mm_storel_epi64((__m128i *) out, p3); out += out_stride; + _mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p3, 0x4e)); + } + +#undef dct_const +#undef dct_rot +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_interleave8 +#undef dct_interleave16 +#undef dct_pass +} + +#endif // STBI_SSE2 + +#ifdef STBI_NEON + +// NEON integer IDCT. should produce bit-identical +// results to the generic C version. +static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64]) +{ + int16x8_t row0, row1, row2, row3, row4, row5, row6, row7; + + int16x4_t rot0_0 = vdup_n_s16(stbi__f2f(0.5411961f)); + int16x4_t rot0_1 = vdup_n_s16(stbi__f2f(-1.847759065f)); + int16x4_t rot0_2 = vdup_n_s16(stbi__f2f( 0.765366865f)); + int16x4_t rot1_0 = vdup_n_s16(stbi__f2f( 1.175875602f)); + int16x4_t rot1_1 = vdup_n_s16(stbi__f2f(-0.899976223f)); + int16x4_t rot1_2 = vdup_n_s16(stbi__f2f(-2.562915447f)); + int16x4_t rot2_0 = vdup_n_s16(stbi__f2f(-1.961570560f)); + int16x4_t rot2_1 = vdup_n_s16(stbi__f2f(-0.390180644f)); + int16x4_t rot3_0 = vdup_n_s16(stbi__f2f( 0.298631336f)); + int16x4_t rot3_1 = vdup_n_s16(stbi__f2f( 2.053119869f)); + int16x4_t rot3_2 = vdup_n_s16(stbi__f2f( 3.072711026f)); + int16x4_t rot3_3 = vdup_n_s16(stbi__f2f( 1.501321110f)); + +#define dct_long_mul(out, inq, coeff) \ + int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff) + +#define dct_long_mac(out, acc, inq, coeff) \ + int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); \ + int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff) + +#define dct_widen(out, inq) \ + int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); \ + int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12) + +// wide add +#define dct_wadd(out, a, b) \ + int32x4_t out##_l = vaddq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vaddq_s32(a##_h, b##_h) + +// wide sub +#define dct_wsub(out, a, b) \ + int32x4_t out##_l = vsubq_s32(a##_l, b##_l); \ + int32x4_t out##_h = vsubq_s32(a##_h, b##_h) + +// butterfly a/b, then shift using "shiftop" by "s" and pack +#define dct_bfly32o(out0,out1, a,b,shiftop,s) \ + { \ + dct_wadd(sum, a, b); \ + dct_wsub(dif, a, b); \ + out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); \ + out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); \ + } + +#define dct_pass(shiftop, shift) \ + { \ + /* even part */ \ + int16x8_t sum26 = vaddq_s16(row2, row6); \ + dct_long_mul(p1e, sum26, rot0_0); \ + dct_long_mac(t2e, p1e, row6, rot0_1); \ + dct_long_mac(t3e, p1e, row2, rot0_2); \ + int16x8_t sum04 = vaddq_s16(row0, row4); \ + int16x8_t dif04 = vsubq_s16(row0, row4); \ + dct_widen(t0e, sum04); \ + dct_widen(t1e, dif04); \ + dct_wadd(x0, t0e, t3e); \ + dct_wsub(x3, t0e, t3e); \ + dct_wadd(x1, t1e, t2e); \ + dct_wsub(x2, t1e, t2e); \ + /* odd part */ \ + int16x8_t sum15 = vaddq_s16(row1, row5); \ + int16x8_t sum17 = vaddq_s16(row1, row7); \ + int16x8_t sum35 = vaddq_s16(row3, row5); \ + int16x8_t sum37 = vaddq_s16(row3, row7); \ + int16x8_t sumodd = vaddq_s16(sum17, sum35); \ + dct_long_mul(p5o, sumodd, rot1_0); \ + dct_long_mac(p1o, p5o, sum17, rot1_1); \ + dct_long_mac(p2o, p5o, sum35, rot1_2); \ + dct_long_mul(p3o, sum37, rot2_0); \ + dct_long_mul(p4o, sum15, rot2_1); \ + dct_wadd(sump13o, p1o, p3o); \ + dct_wadd(sump24o, p2o, p4o); \ + dct_wadd(sump23o, p2o, p3o); \ + dct_wadd(sump14o, p1o, p4o); \ + dct_long_mac(x4, sump13o, row7, rot3_0); \ + dct_long_mac(x5, sump24o, row5, rot3_1); \ + dct_long_mac(x6, sump23o, row3, rot3_2); \ + dct_long_mac(x7, sump14o, row1, rot3_3); \ + dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \ + dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \ + dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \ + dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \ + } + + // load + row0 = vld1q_s16(data + 0*8); + row1 = vld1q_s16(data + 1*8); + row2 = vld1q_s16(data + 2*8); + row3 = vld1q_s16(data + 3*8); + row4 = vld1q_s16(data + 4*8); + row5 = vld1q_s16(data + 5*8); + row6 = vld1q_s16(data + 6*8); + row7 = vld1q_s16(data + 7*8); + + // add DC bias + row0 = vaddq_s16(row0, vsetq_lane_s16(1024, vdupq_n_s16(0), 0)); + + // column pass + dct_pass(vrshrn_n_s32, 10); + + // 16bit 8x8 transpose + { +// these three map to a single VTRN.16, VTRN.32, and VSWP, respectively. +// whether compilers actually get this is another story, sadly. +#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); } +#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); } + + // pass 1 + dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6 + dct_trn16(row2, row3); + dct_trn16(row4, row5); + dct_trn16(row6, row7); + + // pass 2 + dct_trn32(row0, row2); // a0b0c0d0a4b4c4d4 + dct_trn32(row1, row3); + dct_trn32(row4, row6); + dct_trn32(row5, row7); + + // pass 3 + dct_trn64(row0, row4); // a0b0c0d0e0f0g0h0 + dct_trn64(row1, row5); + dct_trn64(row2, row6); + dct_trn64(row3, row7); + +#undef dct_trn16 +#undef dct_trn32 +#undef dct_trn64 + } + + // row pass + // vrshrn_n_s32 only supports shifts up to 16, we need + // 17. so do a non-rounding shift of 16 first then follow + // up with a rounding shift by 1. + dct_pass(vshrn_n_s32, 16); + + { + // pack and round + uint8x8_t p0 = vqrshrun_n_s16(row0, 1); + uint8x8_t p1 = vqrshrun_n_s16(row1, 1); + uint8x8_t p2 = vqrshrun_n_s16(row2, 1); + uint8x8_t p3 = vqrshrun_n_s16(row3, 1); + uint8x8_t p4 = vqrshrun_n_s16(row4, 1); + uint8x8_t p5 = vqrshrun_n_s16(row5, 1); + uint8x8_t p6 = vqrshrun_n_s16(row6, 1); + uint8x8_t p7 = vqrshrun_n_s16(row7, 1); + + // again, these can translate into one instruction, but often don't. +#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; } +#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); } +#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); } + + // sadly can't use interleaved stores here since we only write + // 8 bytes to each scan line! + + // 8x8 8-bit transpose pass 1 + dct_trn8_8(p0, p1); + dct_trn8_8(p2, p3); + dct_trn8_8(p4, p5); + dct_trn8_8(p6, p7); + + // pass 2 + dct_trn8_16(p0, p2); + dct_trn8_16(p1, p3); + dct_trn8_16(p4, p6); + dct_trn8_16(p5, p7); + + // pass 3 + dct_trn8_32(p0, p4); + dct_trn8_32(p1, p5); + dct_trn8_32(p2, p6); + dct_trn8_32(p3, p7); + + // store + vst1_u8(out, p0); out += out_stride; + vst1_u8(out, p1); out += out_stride; + vst1_u8(out, p2); out += out_stride; + vst1_u8(out, p3); out += out_stride; + vst1_u8(out, p4); out += out_stride; + vst1_u8(out, p5); out += out_stride; + vst1_u8(out, p6); out += out_stride; + vst1_u8(out, p7); + +#undef dct_trn8_8 +#undef dct_trn8_16 +#undef dct_trn8_32 + } + +#undef dct_long_mul +#undef dct_long_mac +#undef dct_widen +#undef dct_wadd +#undef dct_wsub +#undef dct_bfly32o +#undef dct_pass +} + +#endif // STBI_NEON + +#define STBI__MARKER_none 0xff +// if there's a pending marker from the entropy stream, return that +// otherwise, fetch from the stream and get a marker. if there's no +// marker, return 0xff, which is never a valid marker value +static stbi_uc stbi__get_marker(stbi__jpeg *j) +{ + stbi_uc x; + if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; } + x = stbi__get8(j->s); + if (x != 0xff) return STBI__MARKER_none; + while (x == 0xff) + x = stbi__get8(j->s); // consume repeated 0xff fill bytes + return x; +} + +// in each scan, we'll have scan_n components, and the order +// of the components is specified by order[] +#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7) + +// after a restart interval, stbi__jpeg_reset the entropy decoder and +// the dc prediction +static void stbi__jpeg_reset(stbi__jpeg *j) +{ + j->code_bits = 0; + j->code_buffer = 0; + j->nomore = 0; + j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0; + j->marker = STBI__MARKER_none; + j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; + j->eob_run = 0; + // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, + // since we don't even allow 1<<30 pixels +} + +static int stbi__parse_entropy_coded_data(stbi__jpeg *z) +{ + stbi__jpeg_reset(z); + if (!z->progressive) { + if (z->scan_n == 1) { + int i,j; + STBI_SIMD_ALIGN(short, data[64]); + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + // if it's NOT a restart, then just bail, so we get corrupt data + // rather than no data + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + STBI_SIMD_ALIGN(short, data[64]); + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x)*8; + int y2 = (j*z->img_comp[n].v + y)*8; + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0; + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data); + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } else { + if (z->scan_n == 1) { + int i,j; + int n = z->order[0]; + // non-interleaved data, we just need to process one block at a time, + // in trivial scanline order + // number of blocks to do just depends on how many actual "pixels" this + // component has, independent of interleaved MCU blocking and such + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + if (z->spec_start == 0) { + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } else { + int ha = z->img_comp[n].ha; + if (!stbi__jpeg_decode_block_prog_ac(z, data, &z->huff_ac[ha], z->fast_ac[ha])) + return 0; + } + // every data block is an MCU, so countdown the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } else { // interleaved + int i,j,k,x,y; + for (j=0; j < z->img_mcu_y; ++j) { + for (i=0; i < z->img_mcu_x; ++i) { + // scan an interleaved mcu... process scan_n components in order + for (k=0; k < z->scan_n; ++k) { + int n = z->order[k]; + // scan out an mcu's worth of this component; that's just determined + // by the basic H and V specified for the component + for (y=0; y < z->img_comp[n].v; ++y) { + for (x=0; x < z->img_comp[n].h; ++x) { + int x2 = (i*z->img_comp[n].h + x); + int y2 = (j*z->img_comp[n].v + y); + short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w); + if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n)) + return 0; + } + } + } + // after all interleaved components, that's an interleaved MCU, + // so now count down the restart interval + if (--z->todo <= 0) { + if (z->code_bits < 24) stbi__grow_buffer_unsafe(z); + if (!STBI__RESTART(z->marker)) return 1; + stbi__jpeg_reset(z); + } + } + } + return 1; + } + } +} + +static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant) +{ + int i; + for (i=0; i < 64; ++i) + data[i] *= dequant[i]; +} + +static void stbi__jpeg_finish(stbi__jpeg *z) +{ + if (z->progressive) { + // dequantize and idct the data + int i,j,n; + for (n=0; n < z->s->img_n; ++n) { + int w = (z->img_comp[n].x+7) >> 3; + int h = (z->img_comp[n].y+7) >> 3; + for (j=0; j < h; ++j) { + for (i=0; i < w; ++i) { + short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w); + stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]); + z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data); + } + } + } + } +} + +static int stbi__process_marker(stbi__jpeg *z, int m) +{ + int L; + switch (m) { + case STBI__MARKER_none: // no marker found + return stbi__err("expected marker","Corrupt JPEG"); + + case 0xDD: // DRI - specify restart interval + if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG"); + z->restart_interval = stbi__get16be(z->s); + return 1; + + case 0xDB: // DQT - define quantization table + L = stbi__get16be(z->s)-2; + while (L > 0) { + int q = stbi__get8(z->s); + int p = q >> 4, sixteen = (p != 0); + int t = q & 15,i; + if (p != 0 && p != 1) return stbi__err("bad DQT type","Corrupt JPEG"); + if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG"); + + for (i=0; i < 64; ++i) + z->dequant[t][stbi__jpeg_dezigzag[i]] = (stbi__uint16)(sixteen ? stbi__get16be(z->s) : stbi__get8(z->s)); + L -= (sixteen ? 129 : 65); + } + return L==0; + + case 0xC4: // DHT - define huffman table + L = stbi__get16be(z->s)-2; + while (L > 0) { + stbi_uc *v; + int sizes[16],i,n=0; + int q = stbi__get8(z->s); + int tc = q >> 4; + int th = q & 15; + if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG"); + for (i=0; i < 16; ++i) { + sizes[i] = stbi__get8(z->s); + n += sizes[i]; + } + if(n > 256) return stbi__err("bad DHT header","Corrupt JPEG"); // Loop over i < n would write past end of values! + L -= 17; + if (tc == 0) { + if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0; + v = z->huff_dc[th].values; + } else { + if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0; + v = z->huff_ac[th].values; + } + for (i=0; i < n; ++i) + v[i] = stbi__get8(z->s); + if (tc != 0) + stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th); + L -= n; + } + return L==0; + } + + // check for comment block or APP blocks + if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) { + L = stbi__get16be(z->s); + if (L < 2) { + if (m == 0xFE) + return stbi__err("bad COM len","Corrupt JPEG"); + else + return stbi__err("bad APP len","Corrupt JPEG"); + } + L -= 2; + + if (m == 0xE0 && L >= 5) { // JFIF APP0 segment + static const unsigned char tag[5] = {'J','F','I','F','\0'}; + int ok = 1; + int i; + for (i=0; i < 5; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 5; + if (ok) + z->jfif = 1; + } else if (m == 0xEE && L >= 12) { // Adobe APP14 segment + static const unsigned char tag[6] = {'A','d','o','b','e','\0'}; + int ok = 1; + int i; + for (i=0; i < 6; ++i) + if (stbi__get8(z->s) != tag[i]) + ok = 0; + L -= 6; + if (ok) { + stbi__get8(z->s); // version + stbi__get16be(z->s); // flags0 + stbi__get16be(z->s); // flags1 + z->app14_color_transform = stbi__get8(z->s); // color transform + L -= 6; + } + } + + stbi__skip(z->s, L); + return 1; + } + + return stbi__err("unknown marker","Corrupt JPEG"); +} + +// after we see SOS +static int stbi__process_scan_header(stbi__jpeg *z) +{ + int i; + int Ls = stbi__get16be(z->s); + z->scan_n = stbi__get8(z->s); + if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG"); + if (Ls != 6+2*z->scan_n) return stbi__err("bad SOS len","Corrupt JPEG"); + for (i=0; i < z->scan_n; ++i) { + int id = stbi__get8(z->s), which; + int q = stbi__get8(z->s); + for (which = 0; which < z->s->img_n; ++which) + if (z->img_comp[which].id == id) + break; + if (which == z->s->img_n) return 0; // no match + z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","Corrupt JPEG"); + z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","Corrupt JPEG"); + z->order[i] = which; + } + + { + int aa; + z->spec_start = stbi__get8(z->s); + z->spec_end = stbi__get8(z->s); // should be 63, but might be 0 + aa = stbi__get8(z->s); + z->succ_high = (aa >> 4); + z->succ_low = (aa & 15); + if (z->progressive) { + if (z->spec_start > 63 || z->spec_end > 63 || z->spec_start > z->spec_end || z->succ_high > 13 || z->succ_low > 13) + return stbi__err("bad SOS", "Corrupt JPEG"); + } else { + if (z->spec_start != 0) return stbi__err("bad SOS","Corrupt JPEG"); + if (z->succ_high != 0 || z->succ_low != 0) return stbi__err("bad SOS","Corrupt JPEG"); + z->spec_end = 63; + } + } + + return 1; +} + +static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why) +{ + int i; + for (i=0; i < ncomp; ++i) { + if (z->img_comp[i].raw_data) { + STBI_FREE(z->img_comp[i].raw_data); + z->img_comp[i].raw_data = NULL; + z->img_comp[i].data = NULL; + } + if (z->img_comp[i].raw_coeff) { + STBI_FREE(z->img_comp[i].raw_coeff); + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].coeff = 0; + } + if (z->img_comp[i].linebuf) { + STBI_FREE(z->img_comp[i].linebuf); + z->img_comp[i].linebuf = NULL; + } + } + return why; +} + +static int stbi__process_frame_header(stbi__jpeg *z, int scan) +{ + stbi__context *s = z->s; + int Lf,p,i,q, h_max=1,v_max=1,c; + Lf = stbi__get16be(s); if (Lf < 11) return stbi__err("bad SOF len","Corrupt JPEG"); // JPEG + p = stbi__get8(s); if (p != 8) return stbi__err("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline + s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG + s->img_x = stbi__get16be(s); if (s->img_x == 0) return stbi__err("0 width","Corrupt JPEG"); // JPEG requires + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + c = stbi__get8(s); + if (c != 3 && c != 1 && c != 4) return stbi__err("bad component count","Corrupt JPEG"); + s->img_n = c; + for (i=0; i < c; ++i) { + z->img_comp[i].data = NULL; + z->img_comp[i].linebuf = NULL; + } + + if (Lf != 8+3*s->img_n) return stbi__err("bad SOF len","Corrupt JPEG"); + + z->rgb = 0; + for (i=0; i < s->img_n; ++i) { + static const unsigned char rgb[3] = { 'R', 'G', 'B' }; + z->img_comp[i].id = stbi__get8(s); + if (s->img_n == 3 && z->img_comp[i].id == rgb[i]) + ++z->rgb; + q = stbi__get8(s); + z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad H","Corrupt JPEG"); + z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad V","Corrupt JPEG"); + z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt JPEG"); + } + + if (scan != STBI__SCAN_load) return 1; + + if (!stbi__mad3sizes_valid(s->img_x, s->img_y, s->img_n, 0)) return stbi__err("too large", "Image too large to decode"); + + for (i=0; i < s->img_n; ++i) { + if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h; + if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v; + } + + // check that plane subsampling factors are integer ratios; our resamplers can't deal with fractional ratios + // and I've never seen a non-corrupted JPEG file actually use them + for (i=0; i < s->img_n; ++i) { + if (h_max % z->img_comp[i].h != 0) return stbi__err("bad H","Corrupt JPEG"); + if (v_max % z->img_comp[i].v != 0) return stbi__err("bad V","Corrupt JPEG"); + } + + // compute interleaved mcu info + z->img_h_max = h_max; + z->img_v_max = v_max; + z->img_mcu_w = h_max * 8; + z->img_mcu_h = v_max * 8; + // these sizes can't be more than 17 bits + z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w; + z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h; + + for (i=0; i < s->img_n; ++i) { + // number of effective pixels (e.g. for non-interleaved MCU) + z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max; + z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max; + // to simplify generation, we'll allocate enough memory to decode + // the bogus oversized data from using interleaved MCUs and their + // big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't + // discard the extra data until colorspace conversion + // + // img_mcu_x, img_mcu_y: <=17 bits; comp[i].h and .v are <=4 (checked earlier) + // so these muls can't overflow with 32-bit ints (which we require) + z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8; + z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8; + z->img_comp[i].coeff = 0; + z->img_comp[i].raw_coeff = 0; + z->img_comp[i].linebuf = NULL; + z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15); + if (z->img_comp[i].raw_data == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + // align blocks for idct using mmx/sse + z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15); + if (z->progressive) { + // w2, h2 are multiples of 8 (see above) + z->img_comp[i].coeff_w = z->img_comp[i].w2 / 8; + z->img_comp[i].coeff_h = z->img_comp[i].h2 / 8; + z->img_comp[i].raw_coeff = stbi__malloc_mad3(z->img_comp[i].w2, z->img_comp[i].h2, sizeof(short), 15); + if (z->img_comp[i].raw_coeff == NULL) + return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory")); + z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15); + } + } + + return 1; +} + +// use comparisons since in some cases we handle more than one case (e.g. SOF) +#define stbi__DNL(x) ((x) == 0xdc) +#define stbi__SOI(x) ((x) == 0xd8) +#define stbi__EOI(x) ((x) == 0xd9) +#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2) +#define stbi__SOS(x) ((x) == 0xda) + +#define stbi__SOF_progressive(x) ((x) == 0xc2) + +static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan) +{ + int m; + z->jfif = 0; + z->app14_color_transform = -1; // valid values are 0,1,2 + z->marker = STBI__MARKER_none; // initialize cached marker to empty + m = stbi__get_marker(z); + if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG"); + if (scan == STBI__SCAN_type) return 1; + m = stbi__get_marker(z); + while (!stbi__SOF(m)) { + if (!stbi__process_marker(z,m)) return 0; + m = stbi__get_marker(z); + while (m == STBI__MARKER_none) { + // some files have extra padding after their blocks, so ok, we'll scan + if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG"); + m = stbi__get_marker(z); + } + } + z->progressive = stbi__SOF_progressive(m); + if (!stbi__process_frame_header(z, scan)) return 0; + return 1; +} + +static stbi_uc stbi__skip_jpeg_junk_at_end(stbi__jpeg *j) +{ + // some JPEGs have junk at end, skip over it but if we find what looks + // like a valid marker, resume there + while (!stbi__at_eof(j->s)) { + stbi_uc x = stbi__get8(j->s); + while (x == 0xff) { // might be a marker + if (stbi__at_eof(j->s)) return STBI__MARKER_none; + x = stbi__get8(j->s); + if (x != 0x00 && x != 0xff) { + // not a stuffed zero or lead-in to another marker, looks + // like an actual marker, return it + return x; + } + // stuffed zero has x=0 now which ends the loop, meaning we go + // back to regular scan loop. + // repeated 0xff keeps trying to read the next byte of the marker. + } + } + return STBI__MARKER_none; +} + +// decode image to YCbCr format +static int stbi__decode_jpeg_image(stbi__jpeg *j) +{ + int m; + for (m = 0; m < 4; m++) { + j->img_comp[m].raw_data = NULL; + j->img_comp[m].raw_coeff = NULL; + } + j->restart_interval = 0; + if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0; + m = stbi__get_marker(j); + while (!stbi__EOI(m)) { + if (stbi__SOS(m)) { + if (!stbi__process_scan_header(j)) return 0; + if (!stbi__parse_entropy_coded_data(j)) return 0; + if (j->marker == STBI__MARKER_none ) { + j->marker = stbi__skip_jpeg_junk_at_end(j); + // if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0 + } + m = stbi__get_marker(j); + if (STBI__RESTART(m)) + m = stbi__get_marker(j); + } else if (stbi__DNL(m)) { + int Ld = stbi__get16be(j->s); + stbi__uint32 NL = stbi__get16be(j->s); + if (Ld != 4) return stbi__err("bad DNL len", "Corrupt JPEG"); + if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG"); + m = stbi__get_marker(j); + } else { + if (!stbi__process_marker(j, m)) return 1; + m = stbi__get_marker(j); + } + } + if (j->progressive) + stbi__jpeg_finish(j); + return 1; +} + +// static jfif-centered resampling (across block boundaries) + +typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1, + int w, int hs); + +#define stbi__div4(x) ((stbi_uc) ((x) >> 2)) + +static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + STBI_NOTUSED(out); + STBI_NOTUSED(in_far); + STBI_NOTUSED(w); + STBI_NOTUSED(hs); + return in_near; +} + +static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples vertically for every one in input + int i; + STBI_NOTUSED(hs); + for (i=0; i < w; ++i) + out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2); + return out; +} + +static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate two samples horizontally for every one in input + int i; + stbi_uc *input = in_near; + + if (w == 1) { + // if only one sample, can't do any interpolation + out[0] = out[1] = input[0]; + return out; + } + + out[0] = input[0]; + out[1] = stbi__div4(input[0]*3 + input[1] + 2); + for (i=1; i < w-1; ++i) { + int n = 3*input[i]+2; + out[i*2+0] = stbi__div4(n+input[i-1]); + out[i*2+1] = stbi__div4(n+input[i+1]); + } + out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2); + out[i*2+1] = input[w-1]; + + STBI_NOTUSED(in_far); + STBI_NOTUSED(hs); + + return out; +} + +#define stbi__div16(x) ((stbi_uc) ((x) >> 4)) + +static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i,t0,t1; + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + out[0] = stbi__div4(t1+2); + for (i=1; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // need to generate 2x2 samples for every one in input + int i=0,t0,t1; + + if (w == 1) { + out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2); + return out; + } + + t1 = 3*in_near[0] + in_far[0]; + // process groups of 8 pixels for as long as we can. + // note we can't handle the last pixel in a row in this loop + // because we need to handle the filter boundary conditions. + for (; i < ((w-1) & ~7); i += 8) { +#if defined(STBI_SSE2) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + __m128i zero = _mm_setzero_si128(); + __m128i farb = _mm_loadl_epi64((__m128i *) (in_far + i)); + __m128i nearb = _mm_loadl_epi64((__m128i *) (in_near + i)); + __m128i farw = _mm_unpacklo_epi8(farb, zero); + __m128i nearw = _mm_unpacklo_epi8(nearb, zero); + __m128i diff = _mm_sub_epi16(farw, nearw); + __m128i nears = _mm_slli_epi16(nearw, 2); + __m128i curr = _mm_add_epi16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + __m128i prv0 = _mm_slli_si128(curr, 2); + __m128i nxt0 = _mm_srli_si128(curr, 2); + __m128i prev = _mm_insert_epi16(prv0, t1, 0); + __m128i next = _mm_insert_epi16(nxt0, 3*in_near[i+8] + in_far[i+8], 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + __m128i bias = _mm_set1_epi16(8); + __m128i curs = _mm_slli_epi16(curr, 2); + __m128i prvd = _mm_sub_epi16(prev, curr); + __m128i nxtd = _mm_sub_epi16(next, curr); + __m128i curb = _mm_add_epi16(curs, bias); + __m128i even = _mm_add_epi16(prvd, curb); + __m128i odd = _mm_add_epi16(nxtd, curb); + + // interleave even and odd pixels, then undo scaling. + __m128i int0 = _mm_unpacklo_epi16(even, odd); + __m128i int1 = _mm_unpackhi_epi16(even, odd); + __m128i de0 = _mm_srli_epi16(int0, 4); + __m128i de1 = _mm_srli_epi16(int1, 4); + + // pack and write output + __m128i outv = _mm_packus_epi16(de0, de1); + _mm_storeu_si128((__m128i *) (out + i*2), outv); +#elif defined(STBI_NEON) + // load and perform the vertical filtering pass + // this uses 3*x + y = 4*x + (y - x) + uint8x8_t farb = vld1_u8(in_far + i); + uint8x8_t nearb = vld1_u8(in_near + i); + int16x8_t diff = vreinterpretq_s16_u16(vsubl_u8(farb, nearb)); + int16x8_t nears = vreinterpretq_s16_u16(vshll_n_u8(nearb, 2)); + int16x8_t curr = vaddq_s16(nears, diff); // current row + + // horizontal filter works the same based on shifted vers of current + // row. "prev" is current row shifted right by 1 pixel; we need to + // insert the previous pixel value (from t1). + // "next" is current row shifted left by 1 pixel, with first pixel + // of next block of 8 pixels added in. + int16x8_t prv0 = vextq_s16(curr, curr, 7); + int16x8_t nxt0 = vextq_s16(curr, curr, 1); + int16x8_t prev = vsetq_lane_s16(t1, prv0, 0); + int16x8_t next = vsetq_lane_s16(3*in_near[i+8] + in_far[i+8], nxt0, 7); + + // horizontal filter, polyphase implementation since it's convenient: + // even pixels = 3*cur + prev = cur*4 + (prev - cur) + // odd pixels = 3*cur + next = cur*4 + (next - cur) + // note the shared term. + int16x8_t curs = vshlq_n_s16(curr, 2); + int16x8_t prvd = vsubq_s16(prev, curr); + int16x8_t nxtd = vsubq_s16(next, curr); + int16x8_t even = vaddq_s16(curs, prvd); + int16x8_t odd = vaddq_s16(curs, nxtd); + + // undo scaling and round, then store with even/odd phases interleaved + uint8x8x2_t o; + o.val[0] = vqrshrun_n_s16(even, 4); + o.val[1] = vqrshrun_n_s16(odd, 4); + vst2_u8(out + i*2, o); +#endif + + // "previous" value for next iter + t1 = 3*in_near[i+7] + in_far[i+7]; + } + + t0 = t1; + t1 = 3*in_near[i] + in_far[i]; + out[i*2] = stbi__div16(3*t1 + t0 + 8); + + for (++i; i < w; ++i) { + t0 = t1; + t1 = 3*in_near[i]+in_far[i]; + out[i*2-1] = stbi__div16(3*t0 + t1 + 8); + out[i*2 ] = stbi__div16(3*t1 + t0 + 8); + } + out[w*2-1] = stbi__div4(t1+2); + + STBI_NOTUSED(hs); + + return out; +} +#endif + +static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs) +{ + // resample with nearest-neighbor + int i,j; + STBI_NOTUSED(in_far); + for (i=0; i < w; ++i) + for (j=0; j < hs; ++j) + out[i*hs+j] = in_near[i]; + return out; +} + +// this is a reduced-precision calculation of YCbCr-to-RGB introduced +// to make sure the code produces the same results in both SIMD and scalar +#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8) +static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step) +{ + int i; + for (i=0; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} + +#if defined(STBI_SSE2) || defined(STBI_NEON) +static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step) +{ + int i = 0; + +#ifdef STBI_SSE2 + // step == 3 is pretty ugly on the final interleave, and i'm not convinced + // it's useful in practice (you wouldn't use it for textures, for example). + // so just accelerate step == 4 case. + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + __m128i signflip = _mm_set1_epi8(-0x80); + __m128i cr_const0 = _mm_set1_epi16( (short) ( 1.40200f*4096.0f+0.5f)); + __m128i cr_const1 = _mm_set1_epi16( - (short) ( 0.71414f*4096.0f+0.5f)); + __m128i cb_const0 = _mm_set1_epi16( - (short) ( 0.34414f*4096.0f+0.5f)); + __m128i cb_const1 = _mm_set1_epi16( (short) ( 1.77200f*4096.0f+0.5f)); + __m128i y_bias = _mm_set1_epi8((char) (unsigned char) 128); + __m128i xw = _mm_set1_epi16(255); // alpha channel + + for (; i+7 < count; i += 8) { + // load + __m128i y_bytes = _mm_loadl_epi64((__m128i *) (y+i)); + __m128i cr_bytes = _mm_loadl_epi64((__m128i *) (pcr+i)); + __m128i cb_bytes = _mm_loadl_epi64((__m128i *) (pcb+i)); + __m128i cr_biased = _mm_xor_si128(cr_bytes, signflip); // -128 + __m128i cb_biased = _mm_xor_si128(cb_bytes, signflip); // -128 + + // unpack to short (and left-shift cr, cb by 8) + __m128i yw = _mm_unpacklo_epi8(y_bias, y_bytes); + __m128i crw = _mm_unpacklo_epi8(_mm_setzero_si128(), cr_biased); + __m128i cbw = _mm_unpacklo_epi8(_mm_setzero_si128(), cb_biased); + + // color transform + __m128i yws = _mm_srli_epi16(yw, 4); + __m128i cr0 = _mm_mulhi_epi16(cr_const0, crw); + __m128i cb0 = _mm_mulhi_epi16(cb_const0, cbw); + __m128i cb1 = _mm_mulhi_epi16(cbw, cb_const1); + __m128i cr1 = _mm_mulhi_epi16(crw, cr_const1); + __m128i rws = _mm_add_epi16(cr0, yws); + __m128i gwt = _mm_add_epi16(cb0, yws); + __m128i bws = _mm_add_epi16(yws, cb1); + __m128i gws = _mm_add_epi16(gwt, cr1); + + // descale + __m128i rw = _mm_srai_epi16(rws, 4); + __m128i bw = _mm_srai_epi16(bws, 4); + __m128i gw = _mm_srai_epi16(gws, 4); + + // back to byte, set up for transpose + __m128i brb = _mm_packus_epi16(rw, bw); + __m128i gxb = _mm_packus_epi16(gw, xw); + + // transpose to interleave channels + __m128i t0 = _mm_unpacklo_epi8(brb, gxb); + __m128i t1 = _mm_unpackhi_epi8(brb, gxb); + __m128i o0 = _mm_unpacklo_epi16(t0, t1); + __m128i o1 = _mm_unpackhi_epi16(t0, t1); + + // store + _mm_storeu_si128((__m128i *) (out + 0), o0); + _mm_storeu_si128((__m128i *) (out + 16), o1); + out += 32; + } + } +#endif + +#ifdef STBI_NEON + // in this version, step=3 support would be easy to add. but is there demand? + if (step == 4) { + // this is a fairly straightforward implementation and not super-optimized. + uint8x8_t signflip = vdup_n_u8(0x80); + int16x8_t cr_const0 = vdupq_n_s16( (short) ( 1.40200f*4096.0f+0.5f)); + int16x8_t cr_const1 = vdupq_n_s16( - (short) ( 0.71414f*4096.0f+0.5f)); + int16x8_t cb_const0 = vdupq_n_s16( - (short) ( 0.34414f*4096.0f+0.5f)); + int16x8_t cb_const1 = vdupq_n_s16( (short) ( 1.77200f*4096.0f+0.5f)); + + for (; i+7 < count; i += 8) { + // load + uint8x8_t y_bytes = vld1_u8(y + i); + uint8x8_t cr_bytes = vld1_u8(pcr + i); + uint8x8_t cb_bytes = vld1_u8(pcb + i); + int8x8_t cr_biased = vreinterpret_s8_u8(vsub_u8(cr_bytes, signflip)); + int8x8_t cb_biased = vreinterpret_s8_u8(vsub_u8(cb_bytes, signflip)); + + // expand to s16 + int16x8_t yws = vreinterpretq_s16_u16(vshll_n_u8(y_bytes, 4)); + int16x8_t crw = vshll_n_s8(cr_biased, 7); + int16x8_t cbw = vshll_n_s8(cb_biased, 7); + + // color transform + int16x8_t cr0 = vqdmulhq_s16(crw, cr_const0); + int16x8_t cb0 = vqdmulhq_s16(cbw, cb_const0); + int16x8_t cr1 = vqdmulhq_s16(crw, cr_const1); + int16x8_t cb1 = vqdmulhq_s16(cbw, cb_const1); + int16x8_t rws = vaddq_s16(yws, cr0); + int16x8_t gws = vaddq_s16(vaddq_s16(yws, cb0), cr1); + int16x8_t bws = vaddq_s16(yws, cb1); + + // undo scaling, round, convert to byte + uint8x8x4_t o; + o.val[0] = vqrshrun_n_s16(rws, 4); + o.val[1] = vqrshrun_n_s16(gws, 4); + o.val[2] = vqrshrun_n_s16(bws, 4); + o.val[3] = vdup_n_u8(255); + + // store, interleaving r/g/b/a + vst4_u8(out, o); + out += 8*4; + } + } +#endif + + for (; i < count; ++i) { + int y_fixed = (y[i] << 20) + (1<<19); // rounding + int r,g,b; + int cr = pcr[i] - 128; + int cb = pcb[i] - 128; + r = y_fixed + cr* stbi__float2fixed(1.40200f); + g = y_fixed + cr*-stbi__float2fixed(0.71414f) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000); + b = y_fixed + cb* stbi__float2fixed(1.77200f); + r >>= 20; + g >>= 20; + b >>= 20; + if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; } + if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; } + if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; } + out[0] = (stbi_uc)r; + out[1] = (stbi_uc)g; + out[2] = (stbi_uc)b; + out[3] = 255; + out += step; + } +} +#endif + +// set up the kernels +static void stbi__setup_jpeg(stbi__jpeg *j) +{ + j->idct_block_kernel = stbi__idct_block; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2; + +#ifdef STBI_SSE2 + if (stbi__sse2_available()) { + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; + } +#endif + +#ifdef STBI_NEON + j->idct_block_kernel = stbi__idct_simd; + j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd; + j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd; +#endif +} + +// clean up the temporary component buffers +static void stbi__cleanup_jpeg(stbi__jpeg *j) +{ + stbi__free_jpeg_components(j, j->s->img_n, 0); +} + +typedef struct +{ + resample_row_func resample; + stbi_uc *line0,*line1; + int hs,vs; // expansion factor in each axis + int w_lores; // horizontal pixels pre-expansion + int ystep; // how far through vertical expansion we are + int ypos; // which pre-expansion row we're on +} stbi__resample; + +// fast 0..255 * 0..255 => 0..255 rounded multiplication +static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y) +{ + unsigned int t = x*y + 128; + return (stbi_uc) ((t + (t >>8)) >> 8); +} + +static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp) +{ + int n, decode_n, is_rgb; + z->s->img_n = 0; // make stbi__cleanup_jpeg safe + + // validate req_comp + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + + // load a jpeg image from whichever source, but leave in YCbCr format + if (!stbi__decode_jpeg_image(z)) { stbi__cleanup_jpeg(z); return NULL; } + + // determine actual number of components to generate + n = req_comp ? req_comp : z->s->img_n >= 3 ? 3 : 1; + + is_rgb = z->s->img_n == 3 && (z->rgb == 3 || (z->app14_color_transform == 0 && !z->jfif)); + + if (z->s->img_n == 3 && n < 3 && !is_rgb) + decode_n = 1; + else + decode_n = z->s->img_n; + + // nothing to do if no components requested; check this now to avoid + // accessing uninitialized coutput[0] later + if (decode_n <= 0) { stbi__cleanup_jpeg(z); return NULL; } + + // resample and color-convert + { + int k; + unsigned int i,j; + stbi_uc *output; + stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL }; + + stbi__resample res_comp[4]; + + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + + // allocate line buffer big enough for upsampling off the edges + // with upsample factor of 4 + z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3); + if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + r->hs = z->img_h_max / z->img_comp[k].h; + r->vs = z->img_v_max / z->img_comp[k].v; + r->ystep = r->vs >> 1; + r->w_lores = (z->s->img_x + r->hs-1) / r->hs; + r->ypos = 0; + r->line0 = r->line1 = z->img_comp[k].data; + + if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1; + else if (r->hs == 1 && r->vs == 2) r->resample = stbi__resample_row_v_2; + else if (r->hs == 2 && r->vs == 1) r->resample = stbi__resample_row_h_2; + else if (r->hs == 2 && r->vs == 2) r->resample = z->resample_row_hv_2_kernel; + else r->resample = stbi__resample_row_generic; + } + + // can't error after this so, this is safe + output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1); + if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); } + + // now go ahead and resample + for (j=0; j < z->s->img_y; ++j) { + stbi_uc *out = output + n * z->s->img_x * j; + for (k=0; k < decode_n; ++k) { + stbi__resample *r = &res_comp[k]; + int y_bot = r->ystep >= (r->vs >> 1); + coutput[k] = r->resample(z->img_comp[k].linebuf, + y_bot ? r->line1 : r->line0, + y_bot ? r->line0 : r->line1, + r->w_lores, r->hs); + if (++r->ystep >= r->vs) { + r->ystep = 0; + r->line0 = r->line1; + if (++r->ypos < z->img_comp[k].y) + r->line1 += z->img_comp[k].w2; + } + } + if (n >= 3) { + stbi_uc *y = coutput[0]; + if (z->s->img_n == 3) { + if (is_rgb) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = y[i]; + out[1] = coutput[1][i]; + out[2] = coutput[2][i]; + out[3] = 255; + out += n; + } + } else { + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else if (z->s->img_n == 4) { + if (z->app14_color_transform == 0) { // CMYK + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(coutput[0][i], m); + out[1] = stbi__blinn_8x8(coutput[1][i], m); + out[2] = stbi__blinn_8x8(coutput[2][i], m); + out[3] = 255; + out += n; + } + } else if (z->app14_color_transform == 2) { // YCCK + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + out[0] = stbi__blinn_8x8(255 - out[0], m); + out[1] = stbi__blinn_8x8(255 - out[1], m); + out[2] = stbi__blinn_8x8(255 - out[2], m); + out += n; + } + } else { // YCbCr + alpha? Ignore the fourth channel for now + z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n); + } + } else + for (i=0; i < z->s->img_x; ++i) { + out[0] = out[1] = out[2] = y[i]; + out[3] = 255; // not used if n==3 + out += n; + } + } else { + if (is_rgb) { + if (n == 1) + for (i=0; i < z->s->img_x; ++i) + *out++ = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + else { + for (i=0; i < z->s->img_x; ++i, out += 2) { + out[0] = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]); + out[1] = 255; + } + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 0) { + for (i=0; i < z->s->img_x; ++i) { + stbi_uc m = coutput[3][i]; + stbi_uc r = stbi__blinn_8x8(coutput[0][i], m); + stbi_uc g = stbi__blinn_8x8(coutput[1][i], m); + stbi_uc b = stbi__blinn_8x8(coutput[2][i], m); + out[0] = stbi__compute_y(r, g, b); + out[1] = 255; + out += n; + } + } else if (z->s->img_n == 4 && z->app14_color_transform == 2) { + for (i=0; i < z->s->img_x; ++i) { + out[0] = stbi__blinn_8x8(255 - coutput[0][i], coutput[3][i]); + out[1] = 255; + out += n; + } + } else { + stbi_uc *y = coutput[0]; + if (n == 1) + for (i=0; i < z->s->img_x; ++i) out[i] = y[i]; + else + for (i=0; i < z->s->img_x; ++i) { *out++ = y[i]; *out++ = 255; } + } + } + } + stbi__cleanup_jpeg(z); + *out_x = z->s->img_x; + *out_y = z->s->img_y; + if (comp) *comp = z->s->img_n >= 3 ? 3 : 1; // report original components, not output + return output; + } +} + +static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + unsigned char* result; + stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg)); + if (!j) return stbi__errpuc("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + STBI_NOTUSED(ri); + j->s = s; + stbi__setup_jpeg(j); + result = load_jpeg_image(j, x,y,comp,req_comp); + STBI_FREE(j); + return result; +} + +static int stbi__jpeg_test(stbi__context *s) +{ + int r; + stbi__jpeg* j = (stbi__jpeg*)stbi__malloc(sizeof(stbi__jpeg)); + if (!j) return stbi__err("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + j->s = s; + stbi__setup_jpeg(j); + r = stbi__decode_jpeg_header(j, STBI__SCAN_type); + stbi__rewind(s); + STBI_FREE(j); + return r; +} + +static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp) +{ + if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) { + stbi__rewind( j->s ); + return 0; + } + if (x) *x = j->s->img_x; + if (y) *y = j->s->img_y; + if (comp) *comp = j->s->img_n >= 3 ? 3 : 1; + return 1; +} + +static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp) +{ + int result; + stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg))); + if (!j) return stbi__err("outofmem", "Out of memory"); + memset(j, 0, sizeof(stbi__jpeg)); + j->s = s; + result = stbi__jpeg_info_raw(j, x, y, comp); + STBI_FREE(j); + return result; +} +#endif + +// public domain zlib decode v0.2 Sean Barrett 2006-11-18 +// simple implementation +// - all input must be provided in an upfront buffer +// - all output is written to a single output buffer (can malloc/realloc) +// performance +// - fast huffman + +#ifndef STBI_NO_ZLIB + +// fast-way is faster to check than jpeg huffman, but slow way is slower +#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables +#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1) +#define STBI__ZNSYMS 288 // number of symbols in literal/length alphabet + +// zlib-style huffman encoding +// (jpegs packs from left, zlib from right, so can't share code) +typedef struct +{ + stbi__uint16 fast[1 << STBI__ZFAST_BITS]; + stbi__uint16 firstcode[16]; + int maxcode[17]; + stbi__uint16 firstsymbol[16]; + stbi_uc size[STBI__ZNSYMS]; + stbi__uint16 value[STBI__ZNSYMS]; +} stbi__zhuffman; + +stbi_inline static int stbi__bitreverse16(int n) +{ + n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1); + n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2); + n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4); + n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8); + return n; +} + +stbi_inline static int stbi__bit_reverse(int v, int bits) +{ + STBI_ASSERT(bits <= 16); + // to bit reverse n bits, reverse 16 and shift + // e.g. 11 bits, bit reverse and shift away 5 + return stbi__bitreverse16(v) >> (16-bits); +} + +static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num) +{ + int i,k=0; + int code, next_code[16], sizes[17]; + + // DEFLATE spec for generating codes + memset(sizes, 0, sizeof(sizes)); + memset(z->fast, 0, sizeof(z->fast)); + for (i=0; i < num; ++i) + ++sizes[sizelist[i]]; + sizes[0] = 0; + for (i=1; i < 16; ++i) + if (sizes[i] > (1 << i)) + return stbi__err("bad sizes", "Corrupt PNG"); + code = 0; + for (i=1; i < 16; ++i) { + next_code[i] = code; + z->firstcode[i] = (stbi__uint16) code; + z->firstsymbol[i] = (stbi__uint16) k; + code = (code + sizes[i]); + if (sizes[i]) + if (code-1 >= (1 << i)) return stbi__err("bad codelengths","Corrupt PNG"); + z->maxcode[i] = code << (16-i); // preshift for inner loop + code <<= 1; + k += sizes[i]; + } + z->maxcode[16] = 0x10000; // sentinel + for (i=0; i < num; ++i) { + int s = sizelist[i]; + if (s) { + int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s]; + stbi__uint16 fastv = (stbi__uint16) ((s << 9) | i); + z->size [c] = (stbi_uc ) s; + z->value[c] = (stbi__uint16) i; + if (s <= STBI__ZFAST_BITS) { + int j = stbi__bit_reverse(next_code[s],s); + while (j < (1 << STBI__ZFAST_BITS)) { + z->fast[j] = fastv; + j += (1 << s); + } + } + ++next_code[s]; + } + } + return 1; +} + +// zlib-from-memory implementation for PNG reading +// because PNG allows splitting the zlib stream arbitrarily, +// and it's annoying structurally to have PNG call ZLIB call PNG, +// we require PNG read all the IDATs and combine them into a single +// memory buffer + +typedef struct +{ + stbi_uc *zbuffer, *zbuffer_end; + int num_bits; + int hit_zeof_once; + stbi__uint32 code_buffer; + + char *zout; + char *zout_start; + char *zout_end; + int z_expandable; + + stbi__zhuffman z_length, z_distance; +} stbi__zbuf; + +stbi_inline static int stbi__zeof(stbi__zbuf *z) +{ + return (z->zbuffer >= z->zbuffer_end); +} + +stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z) +{ + return stbi__zeof(z) ? 0 : *z->zbuffer++; +} + +static void stbi__fill_bits(stbi__zbuf *z) +{ + do { + if (z->code_buffer >= (1U << z->num_bits)) { + z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */ + return; + } + z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits; + z->num_bits += 8; + } while (z->num_bits <= 24); +} + +stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n) +{ + unsigned int k; + if (z->num_bits < n) stbi__fill_bits(z); + k = z->code_buffer & ((1 << n) - 1); + z->code_buffer >>= n; + z->num_bits -= n; + return k; +} + +static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s,k; + // not resolved by fast table, so compute it the slow way + // use jpeg approach, which requires MSbits at top + k = stbi__bit_reverse(a->code_buffer, 16); + for (s=STBI__ZFAST_BITS+1; ; ++s) + if (k < z->maxcode[s]) + break; + if (s >= 16) return -1; // invalid code! + // code size is s, so: + b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s]; + if (b >= STBI__ZNSYMS) return -1; // some data was corrupt somewhere! + if (z->size[b] != s) return -1; // was originally an assert, but report failure instead. + a->code_buffer >>= s; + a->num_bits -= s; + return z->value[b]; +} + +stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z) +{ + int b,s; + if (a->num_bits < 16) { + if (stbi__zeof(a)) { + if (!a->hit_zeof_once) { + // This is the first time we hit eof, insert 16 extra padding btis + // to allow us to keep going; if we actually consume any of them + // though, that is invalid data. This is caught later. + a->hit_zeof_once = 1; + a->num_bits += 16; // add 16 implicit zero bits + } else { + // We already inserted our extra 16 padding bits and are again + // out, this stream is actually prematurely terminated. + return -1; + } + } else { + stbi__fill_bits(a); + } + } + b = z->fast[a->code_buffer & STBI__ZFAST_MASK]; + if (b) { + s = b >> 9; + a->code_buffer >>= s; + a->num_bits -= s; + return b & 511; + } + return stbi__zhuffman_decode_slowpath(a, z); +} + +static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes +{ + char *q; + unsigned int cur, limit, old_limit; + z->zout = zout; + if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG"); + cur = (unsigned int) (z->zout - z->zout_start); + limit = old_limit = (unsigned) (z->zout_end - z->zout_start); + if (UINT_MAX - cur < (unsigned) n) return stbi__err("outofmem", "Out of memory"); + while (cur + n > limit) { + if(limit > UINT_MAX / 2) return stbi__err("outofmem", "Out of memory"); + limit *= 2; + } + q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit); + STBI_NOTUSED(old_limit); + if (q == NULL) return stbi__err("outofmem", "Out of memory"); + z->zout_start = q; + z->zout = q + cur; + z->zout_end = q + limit; + return 1; +} + +static const int stbi__zlength_base[31] = { + 3,4,5,6,7,8,9,10,11,13, + 15,17,19,23,27,31,35,43,51,59, + 67,83,99,115,131,163,195,227,258,0,0 }; + +static const int stbi__zlength_extra[31]= +{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 }; + +static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193, +257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0}; + +static const int stbi__zdist_extra[32] = +{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13}; + +static int stbi__parse_huffman_block(stbi__zbuf *a) +{ + char *zout = a->zout; + for(;;) { + int z = stbi__zhuffman_decode(a, &a->z_length); + if (z < 256) { + if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); // error in huffman codes + if (zout >= a->zout_end) { + if (!stbi__zexpand(a, zout, 1)) return 0; + zout = a->zout; + } + *zout++ = (char) z; + } else { + stbi_uc *p; + int len,dist; + if (z == 256) { + a->zout = zout; + if (a->hit_zeof_once && a->num_bits < 16) { + // The first time we hit zeof, we inserted 16 extra zero bits into our bit + // buffer so the decoder can just do its speculative decoding. But if we + // actually consumed any of those bits (which is the case when num_bits < 16), + // the stream actually read past the end so it is malformed. + return stbi__err("unexpected end","Corrupt PNG"); + } + return 1; + } + if (z >= 286) return stbi__err("bad huffman code","Corrupt PNG"); // per DEFLATE, length codes 286 and 287 must not appear in compressed data + z -= 257; + len = stbi__zlength_base[z]; + if (stbi__zlength_extra[z]) len += stbi__zreceive(a, stbi__zlength_extra[z]); + z = stbi__zhuffman_decode(a, &a->z_distance); + if (z < 0 || z >= 30) return stbi__err("bad huffman code","Corrupt PNG"); // per DEFLATE, distance codes 30 and 31 must not appear in compressed data + dist = stbi__zdist_base[z]; + if (stbi__zdist_extra[z]) dist += stbi__zreceive(a, stbi__zdist_extra[z]); + if (zout - a->zout_start < dist) return stbi__err("bad dist","Corrupt PNG"); + if (len > a->zout_end - zout) { + if (!stbi__zexpand(a, zout, len)) return 0; + zout = a->zout; + } + p = (stbi_uc *) (zout - dist); + if (dist == 1) { // run of one byte; common in images. + stbi_uc v = *p; + if (len) { do *zout++ = v; while (--len); } + } else { + if (len) { do *zout++ = *p++; while (--len); } + } + } + } +} + +static int stbi__compute_huffman_codes(stbi__zbuf *a) +{ + static const stbi_uc length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 }; + stbi__zhuffman z_codelength; + stbi_uc lencodes[286+32+137];//padding for maximum single op + stbi_uc codelength_sizes[19]; + int i,n; + + int hlit = stbi__zreceive(a,5) + 257; + int hdist = stbi__zreceive(a,5) + 1; + int hclen = stbi__zreceive(a,4) + 4; + int ntot = hlit + hdist; + + memset(codelength_sizes, 0, sizeof(codelength_sizes)); + for (i=0; i < hclen; ++i) { + int s = stbi__zreceive(a,3); + codelength_sizes[length_dezigzag[i]] = (stbi_uc) s; + } + if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0; + + n = 0; + while (n < ntot) { + int c = stbi__zhuffman_decode(a, &z_codelength); + if (c < 0 || c >= 19) return stbi__err("bad codelengths", "Corrupt PNG"); + if (c < 16) + lencodes[n++] = (stbi_uc) c; + else { + stbi_uc fill = 0; + if (c == 16) { + c = stbi__zreceive(a,2)+3; + if (n == 0) return stbi__err("bad codelengths", "Corrupt PNG"); + fill = lencodes[n-1]; + } else if (c == 17) { + c = stbi__zreceive(a,3)+3; + } else if (c == 18) { + c = stbi__zreceive(a,7)+11; + } else { + return stbi__err("bad codelengths", "Corrupt PNG"); + } + if (ntot - n < c) return stbi__err("bad codelengths", "Corrupt PNG"); + memset(lencodes+n, fill, c); + n += c; + } + } + if (n != ntot) return stbi__err("bad codelengths","Corrupt PNG"); + if (!stbi__zbuild_huffman(&a->z_length, lencodes, hlit)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0; + return 1; +} + +static int stbi__parse_uncompressed_block(stbi__zbuf *a) +{ + stbi_uc header[4]; + int len,nlen,k; + if (a->num_bits & 7) + stbi__zreceive(a, a->num_bits & 7); // discard + // drain the bit-packed data into header + k = 0; + while (a->num_bits > 0) { + header[k++] = (stbi_uc) (a->code_buffer & 255); // suppress MSVC run-time check + a->code_buffer >>= 8; + a->num_bits -= 8; + } + if (a->num_bits < 0) return stbi__err("zlib corrupt","Corrupt PNG"); + // now fill header the normal way + while (k < 4) + header[k++] = stbi__zget8(a); + len = header[1] * 256 + header[0]; + nlen = header[3] * 256 + header[2]; + if (nlen != (len ^ 0xffff)) return stbi__err("zlib corrupt","Corrupt PNG"); + if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG"); + if (a->zout + len > a->zout_end) + if (!stbi__zexpand(a, a->zout, len)) return 0; + memcpy(a->zout, a->zbuffer, len); + a->zbuffer += len; + a->zout += len; + return 1; +} + +static int stbi__parse_zlib_header(stbi__zbuf *a) +{ + int cmf = stbi__zget8(a); + int cm = cmf & 15; + /* int cinfo = cmf >> 4; */ + int flg = stbi__zget8(a); + if (stbi__zeof(a)) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if ((cmf*256+flg) % 31 != 0) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec + if (flg & 32) return stbi__err("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png + if (cm != 8) return stbi__err("bad compression","Corrupt PNG"); // DEFLATE required for png + // window = 1 << (8 + cinfo)... but who cares, we fully buffer output + return 1; +} + +static const stbi_uc stbi__zdefault_length[STBI__ZNSYMS] = +{ + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, + 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8 +}; +static const stbi_uc stbi__zdefault_distance[32] = +{ + 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5 +}; +/* +Init algorithm: +{ + int i; // use <= to match clearly with spec + for (i=0; i <= 143; ++i) stbi__zdefault_length[i] = 8; + for ( ; i <= 255; ++i) stbi__zdefault_length[i] = 9; + for ( ; i <= 279; ++i) stbi__zdefault_length[i] = 7; + for ( ; i <= 287; ++i) stbi__zdefault_length[i] = 8; + + for (i=0; i <= 31; ++i) stbi__zdefault_distance[i] = 5; +} +*/ + +static int stbi__parse_zlib(stbi__zbuf *a, int parse_header) +{ + int final, type; + if (parse_header) + if (!stbi__parse_zlib_header(a)) return 0; + a->num_bits = 0; + a->code_buffer = 0; + a->hit_zeof_once = 0; + do { + final = stbi__zreceive(a,1); + type = stbi__zreceive(a,2); + if (type == 0) { + if (!stbi__parse_uncompressed_block(a)) return 0; + } else if (type == 3) { + return 0; + } else { + if (type == 1) { + // use fixed code lengths + if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , STBI__ZNSYMS)) return 0; + if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0; + } else { + if (!stbi__compute_huffman_codes(a)) return 0; + } + if (!stbi__parse_huffman_block(a)) return 0; + } + } while (!final); + return 1; +} + +static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header) +{ + a->zout_start = obuf; + a->zout = obuf; + a->zout_end = obuf + olen; + a->z_expandable = exp; + + return stbi__parse_zlib(a, parse_header); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, 1)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen) +{ + return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen); +} + +STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(initial_size); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer + len; + if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 1)) + return (int) (a.zout - a.zout_start); + else + return -1; +} + +STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen) +{ + stbi__zbuf a; + char *p = (char *) stbi__malloc(16384); + if (p == NULL) return NULL; + a.zbuffer = (stbi_uc *) buffer; + a.zbuffer_end = (stbi_uc *) buffer+len; + if (stbi__do_zlib(&a, p, 16384, 1, 0)) { + if (outlen) *outlen = (int) (a.zout - a.zout_start); + return a.zout_start; + } else { + STBI_FREE(a.zout_start); + return NULL; + } +} + +STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen) +{ + stbi__zbuf a; + a.zbuffer = (stbi_uc *) ibuffer; + a.zbuffer_end = (stbi_uc *) ibuffer + ilen; + if (stbi__do_zlib(&a, obuffer, olen, 0, 0)) + return (int) (a.zout - a.zout_start); + else + return -1; +} +#endif + +// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18 +// simple implementation +// - only 8-bit samples +// - no CRC checking +// - allocates lots of intermediate memory +// - avoids problem of streaming data between subsystems +// - avoids explicit window management +// performance +// - uses stb_zlib, a PD zlib implementation with fast huffman decoding + +#ifndef STBI_NO_PNG +typedef struct +{ + stbi__uint32 length; + stbi__uint32 type; +} stbi__pngchunk; + +static stbi__pngchunk stbi__get_chunk_header(stbi__context *s) +{ + stbi__pngchunk c; + c.length = stbi__get32be(s); + c.type = stbi__get32be(s); + return c; +} + +static int stbi__check_png_header(stbi__context *s) +{ + static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 }; + int i; + for (i=0; i < 8; ++i) + if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG"); + return 1; +} + +typedef struct +{ + stbi__context *s; + stbi_uc *idata, *expanded, *out; + int depth; +} stbi__png; + + +enum { + STBI__F_none=0, + STBI__F_sub=1, + STBI__F_up=2, + STBI__F_avg=3, + STBI__F_paeth=4, + // synthetic filter used for first scanline to avoid needing a dummy row of 0s + STBI__F_avg_first +}; + +static stbi_uc first_row_filter[5] = +{ + STBI__F_none, + STBI__F_sub, + STBI__F_none, + STBI__F_avg_first, + STBI__F_sub // Paeth with b=c=0 turns out to be equivalent to sub +}; + +static int stbi__paeth(int a, int b, int c) +{ + // This formulation looks very different from the reference in the PNG spec, but is + // actually equivalent and has favorable data dependencies and admits straightforward + // generation of branch-free code, which helps performance significantly. + int thresh = c*3 - (a + b); + int lo = a < b ? a : b; + int hi = a < b ? b : a; + int t0 = (hi <= thresh) ? lo : c; + int t1 = (thresh <= lo) ? hi : t0; + return t1; +} + +static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 }; + +// adds an extra all-255 alpha channel +// dest == src is legal +// img_n must be 1 or 3 +static void stbi__create_png_alpha_expand8(stbi_uc *dest, stbi_uc *src, stbi__uint32 x, int img_n) +{ + int i; + // must process data backwards since we allow dest==src + if (img_n == 1) { + for (i=x-1; i >= 0; --i) { + dest[i*2+1] = 255; + dest[i*2+0] = src[i]; + } + } else { + STBI_ASSERT(img_n == 3); + for (i=x-1; i >= 0; --i) { + dest[i*4+3] = 255; + dest[i*4+2] = src[i*3+2]; + dest[i*4+1] = src[i*3+1]; + dest[i*4+0] = src[i*3+0]; + } + } +} + +// create the png data from post-deflated data +static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color) +{ + int bytes = (depth == 16 ? 2 : 1); + stbi__context *s = a->s; + stbi__uint32 i,j,stride = x*out_n*bytes; + stbi__uint32 img_len, img_width_bytes; + stbi_uc *filter_buf; + int all_ok = 1; + int k; + int img_n = s->img_n; // copy it into a local for later + + int output_bytes = out_n*bytes; + int filter_bytes = img_n*bytes; + int width = x; + + STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1); + a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into + if (!a->out) return stbi__err("outofmem", "Out of memory"); + + // note: error exits here don't need to clean up a->out individually, + // stbi__do_png always does on error. + if (!stbi__mad3sizes_valid(img_n, x, depth, 7)) return stbi__err("too large", "Corrupt PNG"); + img_width_bytes = (((img_n * x * depth) + 7) >> 3); + if (!stbi__mad2sizes_valid(img_width_bytes, y, img_width_bytes)) return stbi__err("too large", "Corrupt PNG"); + img_len = (img_width_bytes + 1) * y; + + // we used to check for exact match between raw_len and img_len on non-interlaced PNGs, + // but issue #276 reported a PNG in the wild that had extra data at the end (all zeros), + // so just check for raw_len < img_len always. + if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG"); + + // Allocate two scan lines worth of filter workspace buffer. + filter_buf = (stbi_uc *) stbi__malloc_mad2(img_width_bytes, 2, 0); + if (!filter_buf) return stbi__err("outofmem", "Out of memory"); + + // Filtering for low-bit-depth images + if (depth < 8) { + filter_bytes = 1; + width = img_width_bytes; + } + + for (j=0; j < y; ++j) { + // cur/prior filter buffers alternate + stbi_uc *cur = filter_buf + (j & 1)*img_width_bytes; + stbi_uc *prior = filter_buf + (~j & 1)*img_width_bytes; + stbi_uc *dest = a->out + stride*j; + int nk = width * filter_bytes; + int filter = *raw++; + + // check filter type + if (filter > 4) { + all_ok = stbi__err("invalid filter","Corrupt PNG"); + break; + } + + // if first row, use special filter that doesn't sample previous row + if (j == 0) filter = first_row_filter[filter]; + + // perform actual filtering + switch (filter) { + case STBI__F_none: + memcpy(cur, raw, nk); + break; + case STBI__F_sub: + memcpy(cur, raw, filter_bytes); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); + break; + case STBI__F_up: + for (k = 0; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + prior[k]); + break; + case STBI__F_avg: + for (k = 0; k < filter_bytes; ++k) + cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); + break; + case STBI__F_paeth: + for (k = 0; k < filter_bytes; ++k) + cur[k] = STBI__BYTECAST(raw[k] + prior[k]); // prior[k] == stbi__paeth(0,prior[k],0) + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes], prior[k], prior[k-filter_bytes])); + break; + case STBI__F_avg_first: + memcpy(cur, raw, filter_bytes); + for (k = filter_bytes; k < nk; ++k) + cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); + break; + } + + raw += nk; + + // expand decoded bits in cur to dest, also adding an extra alpha channel if desired + if (depth < 8) { + stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range + stbi_uc *in = cur; + stbi_uc *out = dest; + stbi_uc inb = 0; + stbi__uint32 nsmp = x*img_n; + + // expand bits to bytes first + if (depth == 4) { + for (i=0; i < nsmp; ++i) { + if ((i & 1) == 0) inb = *in++; + *out++ = scale * (inb >> 4); + inb <<= 4; + } + } else if (depth == 2) { + for (i=0; i < nsmp; ++i) { + if ((i & 3) == 0) inb = *in++; + *out++ = scale * (inb >> 6); + inb <<= 2; + } + } else { + STBI_ASSERT(depth == 1); + for (i=0; i < nsmp; ++i) { + if ((i & 7) == 0) inb = *in++; + *out++ = scale * (inb >> 7); + inb <<= 1; + } + } + + // insert alpha=255 values if desired + if (img_n != out_n) + stbi__create_png_alpha_expand8(dest, dest, x, img_n); + } else if (depth == 8) { + if (img_n == out_n) + memcpy(dest, cur, x*img_n); + else + stbi__create_png_alpha_expand8(dest, cur, x, img_n); + } else if (depth == 16) { + // convert the image data from big-endian to platform-native + stbi__uint16 *dest16 = (stbi__uint16*)dest; + stbi__uint32 nsmp = x*img_n; + + if (img_n == out_n) { + for (i = 0; i < nsmp; ++i, ++dest16, cur += 2) + *dest16 = (cur[0] << 8) | cur[1]; + } else { + STBI_ASSERT(img_n+1 == out_n); + if (img_n == 1) { + for (i = 0; i < x; ++i, dest16 += 2, cur += 2) { + dest16[0] = (cur[0] << 8) | cur[1]; + dest16[1] = 0xffff; + } + } else { + STBI_ASSERT(img_n == 3); + for (i = 0; i < x; ++i, dest16 += 4, cur += 6) { + dest16[0] = (cur[0] << 8) | cur[1]; + dest16[1] = (cur[2] << 8) | cur[3]; + dest16[2] = (cur[4] << 8) | cur[5]; + dest16[3] = 0xffff; + } + } + } + } + } + + STBI_FREE(filter_buf); + if (!all_ok) return 0; + + return 1; +} + +static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced) +{ + int bytes = (depth == 16 ? 2 : 1); + int out_bytes = out_n * bytes; + stbi_uc *final; + int p; + if (!interlaced) + return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color); + + // de-interlacing + final = (stbi_uc *) stbi__malloc_mad3(a->s->img_x, a->s->img_y, out_bytes, 0); + if (!final) return stbi__err("outofmem", "Out of memory"); + for (p=0; p < 7; ++p) { + int xorig[] = { 0,4,0,2,0,1,0 }; + int yorig[] = { 0,0,4,0,2,0,1 }; + int xspc[] = { 8,8,4,4,2,2,1 }; + int yspc[] = { 8,8,8,4,4,2,2 }; + int i,j,x,y; + // pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1 + x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p]; + y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p]; + if (x && y) { + stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y; + if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) { + STBI_FREE(final); + return 0; + } + for (j=0; j < y; ++j) { + for (i=0; i < x; ++i) { + int out_y = j*yspc[p]+yorig[p]; + int out_x = i*xspc[p]+xorig[p]; + memcpy(final + out_y*a->s->img_x*out_bytes + out_x*out_bytes, + a->out + (j*x+i)*out_bytes, out_bytes); + } + } + STBI_FREE(a->out); + image_data += img_len; + image_data_len -= img_len; + } + } + a->out = final; + + return 1; +} + +static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + // compute color-based transparency, assuming we've + // already got 255 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i=0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 255); + p += 2; + } + } else { + for (i=0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi__uint16 *p = (stbi__uint16*) z->out; + + // compute color-based transparency, assuming we've + // already got 65535 as the alpha value in the output + STBI_ASSERT(out_n == 2 || out_n == 4); + + if (out_n == 2) { + for (i = 0; i < pixel_count; ++i) { + p[1] = (p[0] == tc[0] ? 0 : 65535); + p += 2; + } + } else { + for (i = 0; i < pixel_count; ++i) { + if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2]) + p[3] = 0; + p += 4; + } + } + return 1; +} + +static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n) +{ + stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y; + stbi_uc *p, *temp_out, *orig = a->out; + + p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0); + if (p == NULL) return stbi__err("outofmem", "Out of memory"); + + // between here and free(out) below, exitting would leak + temp_out = p; + + if (pal_img_n == 3) { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p += 3; + } + } else { + for (i=0; i < pixel_count; ++i) { + int n = orig[i]*4; + p[0] = palette[n ]; + p[1] = palette[n+1]; + p[2] = palette[n+2]; + p[3] = palette[n+3]; + p += 4; + } + } + STBI_FREE(a->out); + a->out = temp_out; + + STBI_NOTUSED(len); + + return 1; +} + +static int stbi__unpremultiply_on_load_global = 0; +static int stbi__de_iphone_flag_global = 0; + +STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load_global = flag_true_if_should_unpremultiply; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag_global = flag_true_if_should_convert; +} + +#ifndef STBI_THREAD_LOCAL +#define stbi__unpremultiply_on_load stbi__unpremultiply_on_load_global +#define stbi__de_iphone_flag stbi__de_iphone_flag_global +#else +static STBI_THREAD_LOCAL int stbi__unpremultiply_on_load_local, stbi__unpremultiply_on_load_set; +static STBI_THREAD_LOCAL int stbi__de_iphone_flag_local, stbi__de_iphone_flag_set; + +STBIDEF void stbi_set_unpremultiply_on_load_thread(int flag_true_if_should_unpremultiply) +{ + stbi__unpremultiply_on_load_local = flag_true_if_should_unpremultiply; + stbi__unpremultiply_on_load_set = 1; +} + +STBIDEF void stbi_convert_iphone_png_to_rgb_thread(int flag_true_if_should_convert) +{ + stbi__de_iphone_flag_local = flag_true_if_should_convert; + stbi__de_iphone_flag_set = 1; +} + +#define stbi__unpremultiply_on_load (stbi__unpremultiply_on_load_set \ + ? stbi__unpremultiply_on_load_local \ + : stbi__unpremultiply_on_load_global) +#define stbi__de_iphone_flag (stbi__de_iphone_flag_set \ + ? stbi__de_iphone_flag_local \ + : stbi__de_iphone_flag_global) +#endif // STBI_THREAD_LOCAL + +static void stbi__de_iphone(stbi__png *z) +{ + stbi__context *s = z->s; + stbi__uint32 i, pixel_count = s->img_x * s->img_y; + stbi_uc *p = z->out; + + if (s->img_out_n == 3) { // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 3; + } + } else { + STBI_ASSERT(s->img_out_n == 4); + if (stbi__unpremultiply_on_load) { + // convert bgr to rgb and unpremultiply + for (i=0; i < pixel_count; ++i) { + stbi_uc a = p[3]; + stbi_uc t = p[0]; + if (a) { + stbi_uc half = a / 2; + p[0] = (p[2] * 255 + half) / a; + p[1] = (p[1] * 255 + half) / a; + p[2] = ( t * 255 + half) / a; + } else { + p[0] = p[2]; + p[2] = t; + } + p += 4; + } + } else { + // convert bgr to rgb + for (i=0; i < pixel_count; ++i) { + stbi_uc t = p[0]; + p[0] = p[2]; + p[2] = t; + p += 4; + } + } + } +} + +#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d)) + +static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp) +{ + stbi_uc palette[1024], pal_img_n=0; + stbi_uc has_trans=0, tc[3]={0}; + stbi__uint16 tc16[3]; + stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0; + int first=1,k,interlace=0, color=0, is_iphone=0; + stbi__context *s = z->s; + + z->expanded = NULL; + z->idata = NULL; + z->out = NULL; + + if (!stbi__check_png_header(s)) return 0; + + if (scan == STBI__SCAN_type) return 1; + + for (;;) { + stbi__pngchunk c = stbi__get_chunk_header(s); + switch (c.type) { + case STBI__PNG_TYPE('C','g','B','I'): + is_iphone = 1; + stbi__skip(s, c.length); + break; + case STBI__PNG_TYPE('I','H','D','R'): { + int comp,filter; + if (!first) return stbi__err("multiple IHDR","Corrupt PNG"); + first = 0; + if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG"); + s->img_x = stbi__get32be(s); + s->img_y = stbi__get32be(s); + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + z->depth = stbi__get8(s); if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16) return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only"); + color = stbi__get8(s); if (color > 6) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3 && z->depth == 16) return stbi__err("bad ctype","Corrupt PNG"); + if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG"); + comp = stbi__get8(s); if (comp) return stbi__err("bad comp method","Corrupt PNG"); + filter= stbi__get8(s); if (filter) return stbi__err("bad filter method","Corrupt PNG"); + interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG"); + if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG"); + if (!pal_img_n) { + s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0); + if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode"); + } else { + // if paletted, then pal_n is our final components, and + // img_n is # components to decompress/filter. + s->img_n = 1; + if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG"); + } + // even with SCAN_header, have to scan to see if we have a tRNS + break; + } + + case STBI__PNG_TYPE('P','L','T','E'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG"); + pal_len = c.length / 3; + if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG"); + for (i=0; i < pal_len; ++i) { + palette[i*4+0] = stbi__get8(s); + palette[i*4+1] = stbi__get8(s); + palette[i*4+2] = stbi__get8(s); + palette[i*4+3] = 255; + } + break; + } + + case STBI__PNG_TYPE('t','R','N','S'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG"); + if (pal_img_n) { + if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; } + if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG"); + if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG"); + pal_img_n = 4; + for (i=0; i < c.length; ++i) + palette[i*4+3] = stbi__get8(s); + } else { + if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG"); + if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG"); + has_trans = 1; + // non-paletted with tRNS = constant alpha. if header-scanning, we can stop now. + if (scan == STBI__SCAN_header) { ++s->img_n; return 1; } + if (z->depth == 16) { + for (k = 0; k < s->img_n && k < 3; ++k) // extra loop test to suppress false GCC warning + tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is + } else { + for (k = 0; k < s->img_n && k < 3; ++k) + tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger + } + } + break; + } + + case STBI__PNG_TYPE('I','D','A','T'): { + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG"); + if (scan == STBI__SCAN_header) { + // header scan definitely stops at first IDAT + if (pal_img_n) + s->img_n = pal_img_n; + return 1; + } + if (c.length > (1u << 30)) return stbi__err("IDAT size limit", "IDAT section larger than 2^30 bytes"); + if ((int)(ioff + c.length) < (int)ioff) return 0; + if (ioff + c.length > idata_limit) { + stbi__uint32 idata_limit_old = idata_limit; + stbi_uc *p; + if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096; + while (ioff + c.length > idata_limit) + idata_limit *= 2; + STBI_NOTUSED(idata_limit_old); + p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory"); + z->idata = p; + } + if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG"); + ioff += c.length; + break; + } + + case STBI__PNG_TYPE('I','E','N','D'): { + stbi__uint32 raw_len, bpl; + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if (scan != STBI__SCAN_load) return 1; + if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG"); + // initial guess for decoded data size to avoid unnecessary reallocs + bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component + raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */; + z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone); + if (z->expanded == NULL) return 0; // zlib should set error + STBI_FREE(z->idata); z->idata = NULL; + if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans) + s->img_out_n = s->img_n+1; + else + s->img_out_n = s->img_n; + if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0; + if (has_trans) { + if (z->depth == 16) { + if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0; + } else { + if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0; + } + } + if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2) + stbi__de_iphone(z); + if (pal_img_n) { + // pal_img_n == 3 or 4 + s->img_n = pal_img_n; // record the actual colors we had + s->img_out_n = pal_img_n; + if (req_comp >= 3) s->img_out_n = req_comp; + if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n)) + return 0; + } else if (has_trans) { + // non-paletted image with tRNS -> source image has (constant) alpha + ++s->img_n; + } + STBI_FREE(z->expanded); z->expanded = NULL; + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + return 1; + } + + default: + // if critical, fail + if (first) return stbi__err("first not IHDR", "Corrupt PNG"); + if ((c.type & (1 << 29)) == 0) { + #ifndef STBI_NO_FAILURE_STRINGS + // not threadsafe + static char invalid_chunk[] = "XXXX PNG chunk not known"; + invalid_chunk[0] = STBI__BYTECAST(c.type >> 24); + invalid_chunk[1] = STBI__BYTECAST(c.type >> 16); + invalid_chunk[2] = STBI__BYTECAST(c.type >> 8); + invalid_chunk[3] = STBI__BYTECAST(c.type >> 0); + #endif + return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type"); + } + stbi__skip(s, c.length); + break; + } + // end of PNG chunk, read and skip CRC + stbi__get32be(s); + } +} + +static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri) +{ + void *result=NULL; + if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error"); + if (stbi__parse_png_file(p, STBI__SCAN_load, req_comp)) { + if (p->depth <= 8) + ri->bits_per_channel = 8; + else if (p->depth == 16) + ri->bits_per_channel = 16; + else + return stbi__errpuc("bad bits_per_channel", "PNG not supported: unsupported color depth"); + result = p->out; + p->out = NULL; + if (req_comp && req_comp != p->s->img_out_n) { + if (ri->bits_per_channel == 8) + result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + else + result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y); + p->s->img_out_n = req_comp; + if (result == NULL) return result; + } + *x = p->s->img_x; + *y = p->s->img_y; + if (n) *n = p->s->img_n; + } + STBI_FREE(p->out); p->out = NULL; + STBI_FREE(p->expanded); p->expanded = NULL; + STBI_FREE(p->idata); p->idata = NULL; + + return result; +} + +static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi__png p; + p.s = s; + return stbi__do_png(&p, x,y,comp,req_comp, ri); +} + +static int stbi__png_test(stbi__context *s) +{ + int r; + r = stbi__check_png_header(s); + stbi__rewind(s); + return r; +} + +static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp) +{ + if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) { + stbi__rewind( p->s ); + return 0; + } + if (x) *x = p->s->img_x; + if (y) *y = p->s->img_y; + if (comp) *comp = p->s->img_n; + return 1; +} + +static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__png p; + p.s = s; + return stbi__png_info_raw(&p, x, y, comp); +} + +static int stbi__png_is16(stbi__context *s) +{ + stbi__png p; + p.s = s; + if (!stbi__png_info_raw(&p, NULL, NULL, NULL)) + return 0; + if (p.depth != 16) { + stbi__rewind(p.s); + return 0; + } + return 1; +} +#endif + +// Microsoft/Windows BMP image + +#ifndef STBI_NO_BMP +static int stbi__bmp_test_raw(stbi__context *s) +{ + int r; + int sz; + if (stbi__get8(s) != 'B') return 0; + if (stbi__get8(s) != 'M') return 0; + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + stbi__get32le(s); // discard data offset + sz = stbi__get32le(s); + r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124); + return r; +} + +static int stbi__bmp_test(stbi__context *s) +{ + int r = stbi__bmp_test_raw(s); + stbi__rewind(s); + return r; +} + + +// returns 0..31 for the highest set bit +static int stbi__high_bit(unsigned int z) +{ + int n=0; + if (z == 0) return -1; + if (z >= 0x10000) { n += 16; z >>= 16; } + if (z >= 0x00100) { n += 8; z >>= 8; } + if (z >= 0x00010) { n += 4; z >>= 4; } + if (z >= 0x00004) { n += 2; z >>= 2; } + if (z >= 0x00002) { n += 1;/* >>= 1;*/ } + return n; +} + +static int stbi__bitcount(unsigned int a) +{ + a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2 + a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4 + a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits + a = (a + (a >> 8)); // max 16 per 8 bits + a = (a + (a >> 16)); // max 32 per 8 bits + return a & 0xff; +} + +// extract an arbitrarily-aligned N-bit value (N=bits) +// from v, and then make it 8-bits long and fractionally +// extend it to full full range. +static int stbi__shiftsigned(unsigned int v, int shift, int bits) +{ + static unsigned int mul_table[9] = { + 0, + 0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/, + 0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/, + }; + static unsigned int shift_table[9] = { + 0, 0,0,1,0,2,4,6,0, + }; + if (shift < 0) + v <<= -shift; + else + v >>= shift; + STBI_ASSERT(v < 256); + v >>= (8-bits); + STBI_ASSERT(bits >= 0 && bits <= 8); + return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits]; +} + +typedef struct +{ + int bpp, offset, hsz; + unsigned int mr,mg,mb,ma, all_a; + int extra_read; +} stbi__bmp_data; + +static int stbi__bmp_set_mask_defaults(stbi__bmp_data *info, int compress) +{ + // BI_BITFIELDS specifies masks explicitly, don't override + if (compress == 3) + return 1; + + if (compress == 0) { + if (info->bpp == 16) { + info->mr = 31u << 10; + info->mg = 31u << 5; + info->mb = 31u << 0; + } else if (info->bpp == 32) { + info->mr = 0xffu << 16; + info->mg = 0xffu << 8; + info->mb = 0xffu << 0; + info->ma = 0xffu << 24; + info->all_a = 0; // if all_a is 0 at end, then we loaded alpha channel but it was all 0 + } else { + // otherwise, use defaults, which is all-0 + info->mr = info->mg = info->mb = info->ma = 0; + } + return 1; + } + return 0; // error +} + +static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info) +{ + int hsz; + if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP"); + stbi__get32le(s); // discard filesize + stbi__get16le(s); // discard reserved + stbi__get16le(s); // discard reserved + info->offset = stbi__get32le(s); + info->hsz = hsz = stbi__get32le(s); + info->mr = info->mg = info->mb = info->ma = 0; + info->extra_read = 14; + + if (info->offset < 0) return stbi__errpuc("bad BMP", "bad BMP"); + + if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown"); + if (hsz == 12) { + s->img_x = stbi__get16le(s); + s->img_y = stbi__get16le(s); + } else { + s->img_x = stbi__get32le(s); + s->img_y = stbi__get32le(s); + } + if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP"); + info->bpp = stbi__get16le(s); + if (hsz != 12) { + int compress = stbi__get32le(s); + if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE"); + if (compress >= 4) return stbi__errpuc("BMP JPEG/PNG", "BMP type not supported: unsupported compression"); // this includes PNG/JPEG modes + if (compress == 3 && info->bpp != 16 && info->bpp != 32) return stbi__errpuc("bad BMP", "bad BMP"); // bitfields requires 16 or 32 bits/pixel + stbi__get32le(s); // discard sizeof + stbi__get32le(s); // discard hres + stbi__get32le(s); // discard vres + stbi__get32le(s); // discard colorsused + stbi__get32le(s); // discard max important + if (hsz == 40 || hsz == 56) { + if (hsz == 56) { + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + stbi__get32le(s); + } + if (info->bpp == 16 || info->bpp == 32) { + if (compress == 0) { + stbi__bmp_set_mask_defaults(info, compress); + } else if (compress == 3) { + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->extra_read += 12; + // not documented, but generated by photoshop and handled by mspaint + if (info->mr == info->mg && info->mg == info->mb) { + // ?!?!? + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else + return stbi__errpuc("bad BMP", "bad BMP"); + } + } else { + // V4/V5 header + int i; + if (hsz != 108 && hsz != 124) + return stbi__errpuc("bad BMP", "bad BMP"); + info->mr = stbi__get32le(s); + info->mg = stbi__get32le(s); + info->mb = stbi__get32le(s); + info->ma = stbi__get32le(s); + if (compress != 3) // override mr/mg/mb unless in BI_BITFIELDS mode, as per docs + stbi__bmp_set_mask_defaults(info, compress); + stbi__get32le(s); // discard color space + for (i=0; i < 12; ++i) + stbi__get32le(s); // discard color space parameters + if (hsz == 124) { + stbi__get32le(s); // discard rendering intent + stbi__get32le(s); // discard offset of profile data + stbi__get32le(s); // discard size of profile data + stbi__get32le(s); // discard reserved + } + } + } + return (void *) 1; +} + + +static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + unsigned int mr=0,mg=0,mb=0,ma=0, all_a; + stbi_uc pal[256][4]; + int psize=0,i,j,width; + int flip_vertically, pad, target; + stbi__bmp_data info; + STBI_NOTUSED(ri); + + info.all_a = 255; + if (stbi__bmp_parse_header(s, &info) == NULL) + return NULL; // error code already set + + flip_vertically = ((int) s->img_y) > 0; + s->img_y = abs((int) s->img_y); + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + mr = info.mr; + mg = info.mg; + mb = info.mb; + ma = info.ma; + all_a = info.all_a; + + if (info.hsz == 12) { + if (info.bpp < 24) + psize = (info.offset - info.extra_read - 24) / 3; + } else { + if (info.bpp < 16) + psize = (info.offset - info.extra_read - info.hsz) >> 2; + } + if (psize == 0) { + // accept some number of extra bytes after the header, but if the offset points either to before + // the header ends or implies a large amount of extra data, reject the file as malformed + int bytes_read_so_far = s->callback_already_read + (int)(s->img_buffer - s->img_buffer_original); + int header_limit = 1024; // max we actually read is below 256 bytes currently. + int extra_data_limit = 256*4; // what ordinarily goes here is a palette; 256 entries*4 bytes is its max size. + if (bytes_read_so_far <= 0 || bytes_read_so_far > header_limit) { + return stbi__errpuc("bad header", "Corrupt BMP"); + } + // we established that bytes_read_so_far is positive and sensible. + // the first half of this test rejects offsets that are either too small positives, or + // negative, and guarantees that info.offset >= bytes_read_so_far > 0. this in turn + // ensures the number computed in the second half of the test can't overflow. + if (info.offset < bytes_read_so_far || info.offset - bytes_read_so_far > extra_data_limit) { + return stbi__errpuc("bad offset", "Corrupt BMP"); + } else { + stbi__skip(s, info.offset - bytes_read_so_far); + } + } + + if (info.bpp == 24 && ma == 0xff000000) + s->img_n = 3; + else + s->img_n = ma ? 4 : 3; + if (req_comp && req_comp >= 3) // we can directly decode 3 or 4 + target = req_comp; + else + target = s->img_n; // if they want monochrome, we'll post-convert + + // sanity-check size + if (!stbi__mad3sizes_valid(target, s->img_x, s->img_y, 0)) + return stbi__errpuc("too large", "Corrupt BMP"); + + out = (stbi_uc *) stbi__malloc_mad3(target, s->img_x, s->img_y, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (info.bpp < 16) { + int z=0; + if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); } + for (i=0; i < psize; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + if (info.hsz != 12) stbi__get8(s); + pal[i][3] = 255; + } + stbi__skip(s, info.offset - info.extra_read - info.hsz - psize * (info.hsz == 12 ? 3 : 4)); + if (info.bpp == 1) width = (s->img_x + 7) >> 3; + else if (info.bpp == 4) width = (s->img_x + 1) >> 1; + else if (info.bpp == 8) width = s->img_x; + else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); } + pad = (-width)&3; + if (info.bpp == 1) { + for (j=0; j < (int) s->img_y; ++j) { + int bit_offset = 7, v = stbi__get8(s); + for (i=0; i < (int) s->img_x; ++i) { + int color = (v>>bit_offset)&0x1; + out[z++] = pal[color][0]; + out[z++] = pal[color][1]; + out[z++] = pal[color][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + if((--bit_offset) < 0) { + bit_offset = 7; + v = stbi__get8(s); + } + } + stbi__skip(s, pad); + } + } else { + for (j=0; j < (int) s->img_y; ++j) { + for (i=0; i < (int) s->img_x; i += 2) { + int v=stbi__get8(s),v2=0; + if (info.bpp == 4) { + v2 = v & 15; + v >>= 4; + } + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + if (i+1 == (int) s->img_x) break; + v = (info.bpp == 8) ? stbi__get8(s) : v2; + out[z++] = pal[v][0]; + out[z++] = pal[v][1]; + out[z++] = pal[v][2]; + if (target == 4) out[z++] = 255; + } + stbi__skip(s, pad); + } + } + } else { + int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; + int z = 0; + int easy=0; + stbi__skip(s, info.offset - info.extra_read - info.hsz); + if (info.bpp == 24) width = 3 * s->img_x; + else if (info.bpp == 16) width = 2*s->img_x; + else /* bpp = 32 and pad = 0 */ width=0; + pad = (-width) & 3; + if (info.bpp == 24) { + easy = 1; + } else if (info.bpp == 32) { + if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000) + easy = 2; + } + if (!easy) { + if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + // right shift amt to put high bit in position #7 + rshift = stbi__high_bit(mr)-7; rcount = stbi__bitcount(mr); + gshift = stbi__high_bit(mg)-7; gcount = stbi__bitcount(mg); + bshift = stbi__high_bit(mb)-7; bcount = stbi__bitcount(mb); + ashift = stbi__high_bit(ma)-7; acount = stbi__bitcount(ma); + if (rcount > 8 || gcount > 8 || bcount > 8 || acount > 8) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); } + } + for (j=0; j < (int) s->img_y; ++j) { + if (easy) { + for (i=0; i < (int) s->img_x; ++i) { + unsigned char a; + out[z+2] = stbi__get8(s); + out[z+1] = stbi__get8(s); + out[z+0] = stbi__get8(s); + z += 3; + a = (easy == 2 ? stbi__get8(s) : 255); + all_a |= a; + if (target == 4) out[z++] = a; + } + } else { + int bpp = info.bpp; + for (i=0; i < (int) s->img_x; ++i) { + stbi__uint32 v = (bpp == 16 ? (stbi__uint32) stbi__get16le(s) : stbi__get32le(s)); + unsigned int a; + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mr, rshift, rcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mg, gshift, gcount)); + out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mb, bshift, bcount)); + a = (ma ? stbi__shiftsigned(v & ma, ashift, acount) : 255); + all_a |= a; + if (target == 4) out[z++] = STBI__BYTECAST(a); + } + } + stbi__skip(s, pad); + } + } + + // if alpha channel is all 0s, replace with all 255s + if (target == 4 && all_a == 0) + for (i=4*s->img_x*s->img_y-1; i >= 0; i -= 4) + out[i] = 255; + + if (flip_vertically) { + stbi_uc t; + for (j=0; j < (int) s->img_y>>1; ++j) { + stbi_uc *p1 = out + j *s->img_x*target; + stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target; + for (i=0; i < (int) s->img_x*target; ++i) { + t = p1[i]; p1[i] = p2[i]; p2[i] = t; + } + } + } + + if (req_comp && req_comp != target) { + out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + return out; +} +#endif + +// Targa Truevision - TGA +// by Jonathan Dummer +#ifndef STBI_NO_TGA +// returns STBI_rgb or whatever, 0 on error +static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16) +{ + // only RGB or RGBA (incl. 16bit) or grey allowed + if (is_rgb16) *is_rgb16 = 0; + switch(bits_per_pixel) { + case 8: return STBI_grey; + case 16: if(is_grey) return STBI_grey_alpha; + // fallthrough + case 15: if(is_rgb16) *is_rgb16 = 1; + return STBI_rgb; + case 24: // fallthrough + case 32: return bits_per_pixel/8; + default: return 0; + } +} + +static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp) +{ + int tga_w, tga_h, tga_comp, tga_image_type, tga_bits_per_pixel, tga_colormap_bpp; + int sz, tga_colormap_type; + stbi__get8(s); // discard Offset + tga_colormap_type = stbi__get8(s); // colormap type + if( tga_colormap_type > 1 ) { + stbi__rewind(s); + return 0; // only RGB or indexed allowed + } + tga_image_type = stbi__get8(s); // image type + if ( tga_colormap_type == 1 ) { // colormapped (paletted) image + if (tga_image_type != 1 && tga_image_type != 9) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) { + stbi__rewind(s); + return 0; + } + stbi__skip(s,4); // skip image x and y origin + tga_colormap_bpp = sz; + } else { // "normal" image w/o colormap - only RGB or grey allowed, +/- RLE + if ( (tga_image_type != 2) && (tga_image_type != 3) && (tga_image_type != 10) && (tga_image_type != 11) ) { + stbi__rewind(s); + return 0; // only RGB or grey allowed, +/- RLE + } + stbi__skip(s,9); // skip colormap specification and image x/y origin + tga_colormap_bpp = 0; + } + tga_w = stbi__get16le(s); + if( tga_w < 1 ) { + stbi__rewind(s); + return 0; // test width + } + tga_h = stbi__get16le(s); + if( tga_h < 1 ) { + stbi__rewind(s); + return 0; // test height + } + tga_bits_per_pixel = stbi__get8(s); // bits per pixel + stbi__get8(s); // ignore alpha bits + if (tga_colormap_bpp != 0) { + if((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16)) { + // when using a colormap, tga_bits_per_pixel is the size of the indexes + // I don't think anything but 8 or 16bit indexes makes sense + stbi__rewind(s); + return 0; + } + tga_comp = stbi__tga_get_comp(tga_colormap_bpp, 0, NULL); + } else { + tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3) || (tga_image_type == 11), NULL); + } + if(!tga_comp) { + stbi__rewind(s); + return 0; + } + if (x) *x = tga_w; + if (y) *y = tga_h; + if (comp) *comp = tga_comp; + return 1; // seems to have passed everything +} + +static int stbi__tga_test(stbi__context *s) +{ + int res = 0; + int sz, tga_color_type; + stbi__get8(s); // discard Offset + tga_color_type = stbi__get8(s); // color type + if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed + sz = stbi__get8(s); // image type + if ( tga_color_type == 1 ) { // colormapped (paletted) image + if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9 + stbi__skip(s,4); // skip index of first colormap entry and number of entries + sz = stbi__get8(s); // check bits per palette color entry + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + stbi__skip(s,4); // skip image x and y origin + } else { // "normal" image w/o colormap + if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE + stbi__skip(s,9); // skip colormap specification and image x/y origin + } + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width + if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height + sz = stbi__get8(s); // bits per pixel + if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index + if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd; + + res = 1; // if we got this far, everything's good and we can return 1 instead of 0 + +errorEnd: + stbi__rewind(s); + return res; +} + +// read 16bit value and convert to 24bit RGB +static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) +{ + stbi__uint16 px = (stbi__uint16)stbi__get16le(s); + stbi__uint16 fiveBitMask = 31; + // we have 3 channels with 5bits each + int r = (px >> 10) & fiveBitMask; + int g = (px >> 5) & fiveBitMask; + int b = px & fiveBitMask; + // Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later + out[0] = (stbi_uc)((r * 255)/31); + out[1] = (stbi_uc)((g * 255)/31); + out[2] = (stbi_uc)((b * 255)/31); + + // some people claim that the most significant bit might be used for alpha + // (possibly if an alpha-bit is set in the "image descriptor byte") + // but that only made 16bit test images completely translucent.. + // so let's treat all 15 and 16bit TGAs as RGB with no alpha. +} + +static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + // read in the TGA header stuff + int tga_offset = stbi__get8(s); + int tga_indexed = stbi__get8(s); + int tga_image_type = stbi__get8(s); + int tga_is_RLE = 0; + int tga_palette_start = stbi__get16le(s); + int tga_palette_len = stbi__get16le(s); + int tga_palette_bits = stbi__get8(s); + int tga_x_origin = stbi__get16le(s); + int tga_y_origin = stbi__get16le(s); + int tga_width = stbi__get16le(s); + int tga_height = stbi__get16le(s); + int tga_bits_per_pixel = stbi__get8(s); + int tga_comp, tga_rgb16=0; + int tga_inverted = stbi__get8(s); + // int tga_alpha_bits = tga_inverted & 15; // the 4 lowest bits - unused (useless?) + // image data + unsigned char *tga_data; + unsigned char *tga_palette = NULL; + int i, j; + unsigned char raw_data[4] = {0}; + int RLE_count = 0; + int RLE_repeating = 0; + int read_next_pixel = 1; + STBI_NOTUSED(ri); + STBI_NOTUSED(tga_x_origin); // @TODO + STBI_NOTUSED(tga_y_origin); // @TODO + + if (tga_height > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (tga_width > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // do a tiny bit of precessing + if ( tga_image_type >= 8 ) + { + tga_image_type -= 8; + tga_is_RLE = 1; + } + tga_inverted = 1 - ((tga_inverted >> 5) & 1); + + // If I'm paletted, then I'll use the number of bits from the palette + if ( tga_indexed ) tga_comp = stbi__tga_get_comp(tga_palette_bits, 0, &tga_rgb16); + else tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3), &tga_rgb16); + + if(!tga_comp) // shouldn't really happen, stbi__tga_test() should have ensured basic consistency + return stbi__errpuc("bad format", "Can't find out TGA pixelformat"); + + // tga info + *x = tga_width; + *y = tga_height; + if (comp) *comp = tga_comp; + + if (!stbi__mad3sizes_valid(tga_width, tga_height, tga_comp, 0)) + return stbi__errpuc("too large", "Corrupt TGA"); + + tga_data = (unsigned char*)stbi__malloc_mad3(tga_width, tga_height, tga_comp, 0); + if (!tga_data) return stbi__errpuc("outofmem", "Out of memory"); + + // skip to the data's starting position (offset usually = 0) + stbi__skip(s, tga_offset ); + + if ( !tga_indexed && !tga_is_RLE && !tga_rgb16 ) { + for (i=0; i < tga_height; ++i) { + int row = tga_inverted ? tga_height -i - 1 : i; + stbi_uc *tga_row = tga_data + row*tga_width*tga_comp; + stbi__getn(s, tga_row, tga_width * tga_comp); + } + } else { + // do I need to load a palette? + if ( tga_indexed) + { + if (tga_palette_len == 0) { /* you have to have at least one entry! */ + STBI_FREE(tga_data); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + + // any data to skip? (offset usually = 0) + stbi__skip(s, tga_palette_start ); + // load the palette + tga_palette = (unsigned char*)stbi__malloc_mad2(tga_palette_len, tga_comp, 0); + if (!tga_palette) { + STBI_FREE(tga_data); + return stbi__errpuc("outofmem", "Out of memory"); + } + if (tga_rgb16) { + stbi_uc *pal_entry = tga_palette; + STBI_ASSERT(tga_comp == STBI_rgb); + for (i=0; i < tga_palette_len; ++i) { + stbi__tga_read_rgb16(s, pal_entry); + pal_entry += tga_comp; + } + } else if (!stbi__getn(s, tga_palette, tga_palette_len * tga_comp)) { + STBI_FREE(tga_data); + STBI_FREE(tga_palette); + return stbi__errpuc("bad palette", "Corrupt TGA"); + } + } + // load the data + for (i=0; i < tga_width * tga_height; ++i) + { + // if I'm in RLE mode, do I need to get a RLE stbi__pngchunk? + if ( tga_is_RLE ) + { + if ( RLE_count == 0 ) + { + // yep, get the next byte as a RLE command + int RLE_cmd = stbi__get8(s); + RLE_count = 1 + (RLE_cmd & 127); + RLE_repeating = RLE_cmd >> 7; + read_next_pixel = 1; + } else if ( !RLE_repeating ) + { + read_next_pixel = 1; + } + } else + { + read_next_pixel = 1; + } + // OK, if I need to read a pixel, do it now + if ( read_next_pixel ) + { + // load however much data we did have + if ( tga_indexed ) + { + // read in index, then perform the lookup + int pal_idx = (tga_bits_per_pixel == 8) ? stbi__get8(s) : stbi__get16le(s); + if ( pal_idx >= tga_palette_len ) { + // invalid index + pal_idx = 0; + } + pal_idx *= tga_comp; + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = tga_palette[pal_idx+j]; + } + } else if(tga_rgb16) { + STBI_ASSERT(tga_comp == STBI_rgb); + stbi__tga_read_rgb16(s, raw_data); + } else { + // read in the data raw + for (j = 0; j < tga_comp; ++j) { + raw_data[j] = stbi__get8(s); + } + } + // clear the reading flag for the next pixel + read_next_pixel = 0; + } // end of reading a pixel + + // copy data + for (j = 0; j < tga_comp; ++j) + tga_data[i*tga_comp+j] = raw_data[j]; + + // in case we're in RLE mode, keep counting down + --RLE_count; + } + // do I need to invert the image? + if ( tga_inverted ) + { + for (j = 0; j*2 < tga_height; ++j) + { + int index1 = j * tga_width * tga_comp; + int index2 = (tga_height - 1 - j) * tga_width * tga_comp; + for (i = tga_width * tga_comp; i > 0; --i) + { + unsigned char temp = tga_data[index1]; + tga_data[index1] = tga_data[index2]; + tga_data[index2] = temp; + ++index1; + ++index2; + } + } + } + // clear my palette, if I had one + if ( tga_palette != NULL ) + { + STBI_FREE( tga_palette ); + } + } + + // swap RGB - if the source data was RGB16, it already is in the right order + if (tga_comp >= 3 && !tga_rgb16) + { + unsigned char* tga_pixel = tga_data; + for (i=0; i < tga_width * tga_height; ++i) + { + unsigned char temp = tga_pixel[0]; + tga_pixel[0] = tga_pixel[2]; + tga_pixel[2] = temp; + tga_pixel += tga_comp; + } + } + + // convert to target component count + if (req_comp && req_comp != tga_comp) + tga_data = stbi__convert_format(tga_data, tga_comp, req_comp, tga_width, tga_height); + + // the things I do to get rid of an error message, and yet keep + // Microsoft's C compilers happy... [8^( + tga_palette_start = tga_palette_len = tga_palette_bits = + tga_x_origin = tga_y_origin = 0; + STBI_NOTUSED(tga_palette_start); + // OK, done + return tga_data; +} +#endif + +// ************************************************************************************************* +// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB + +#ifndef STBI_NO_PSD +static int stbi__psd_test(stbi__context *s) +{ + int r = (stbi__get32be(s) == 0x38425053); + stbi__rewind(s); + return r; +} + +static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount) +{ + int count, nleft, len; + + count = 0; + while ((nleft = pixelCount - count) > 0) { + len = stbi__get8(s); + if (len == 128) { + // No-op. + } else if (len < 128) { + // Copy next len+1 bytes literally. + len++; + if (len > nleft) return 0; // corrupt data + count += len; + while (len) { + *p = stbi__get8(s); + p += 4; + len--; + } + } else if (len > 128) { + stbi_uc val; + // Next -len+1 bytes in the dest are replicated from next source byte. + // (Interpret len as a negative 8-bit int.) + len = 257 - len; + if (len > nleft) return 0; // corrupt data + val = stbi__get8(s); + count += len; + while (len) { + *p = val; + p += 4; + len--; + } + } + } + + return 1; +} + +static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc) +{ + int pixelCount; + int channelCount, compression; + int channel, i; + int bitdepth; + int w,h; + stbi_uc *out; + STBI_NOTUSED(ri); + + // Check identifier + if (stbi__get32be(s) != 0x38425053) // "8BPS" + return stbi__errpuc("not PSD", "Corrupt PSD image"); + + // Check file type version. + if (stbi__get16be(s) != 1) + return stbi__errpuc("wrong version", "Unsupported version of PSD image"); + + // Skip 6 reserved bytes. + stbi__skip(s, 6 ); + + // Read the number of channels (R, G, B, A, etc). + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) + return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image"); + + // Read the rows and columns of the image. + h = stbi__get32be(s); + w = stbi__get32be(s); + + if (h > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (w > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + // Make sure the depth is 8 bits. + bitdepth = stbi__get16be(s); + if (bitdepth != 8 && bitdepth != 16) + return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit"); + + // Make sure the color mode is RGB. + // Valid options are: + // 0: Bitmap + // 1: Grayscale + // 2: Indexed color + // 3: RGB color + // 4: CMYK color + // 7: Multichannel + // 8: Duotone + // 9: Lab color + if (stbi__get16be(s) != 3) + return stbi__errpuc("wrong color format", "PSD is not in RGB color format"); + + // Skip the Mode Data. (It's the palette for indexed color; other info for other modes.) + stbi__skip(s,stbi__get32be(s) ); + + // Skip the image resources. (resolution, pen tool paths, etc) + stbi__skip(s, stbi__get32be(s) ); + + // Skip the reserved data. + stbi__skip(s, stbi__get32be(s) ); + + // Find out if the data is compressed. + // Known values: + // 0: no compression + // 1: RLE compressed + compression = stbi__get16be(s); + if (compression > 1) + return stbi__errpuc("bad compression", "PSD has an unknown compression format"); + + // Check size + if (!stbi__mad3sizes_valid(4, w, h, 0)) + return stbi__errpuc("too large", "Corrupt PSD"); + + // Create the destination image. + + if (!compression && bitdepth == 16 && bpc == 16) { + out = (stbi_uc *) stbi__malloc_mad3(8, w, h, 0); + ri->bits_per_channel = 16; + } else + out = (stbi_uc *) stbi__malloc(4 * w*h); + + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + pixelCount = w*h; + + // Initialize the data to zero. + //memset( out, 0, pixelCount * 4 ); + + // Finally, the image data. + if (compression) { + // RLE as used by .PSD and .TIFF + // Loop until you get the number of unpacked bytes you are expecting: + // Read the next source byte into n. + // If n is between 0 and 127 inclusive, copy the next n+1 bytes literally. + // Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times. + // Else if n is 128, noop. + // Endloop + + // The RLE-compressed data is preceded by a 2-byte data count for each row in the data, + // which we're going to just skip. + stbi__skip(s, h * channelCount * 2 ); + + // Read the RLE data by channel. + for (channel = 0; channel < 4; channel++) { + stbi_uc *p; + + p = out+channel; + if (channel >= channelCount) { + // Fill this channel with default data. + for (i = 0; i < pixelCount; i++, p += 4) + *p = (channel == 3 ? 255 : 0); + } else { + // Read the RLE data. + if (!stbi__psd_decode_rle(s, p, pixelCount)) { + STBI_FREE(out); + return stbi__errpuc("corrupt", "bad RLE data"); + } + } + } + + } else { + // We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...) + // where each channel consists of an 8-bit (or 16-bit) value for each pixel in the image. + + // Read the data by channel. + for (channel = 0; channel < 4; channel++) { + if (channel >= channelCount) { + // Fill this channel with default data. + if (bitdepth == 16 && bpc == 16) { + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + stbi__uint16 val = channel == 3 ? 65535 : 0; + for (i = 0; i < pixelCount; i++, q += 4) + *q = val; + } else { + stbi_uc *p = out+channel; + stbi_uc val = channel == 3 ? 255 : 0; + for (i = 0; i < pixelCount; i++, p += 4) + *p = val; + } + } else { + if (ri->bits_per_channel == 16) { // output bpc + stbi__uint16 *q = ((stbi__uint16 *) out) + channel; + for (i = 0; i < pixelCount; i++, q += 4) + *q = (stbi__uint16) stbi__get16be(s); + } else { + stbi_uc *p = out+channel; + if (bitdepth == 16) { // input bpc + for (i = 0; i < pixelCount; i++, p += 4) + *p = (stbi_uc) (stbi__get16be(s) >> 8); + } else { + for (i = 0; i < pixelCount; i++, p += 4) + *p = stbi__get8(s); + } + } + } + } + } + + // remove weird white matte from PSD + if (channelCount >= 4) { + if (ri->bits_per_channel == 16) { + for (i=0; i < w*h; ++i) { + stbi__uint16 *pixel = (stbi__uint16 *) out + 4*i; + if (pixel[3] != 0 && pixel[3] != 65535) { + float a = pixel[3] / 65535.0f; + float ra = 1.0f / a; + float inv_a = 65535.0f * (1 - ra); + pixel[0] = (stbi__uint16) (pixel[0]*ra + inv_a); + pixel[1] = (stbi__uint16) (pixel[1]*ra + inv_a); + pixel[2] = (stbi__uint16) (pixel[2]*ra + inv_a); + } + } + } else { + for (i=0; i < w*h; ++i) { + unsigned char *pixel = out + 4*i; + if (pixel[3] != 0 && pixel[3] != 255) { + float a = pixel[3] / 255.0f; + float ra = 1.0f / a; + float inv_a = 255.0f * (1 - ra); + pixel[0] = (unsigned char) (pixel[0]*ra + inv_a); + pixel[1] = (unsigned char) (pixel[1]*ra + inv_a); + pixel[2] = (unsigned char) (pixel[2]*ra + inv_a); + } + } + } + } + + // convert to desired output format + if (req_comp && req_comp != 4) { + if (ri->bits_per_channel == 16) + out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, 4, req_comp, w, h); + else + out = stbi__convert_format(out, 4, req_comp, w, h); + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + + if (comp) *comp = 4; + *y = h; + *x = w; + + return out; +} +#endif + +// ************************************************************************************************* +// Softimage PIC loader +// by Tom Seddon +// +// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format +// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/ + +#ifndef STBI_NO_PIC +static int stbi__pic_is4(stbi__context *s,const char *str) +{ + int i; + for (i=0; i<4; ++i) + if (stbi__get8(s) != (stbi_uc)str[i]) + return 0; + + return 1; +} + +static int stbi__pic_test_core(stbi__context *s) +{ + int i; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) + return 0; + + for(i=0;i<84;++i) + stbi__get8(s); + + if (!stbi__pic_is4(s,"PICT")) + return 0; + + return 1; +} + +typedef struct +{ + stbi_uc size,type,channel; +} stbi__pic_packet; + +static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest) +{ + int mask=0x80, i; + + for (i=0; i<4; ++i, mask>>=1) { + if (channel & mask) { + if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short"); + dest[i]=stbi__get8(s); + } + } + + return dest; +} + +static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src) +{ + int mask=0x80,i; + + for (i=0;i<4; ++i, mask>>=1) + if (channel&mask) + dest[i]=src[i]; +} + +static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result) +{ + int act_comp=0,num_packets=0,y,chained; + stbi__pic_packet packets[10]; + + // this will (should...) cater for even some bizarre stuff like having data + // for the same channel in multiple packets. + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return stbi__errpuc("bad format","too many packets"); + + packet = &packets[num_packets++]; + + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + + act_comp |= packet->channel; + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)"); + if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp"); + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel? + + for(y=0; ytype) { + default: + return stbi__errpuc("bad format","packet has bad compression type"); + + case 0: {//uncompressed + int x; + + for(x=0;xchannel,dest)) + return 0; + break; + } + + case 1://Pure RLE + { + int left=width, i; + + while (left>0) { + stbi_uc count,value[4]; + + count=stbi__get8(s); + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)"); + + if (count > left) + count = (stbi_uc) left; + + if (!stbi__readval(s,packet->channel,value)) return 0; + + for(i=0; ichannel,dest,value); + left -= count; + } + } + break; + + case 2: {//Mixed RLE + int left=width; + while (left>0) { + int count = stbi__get8(s), i; + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)"); + + if (count >= 128) { // Repeated + stbi_uc value[4]; + + if (count==128) + count = stbi__get16be(s); + else + count -= 127; + if (count > left) + return stbi__errpuc("bad file","scanline overrun"); + + if (!stbi__readval(s,packet->channel,value)) + return 0; + + for(i=0;ichannel,dest,value); + } else { // Raw + ++count; + if (count>left) return stbi__errpuc("bad file","scanline overrun"); + + for(i=0;ichannel,dest)) + return 0; + } + left-=count; + } + break; + } + } + } + } + + return result; +} + +static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri) +{ + stbi_uc *result; + int i, x,y, internal_comp; + STBI_NOTUSED(ri); + + if (!comp) comp = &internal_comp; + + for (i=0; i<92; ++i) + stbi__get8(s); + + x = stbi__get16be(s); + y = stbi__get16be(s); + + if (y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)"); + if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode"); + + stbi__get32be(s); //skip `ratio' + stbi__get16be(s); //skip `fields' + stbi__get16be(s); //skip `pad' + + // intermediate buffer is RGBA + result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0); + if (!result) return stbi__errpuc("outofmem", "Out of memory"); + memset(result, 0xff, x*y*4); + + if (!stbi__pic_load_core(s,x,y,comp, result)) { + STBI_FREE(result); + result=0; + } + *px = x; + *py = y; + if (req_comp == 0) req_comp = *comp; + result=stbi__convert_format(result,4,req_comp,x,y); + + return result; +} + +static int stbi__pic_test(stbi__context *s) +{ + int r = stbi__pic_test_core(s); + stbi__rewind(s); + return r; +} +#endif + +// ************************************************************************************************* +// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb + +#ifndef STBI_NO_GIF +typedef struct +{ + stbi__int16 prefix; + stbi_uc first; + stbi_uc suffix; +} stbi__gif_lzw; + +typedef struct +{ + int w,h; + stbi_uc *out; // output buffer (always 4 components) + stbi_uc *background; // The current "background" as far as a gif is concerned + stbi_uc *history; + int flags, bgindex, ratio, transparent, eflags; + stbi_uc pal[256][4]; + stbi_uc lpal[256][4]; + stbi__gif_lzw codes[8192]; + stbi_uc *color_table; + int parse, step; + int lflags; + int start_x, start_y; + int max_x, max_y; + int cur_x, cur_y; + int line_size; + int delay; +} stbi__gif; + +static int stbi__gif_test_raw(stbi__context *s) +{ + int sz; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0; + sz = stbi__get8(s); + if (sz != '9' && sz != '7') return 0; + if (stbi__get8(s) != 'a') return 0; + return 1; +} + +static int stbi__gif_test(stbi__context *s) +{ + int r = stbi__gif_test_raw(s); + stbi__rewind(s); + return r; +} + +static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp) +{ + int i; + for (i=0; i < num_entries; ++i) { + pal[i][2] = stbi__get8(s); + pal[i][1] = stbi__get8(s); + pal[i][0] = stbi__get8(s); + pal[i][3] = transp == i ? 0 : 255; + } +} + +static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info) +{ + stbi_uc version; + if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') + return stbi__err("not GIF", "Corrupt GIF"); + + version = stbi__get8(s); + if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF"); + if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF"); + + stbi__g_failure_reason = ""; + g->w = stbi__get16le(s); + g->h = stbi__get16le(s); + g->flags = stbi__get8(s); + g->bgindex = stbi__get8(s); + g->ratio = stbi__get8(s); + g->transparent = -1; + + if (g->w > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + if (g->h > STBI_MAX_DIMENSIONS) return stbi__err("too large","Very large image (corrupt?)"); + + if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments + + if (is_info) return 1; + + if (g->flags & 0x80) + stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1); + + return 1; +} + +static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp) +{ + stbi__gif* g = (stbi__gif*) stbi__malloc(sizeof(stbi__gif)); + if (!g) return stbi__err("outofmem", "Out of memory"); + if (!stbi__gif_header(s, g, comp, 1)) { + STBI_FREE(g); + stbi__rewind( s ); + return 0; + } + if (x) *x = g->w; + if (y) *y = g->h; + STBI_FREE(g); + return 1; +} + +static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code) +{ + stbi_uc *p, *c; + int idx; + + // recurse to decode the prefixes, since the linked-list is backwards, + // and working backwards through an interleaved image would be nasty + if (g->codes[code].prefix >= 0) + stbi__out_gif_code(g, g->codes[code].prefix); + + if (g->cur_y >= g->max_y) return; + + idx = g->cur_x + g->cur_y; + p = &g->out[idx]; + g->history[idx / 4] = 1; + + c = &g->color_table[g->codes[code].suffix * 4]; + if (c[3] > 128) { // don't render transparent pixels; + p[0] = c[2]; + p[1] = c[1]; + p[2] = c[0]; + p[3] = c[3]; + } + g->cur_x += 4; + + if (g->cur_x >= g->max_x) { + g->cur_x = g->start_x; + g->cur_y += g->step; + + while (g->cur_y >= g->max_y && g->parse > 0) { + g->step = (1 << g->parse) * g->line_size; + g->cur_y = g->start_y + (g->step >> 1); + --g->parse; + } + } +} + +static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g) +{ + stbi_uc lzw_cs; + stbi__int32 len, init_code; + stbi__uint32 first; + stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear; + stbi__gif_lzw *p; + + lzw_cs = stbi__get8(s); + if (lzw_cs > 12) return NULL; + clear = 1 << lzw_cs; + first = 1; + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + bits = 0; + valid_bits = 0; + for (init_code = 0; init_code < clear; init_code++) { + g->codes[init_code].prefix = -1; + g->codes[init_code].first = (stbi_uc) init_code; + g->codes[init_code].suffix = (stbi_uc) init_code; + } + + // support no starting clear code + avail = clear+2; + oldcode = -1; + + len = 0; + for(;;) { + if (valid_bits < codesize) { + if (len == 0) { + len = stbi__get8(s); // start new block + if (len == 0) + return g->out; + } + --len; + bits |= (stbi__int32) stbi__get8(s) << valid_bits; + valid_bits += 8; + } else { + stbi__int32 code = bits & codemask; + bits >>= codesize; + valid_bits -= codesize; + // @OPTIMIZE: is there some way we can accelerate the non-clear path? + if (code == clear) { // clear code + codesize = lzw_cs + 1; + codemask = (1 << codesize) - 1; + avail = clear + 2; + oldcode = -1; + first = 0; + } else if (code == clear + 1) { // end of stream code + stbi__skip(s, len); + while ((len = stbi__get8(s)) > 0) + stbi__skip(s,len); + return g->out; + } else if (code <= avail) { + if (first) { + return stbi__errpuc("no clear code", "Corrupt GIF"); + } + + if (oldcode >= 0) { + p = &g->codes[avail++]; + if (avail > 8192) { + return stbi__errpuc("too many codes", "Corrupt GIF"); + } + + p->prefix = (stbi__int16) oldcode; + p->first = g->codes[oldcode].first; + p->suffix = (code == avail) ? p->first : g->codes[code].first; + } else if (code == avail) + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + + stbi__out_gif_code(g, (stbi__uint16) code); + + if ((avail & codemask) == 0 && avail <= 0x0FFF) { + codesize++; + codemask = (1 << codesize) - 1; + } + + oldcode = code; + } else { + return stbi__errpuc("illegal code in raster", "Corrupt GIF"); + } + } + } +} + +// this function is designed to support animated gifs, although stb_image doesn't support it +// two back is the image from two frames ago, used for a very specific disposal format +static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back) +{ + int dispose; + int first_frame; + int pi; + int pcount; + STBI_NOTUSED(req_comp); + + // on first frame, any non-written pixels get the background colour (non-transparent) + first_frame = 0; + if (g->out == 0) { + if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header + if (!stbi__mad3sizes_valid(4, g->w, g->h, 0)) + return stbi__errpuc("too large", "GIF image is too large"); + pcount = g->w * g->h; + g->out = (stbi_uc *) stbi__malloc(4 * pcount); + g->background = (stbi_uc *) stbi__malloc(4 * pcount); + g->history = (stbi_uc *) stbi__malloc(pcount); + if (!g->out || !g->background || !g->history) + return stbi__errpuc("outofmem", "Out of memory"); + + // image is treated as "transparent" at the start - ie, nothing overwrites the current background; + // background colour is only used for pixels that are not rendered first frame, after that "background" + // color refers to the color that was there the previous frame. + memset(g->out, 0x00, 4 * pcount); + memset(g->background, 0x00, 4 * pcount); // state of the background (starts transparent) + memset(g->history, 0x00, pcount); // pixels that were affected previous frame + first_frame = 1; + } else { + // second frame - how do we dispose of the previous one? + dispose = (g->eflags & 0x1C) >> 2; + pcount = g->w * g->h; + + if ((dispose == 3) && (two_back == 0)) { + dispose = 2; // if I don't have an image to revert back to, default to the old background + } + + if (dispose == 3) { // use previous graphic + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &two_back[pi * 4], 4 ); + } + } + } else if (dispose == 2) { + // restore what was changed last frame to background before that frame; + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi]) { + memcpy( &g->out[pi * 4], &g->background[pi * 4], 4 ); + } + } + } else { + // This is a non-disposal case eithe way, so just + // leave the pixels as is, and they will become the new background + // 1: do not dispose + // 0: not specified. + } + + // background is what out is after the undoing of the previou frame; + memcpy( g->background, g->out, 4 * g->w * g->h ); + } + + // clear my history; + memset( g->history, 0x00, g->w * g->h ); // pixels that were affected previous frame + + for (;;) { + int tag = stbi__get8(s); + switch (tag) { + case 0x2C: /* Image Descriptor */ + { + stbi__int32 x, y, w, h; + stbi_uc *o; + + x = stbi__get16le(s); + y = stbi__get16le(s); + w = stbi__get16le(s); + h = stbi__get16le(s); + if (((x + w) > (g->w)) || ((y + h) > (g->h))) + return stbi__errpuc("bad Image Descriptor", "Corrupt GIF"); + + g->line_size = g->w * 4; + g->start_x = x * 4; + g->start_y = y * g->line_size; + g->max_x = g->start_x + w * 4; + g->max_y = g->start_y + h * g->line_size; + g->cur_x = g->start_x; + g->cur_y = g->start_y; + + // if the width of the specified rectangle is 0, that means + // we may not see *any* pixels or the image is malformed; + // to make sure this is caught, move the current y down to + // max_y (which is what out_gif_code checks). + if (w == 0) + g->cur_y = g->max_y; + + g->lflags = stbi__get8(s); + + if (g->lflags & 0x40) { + g->step = 8 * g->line_size; // first interlaced spacing + g->parse = 3; + } else { + g->step = g->line_size; + g->parse = 0; + } + + if (g->lflags & 0x80) { + stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1); + g->color_table = (stbi_uc *) g->lpal; + } else if (g->flags & 0x80) { + g->color_table = (stbi_uc *) g->pal; + } else + return stbi__errpuc("missing color table", "Corrupt GIF"); + + o = stbi__process_gif_raster(s, g); + if (!o) return NULL; + + // if this was the first frame, + pcount = g->w * g->h; + if (first_frame && (g->bgindex > 0)) { + // if first frame, any pixel not drawn to gets the background color + for (pi = 0; pi < pcount; ++pi) { + if (g->history[pi] == 0) { + g->pal[g->bgindex][3] = 255; // just in case it was made transparent, undo that; It will be reset next frame if need be; + memcpy( &g->out[pi * 4], &g->pal[g->bgindex], 4 ); + } + } + } + + return o; + } + + case 0x21: // Comment Extension. + { + int len; + int ext = stbi__get8(s); + if (ext == 0xF9) { // Graphic Control Extension. + len = stbi__get8(s); + if (len == 4) { + g->eflags = stbi__get8(s); + g->delay = 10 * stbi__get16le(s); // delay - 1/100th of a second, saving as 1/1000ths. + + // unset old transparent + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 255; + } + if (g->eflags & 0x01) { + g->transparent = stbi__get8(s); + if (g->transparent >= 0) { + g->pal[g->transparent][3] = 0; + } + } else { + // don't need transparent + stbi__skip(s, 1); + g->transparent = -1; + } + } else { + stbi__skip(s, len); + break; + } + } + while ((len = stbi__get8(s)) != 0) { + stbi__skip(s, len); + } + break; + } + + case 0x3B: // gif stream termination code + return (stbi_uc *) s; // using '1' causes warning on some compilers + + default: + return stbi__errpuc("unknown code", "Corrupt GIF"); + } + } +} + +static void *stbi__load_gif_main_outofmem(stbi__gif *g, stbi_uc *out, int **delays) +{ + STBI_FREE(g->out); + STBI_FREE(g->history); + STBI_FREE(g->background); + + if (out) STBI_FREE(out); + if (delays && *delays) STBI_FREE(*delays); + return stbi__errpuc("outofmem", "Out of memory"); +} + +static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp) +{ + if (stbi__gif_test(s)) { + int layers = 0; + stbi_uc *u = 0; + stbi_uc *out = 0; + stbi_uc *two_back = 0; + stbi__gif g; + int stride; + int out_size = 0; + int delays_size = 0; + + STBI_NOTUSED(out_size); + STBI_NOTUSED(delays_size); + + memset(&g, 0, sizeof(g)); + if (delays) { + *delays = 0; + } + + do { + u = stbi__gif_load_next(s, &g, comp, req_comp, two_back); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + + if (u) { + *x = g.w; + *y = g.h; + ++layers; + stride = g.w * g.h * 4; + + if (out) { + void *tmp = (stbi_uc*) STBI_REALLOC_SIZED( out, out_size, layers * stride ); + if (!tmp) + return stbi__load_gif_main_outofmem(&g, out, delays); + else { + out = (stbi_uc*) tmp; + out_size = layers * stride; + } + + if (delays) { + int *new_delays = (int*) STBI_REALLOC_SIZED( *delays, delays_size, sizeof(int) * layers ); + if (!new_delays) + return stbi__load_gif_main_outofmem(&g, out, delays); + *delays = new_delays; + delays_size = layers * sizeof(int); + } + } else { + out = (stbi_uc*)stbi__malloc( layers * stride ); + if (!out) + return stbi__load_gif_main_outofmem(&g, out, delays); + out_size = layers * stride; + if (delays) { + *delays = (int*) stbi__malloc( layers * sizeof(int) ); + if (!*delays) + return stbi__load_gif_main_outofmem(&g, out, delays); + delays_size = layers * sizeof(int); + } + } + memcpy( out + ((layers - 1) * stride), u, stride ); + if (layers >= 2) { + two_back = out - 2 * stride; + } + + if (delays) { + (*delays)[layers - 1U] = g.delay; + } + } + } while (u != 0); + + // free temp buffer; + STBI_FREE(g.out); + STBI_FREE(g.history); + STBI_FREE(g.background); + + // do the final conversion after loading everything; + if (req_comp && req_comp != 4) + out = stbi__convert_format(out, 4, req_comp, layers * g.w, g.h); + + *z = layers; + return out; + } else { + return stbi__errpuc("not GIF", "Image was not as a gif type."); + } +} + +static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *u = 0; + stbi__gif g; + memset(&g, 0, sizeof(g)); + STBI_NOTUSED(ri); + + u = stbi__gif_load_next(s, &g, comp, req_comp, 0); + if (u == (stbi_uc *) s) u = 0; // end of animated gif marker + if (u) { + *x = g.w; + *y = g.h; + + // moved conversion to after successful load so that the same + // can be done for multiple frames. + if (req_comp && req_comp != 4) + u = stbi__convert_format(u, 4, req_comp, g.w, g.h); + } else if (g.out) { + // if there was an error and we allocated an image buffer, free it! + STBI_FREE(g.out); + } + + // free buffers needed for multiple frame loading; + STBI_FREE(g.history); + STBI_FREE(g.background); + + return u; +} + +static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp) +{ + return stbi__gif_info_raw(s,x,y,comp); +} +#endif + +// ************************************************************************************************* +// Radiance RGBE HDR loader +// originally by Nicolas Schulz +#ifndef STBI_NO_HDR +static int stbi__hdr_test_core(stbi__context *s, const char *signature) +{ + int i; + for (i=0; signature[i]; ++i) + if (stbi__get8(s) != signature[i]) + return 0; + stbi__rewind(s); + return 1; +} + +static int stbi__hdr_test(stbi__context* s) +{ + int r = stbi__hdr_test_core(s, "#?RADIANCE\n"); + stbi__rewind(s); + if(!r) { + r = stbi__hdr_test_core(s, "#?RGBE\n"); + stbi__rewind(s); + } + return r; +} + +#define STBI__HDR_BUFLEN 1024 +static char *stbi__hdr_gettoken(stbi__context *z, char *buffer) +{ + int len=0; + char c = '\0'; + + c = (char) stbi__get8(z); + + while (!stbi__at_eof(z) && c != '\n') { + buffer[len++] = c; + if (len == STBI__HDR_BUFLEN-1) { + // flush to end of line + while (!stbi__at_eof(z) && stbi__get8(z) != '\n') + ; + break; + } + c = (char) stbi__get8(z); + } + + buffer[len] = 0; + return buffer; +} + +static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp) +{ + if ( input[3] != 0 ) { + float f1; + // Exponent + f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8)); + if (req_comp <= 2) + output[0] = (input[0] + input[1] + input[2]) * f1 / 3; + else { + output[0] = input[0] * f1; + output[1] = input[1] * f1; + output[2] = input[2] * f1; + } + if (req_comp == 2) output[1] = 1; + if (req_comp == 4) output[3] = 1; + } else { + switch (req_comp) { + case 4: output[3] = 1; /* fallthrough */ + case 3: output[0] = output[1] = output[2] = 0; + break; + case 2: output[1] = 1; /* fallthrough */ + case 1: output[0] = 0; + break; + } + } +} + +static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int width, height; + stbi_uc *scanline; + float *hdr_data; + int len; + unsigned char count, value; + int i, j, k, c1,c2, z; + const char *headerToken; + STBI_NOTUSED(ri); + + // Check identifier + headerToken = stbi__hdr_gettoken(s,buffer); + if (strcmp(headerToken, "#?RADIANCE") != 0 && strcmp(headerToken, "#?RGBE") != 0) + return stbi__errpf("not HDR", "Corrupt HDR image"); + + // Parse header + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) return stbi__errpf("unsupported format", "Unsupported HDR format"); + + // Parse width and height + // can't use sscanf() if we're not using stdio! + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + height = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format"); + token += 3; + width = (int) strtol(token, NULL, 10); + + if (height > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + if (width > STBI_MAX_DIMENSIONS) return stbi__errpf("too large","Very large image (corrupt?)"); + + *x = width; + *y = height; + + if (comp) *comp = 3; + if (req_comp == 0) req_comp = 3; + + if (!stbi__mad4sizes_valid(width, height, req_comp, sizeof(float), 0)) + return stbi__errpf("too large", "HDR image is too large"); + + // Read data + hdr_data = (float *) stbi__malloc_mad4(width, height, req_comp, sizeof(float), 0); + if (!hdr_data) + return stbi__errpf("outofmem", "Out of memory"); + + // Load image data + // image data is stored as some number of sca + if ( width < 8 || width >= 32768) { + // Read flat data + for (j=0; j < height; ++j) { + for (i=0; i < width; ++i) { + stbi_uc rgbe[4]; + main_decode_loop: + stbi__getn(s, rgbe, 4); + stbi__hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp); + } + } + } else { + // Read RLE-encoded data + scanline = NULL; + + for (j = 0; j < height; ++j) { + c1 = stbi__get8(s); + c2 = stbi__get8(s); + len = stbi__get8(s); + if (c1 != 2 || c2 != 2 || (len & 0x80)) { + // not run-length encoded, so we have to actually use THIS data as a decoded + // pixel (note this can't be a valid pixel--one of RGB must be >= 128) + stbi_uc rgbe[4]; + rgbe[0] = (stbi_uc) c1; + rgbe[1] = (stbi_uc) c2; + rgbe[2] = (stbi_uc) len; + rgbe[3] = (stbi_uc) stbi__get8(s); + stbi__hdr_convert(hdr_data, rgbe, req_comp); + i = 1; + j = 0; + STBI_FREE(scanline); + goto main_decode_loop; // yes, this makes no sense + } + len <<= 8; + len |= stbi__get8(s); + if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); } + if (scanline == NULL) { + scanline = (stbi_uc *) stbi__malloc_mad2(width, 4, 0); + if (!scanline) { + STBI_FREE(hdr_data); + return stbi__errpf("outofmem", "Out of memory"); + } + } + + for (k = 0; k < 4; ++k) { + int nleft; + i = 0; + while ((nleft = width - i) > 0) { + count = stbi__get8(s); + if (count > 128) { + // Run + value = stbi__get8(s); + count -= 128; + if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = value; + } else { + // Dump + if ((count == 0) || (count > nleft)) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); } + for (z = 0; z < count; ++z) + scanline[i++ * 4 + k] = stbi__get8(s); + } + } + } + for (i=0; i < width; ++i) + stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp); + } + if (scanline) + STBI_FREE(scanline); + } + + return hdr_data; +} + +static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp) +{ + char buffer[STBI__HDR_BUFLEN]; + char *token; + int valid = 0; + int dummy; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (stbi__hdr_test(s) == 0) { + stbi__rewind( s ); + return 0; + } + + for(;;) { + token = stbi__hdr_gettoken(s,buffer); + if (token[0] == 0) break; + if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1; + } + + if (!valid) { + stbi__rewind( s ); + return 0; + } + token = stbi__hdr_gettoken(s,buffer); + if (strncmp(token, "-Y ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *y = (int) strtol(token, &token, 10); + while (*token == ' ') ++token; + if (strncmp(token, "+X ", 3)) { + stbi__rewind( s ); + return 0; + } + token += 3; + *x = (int) strtol(token, NULL, 10); + *comp = 3; + return 1; +} +#endif // STBI_NO_HDR + +#ifndef STBI_NO_BMP +static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp) +{ + void *p; + stbi__bmp_data info; + + info.all_a = 255; + p = stbi__bmp_parse_header(s, &info); + if (p == NULL) { + stbi__rewind( s ); + return 0; + } + if (x) *x = s->img_x; + if (y) *y = s->img_y; + if (comp) { + if (info.bpp == 24 && info.ma == 0xff000000) + *comp = 3; + else + *comp = info.ma ? 4 : 3; + } + return 1; +} +#endif + +#ifndef STBI_NO_PSD +static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp) +{ + int channelCount, dummy, depth; + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + *y = stbi__get32be(s); + *x = stbi__get32be(s); + depth = stbi__get16be(s); + if (depth != 8 && depth != 16) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 3) { + stbi__rewind( s ); + return 0; + } + *comp = 4; + return 1; +} + +static int stbi__psd_is16(stbi__context *s) +{ + int channelCount, depth; + if (stbi__get32be(s) != 0x38425053) { + stbi__rewind( s ); + return 0; + } + if (stbi__get16be(s) != 1) { + stbi__rewind( s ); + return 0; + } + stbi__skip(s, 6); + channelCount = stbi__get16be(s); + if (channelCount < 0 || channelCount > 16) { + stbi__rewind( s ); + return 0; + } + STBI_NOTUSED(stbi__get32be(s)); + STBI_NOTUSED(stbi__get32be(s)); + depth = stbi__get16be(s); + if (depth != 16) { + stbi__rewind( s ); + return 0; + } + return 1; +} +#endif + +#ifndef STBI_NO_PIC +static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp) +{ + int act_comp=0,num_packets=0,chained,dummy; + stbi__pic_packet packets[10]; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) { + stbi__rewind(s); + return 0; + } + + stbi__skip(s, 88); + + *x = stbi__get16be(s); + *y = stbi__get16be(s); + if (stbi__at_eof(s)) { + stbi__rewind( s); + return 0; + } + if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) { + stbi__rewind( s ); + return 0; + } + + stbi__skip(s, 8); + + do { + stbi__pic_packet *packet; + + if (num_packets==sizeof(packets)/sizeof(packets[0])) + return 0; + + packet = &packets[num_packets++]; + chained = stbi__get8(s); + packet->size = stbi__get8(s); + packet->type = stbi__get8(s); + packet->channel = stbi__get8(s); + act_comp |= packet->channel; + + if (stbi__at_eof(s)) { + stbi__rewind( s ); + return 0; + } + if (packet->size != 8) { + stbi__rewind( s ); + return 0; + } + } while (chained); + + *comp = (act_comp & 0x10 ? 4 : 3); + + return 1; +} +#endif + +// ************************************************************************************************* +// Portable Gray Map and Portable Pixel Map loader +// by Ken Miller +// +// PGM: http://netpbm.sourceforge.net/doc/pgm.html +// PPM: http://netpbm.sourceforge.net/doc/ppm.html +// +// Known limitations: +// Does not support comments in the header section +// Does not support ASCII image data (formats P2 and P3) + +#ifndef STBI_NO_PNM + +static int stbi__pnm_test(stbi__context *s) +{ + char p, t; + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind( s ); + return 0; + } + return 1; +} + +static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri) +{ + stbi_uc *out; + STBI_NOTUSED(ri); + + ri->bits_per_channel = stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n); + if (ri->bits_per_channel == 0) + return 0; + + if (s->img_y > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + if (s->img_x > STBI_MAX_DIMENSIONS) return stbi__errpuc("too large","Very large image (corrupt?)"); + + *x = s->img_x; + *y = s->img_y; + if (comp) *comp = s->img_n; + + if (!stbi__mad4sizes_valid(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0)) + return stbi__errpuc("too large", "PNM too large"); + + out = (stbi_uc *) stbi__malloc_mad4(s->img_n, s->img_x, s->img_y, ri->bits_per_channel / 8, 0); + if (!out) return stbi__errpuc("outofmem", "Out of memory"); + if (!stbi__getn(s, out, s->img_n * s->img_x * s->img_y * (ri->bits_per_channel / 8))) { + STBI_FREE(out); + return stbi__errpuc("bad PNM", "PNM file truncated"); + } + + if (req_comp && req_comp != s->img_n) { + if (ri->bits_per_channel == 16) { + out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, s->img_n, req_comp, s->img_x, s->img_y); + } else { + out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y); + } + if (out == NULL) return out; // stbi__convert_format frees input on failure + } + return out; +} + +static int stbi__pnm_isspace(char c) +{ + return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r'; +} + +static void stbi__pnm_skip_whitespace(stbi__context *s, char *c) +{ + for (;;) { + while (!stbi__at_eof(s) && stbi__pnm_isspace(*c)) + *c = (char) stbi__get8(s); + + if (stbi__at_eof(s) || *c != '#') + break; + + while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' ) + *c = (char) stbi__get8(s); + } +} + +static int stbi__pnm_isdigit(char c) +{ + return c >= '0' && c <= '9'; +} + +static int stbi__pnm_getinteger(stbi__context *s, char *c) +{ + int value = 0; + + while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) { + value = value*10 + (*c - '0'); + *c = (char) stbi__get8(s); + if((value > 214748364) || (value == 214748364 && *c > '7')) + return stbi__err("integer parse overflow", "Parsing an integer in the PPM header overflowed a 32-bit int"); + } + + return value; +} + +static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp) +{ + int maxv, dummy; + char c, p, t; + + if (!x) x = &dummy; + if (!y) y = &dummy; + if (!comp) comp = &dummy; + + stbi__rewind(s); + + // Get identifier + p = (char) stbi__get8(s); + t = (char) stbi__get8(s); + if (p != 'P' || (t != '5' && t != '6')) { + stbi__rewind(s); + return 0; + } + + *comp = (t == '6') ? 3 : 1; // '5' is 1-component .pgm; '6' is 3-component .ppm + + c = (char) stbi__get8(s); + stbi__pnm_skip_whitespace(s, &c); + + *x = stbi__pnm_getinteger(s, &c); // read width + if(*x == 0) + return stbi__err("invalid width", "PPM image header had zero or overflowing width"); + stbi__pnm_skip_whitespace(s, &c); + + *y = stbi__pnm_getinteger(s, &c); // read height + if (*y == 0) + return stbi__err("invalid width", "PPM image header had zero or overflowing width"); + stbi__pnm_skip_whitespace(s, &c); + + maxv = stbi__pnm_getinteger(s, &c); // read max value + if (maxv > 65535) + return stbi__err("max value > 65535", "PPM image supports only 8-bit and 16-bit images"); + else if (maxv > 255) + return 16; + else + return 8; +} + +static int stbi__pnm_is16(stbi__context *s) +{ + if (stbi__pnm_info(s, NULL, NULL, NULL) == 16) + return 1; + return 0; +} +#endif + +static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp) +{ + #ifndef STBI_NO_JPEG + if (stbi__jpeg_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNG + if (stbi__png_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_GIF + if (stbi__gif_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_BMP + if (stbi__bmp_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PIC + if (stbi__pic_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_info(s, x, y, comp)) return 1; + #endif + + #ifndef STBI_NO_HDR + if (stbi__hdr_info(s, x, y, comp)) return 1; + #endif + + // test tga last because it's a crappy test! + #ifndef STBI_NO_TGA + if (stbi__tga_info(s, x, y, comp)) + return 1; + #endif + return stbi__err("unknown image type", "Image not of any known type, or corrupt"); +} + +static int stbi__is_16_main(stbi__context *s) +{ + #ifndef STBI_NO_PNG + if (stbi__png_is16(s)) return 1; + #endif + + #ifndef STBI_NO_PSD + if (stbi__psd_is16(s)) return 1; + #endif + + #ifndef STBI_NO_PNM + if (stbi__pnm_is16(s)) return 1; + #endif + return 0; +} + +#ifndef STBI_NO_STDIO +STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_info_from_file(f, x, y, comp); + fclose(f); + return result; +} + +STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__info_main(&s,x,y,comp); + fseek(f,pos,SEEK_SET); + return r; +} + +STBIDEF int stbi_is_16_bit(char const *filename) +{ + FILE *f = stbi__fopen(filename, "rb"); + int result; + if (!f) return stbi__err("can't fopen", "Unable to open file"); + result = stbi_is_16_bit_from_file(f); + fclose(f); + return result; +} + +STBIDEF int stbi_is_16_bit_from_file(FILE *f) +{ + int r; + stbi__context s; + long pos = ftell(f); + stbi__start_file(&s, f); + r = stbi__is_16_main(&s); + fseek(f,pos,SEEK_SET); + return r; +} +#endif // !STBI_NO_STDIO + +STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__info_main(&s,x,y,comp); +} + +STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len) +{ + stbi__context s; + stbi__start_mem(&s,buffer,len); + return stbi__is_16_main(&s); +} + +STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user) +{ + stbi__context s; + stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user); + return stbi__is_16_main(&s); +} + +#endif // STB_IMAGE_IMPLEMENTATION + +/* + revision history: + 2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs + 2.19 (2018-02-11) fix warning + 2.18 (2018-01-30) fix warnings + 2.17 (2018-01-29) change sbti__shiftsigned to avoid clang -O2 bug + 1-bit BMP + *_is_16_bit api + avoid warnings + 2.16 (2017-07-23) all functions have 16-bit variants; + STBI_NO_STDIO works again; + compilation fixes; + fix rounding in unpremultiply; + optimize vertical flip; + disable raw_len validation; + documentation fixes + 2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode; + warning fixes; disable run-time SSE detection on gcc; + uniform handling of optional "return" values; + thread-safe initialization of zlib tables + 2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs + 2.13 (2016-11-29) add 16-bit API, only supported for PNG right now + 2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes + 2.11 (2016-04-02) allocate large structures on the stack + remove white matting for transparent PSD + fix reported channel count for PNG & BMP + re-enable SSE2 in non-gcc 64-bit + support RGB-formatted JPEG + read 16-bit PNGs (only as 8-bit) + 2.10 (2016-01-22) avoid warning introduced in 2.09 by STBI_REALLOC_SIZED + 2.09 (2016-01-16) allow comments in PNM files + 16-bit-per-pixel TGA (not bit-per-component) + info() for TGA could break due to .hdr handling + info() for BMP to shares code instead of sloppy parse + can use STBI_REALLOC_SIZED if allocator doesn't support realloc + code cleanup + 2.08 (2015-09-13) fix to 2.07 cleanup, reading RGB PSD as RGBA + 2.07 (2015-09-13) fix compiler warnings + partial animated GIF support + limited 16-bpc PSD support + #ifdef unused functions + bug with < 92 byte PIC,PNM,HDR,TGA + 2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value + 2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning + 2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit + 2.03 (2015-04-12) extra corruption checking (mmozeiko) + stbi_set_flip_vertically_on_load (nguillemot) + fix NEON support; fix mingw support + 2.02 (2015-01-19) fix incorrect assert, fix warning + 2.01 (2015-01-17) fix various warnings; suppress SIMD on gcc 32-bit without -msse2 + 2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG + 2.00 (2014-12-25) optimize JPG, including x86 SSE2 & NEON SIMD (ryg) + progressive JPEG (stb) + PGM/PPM support (Ken Miller) + STBI_MALLOC,STBI_REALLOC,STBI_FREE + GIF bugfix -- seemingly never worked + STBI_NO_*, STBI_ONLY_* + 1.48 (2014-12-14) fix incorrectly-named assert() + 1.47 (2014-12-14) 1/2/4-bit PNG support, both direct and paletted (Omar Cornut & stb) + optimize PNG (ryg) + fix bug in interlaced PNG with user-specified channel count (stb) + 1.46 (2014-08-26) + fix broken tRNS chunk (colorkey-style transparency) in non-paletted PNG + 1.45 (2014-08-16) + fix MSVC-ARM internal compiler error by wrapping malloc + 1.44 (2014-08-07) + various warning fixes from Ronny Chevalier + 1.43 (2014-07-15) + fix MSVC-only compiler problem in code changed in 1.42 + 1.42 (2014-07-09) + don't define _CRT_SECURE_NO_WARNINGS (affects user code) + fixes to stbi__cleanup_jpeg path + added STBI_ASSERT to avoid requiring assert.h + 1.41 (2014-06-25) + fix search&replace from 1.36 that messed up comments/error messages + 1.40 (2014-06-22) + fix gcc struct-initialization warning + 1.39 (2014-06-15) + fix to TGA optimization when req_comp != number of components in TGA; + fix to GIF loading because BMP wasn't rewinding (whoops, no GIFs in my test suite) + add support for BMP version 5 (more ignored fields) + 1.38 (2014-06-06) + suppress MSVC warnings on integer casts truncating values + fix accidental rename of 'skip' field of I/O + 1.37 (2014-06-04) + remove duplicate typedef + 1.36 (2014-06-03) + convert to header file single-file library + if de-iphone isn't set, load iphone images color-swapped instead of returning NULL + 1.35 (2014-05-27) + various warnings + fix broken STBI_SIMD path + fix bug where stbi_load_from_file no longer left file pointer in correct place + fix broken non-easy path for 32-bit BMP (possibly never used) + TGA optimization by Arseny Kapoulkine + 1.34 (unknown) + use STBI_NOTUSED in stbi__resample_row_generic(), fix one more leak in tga failure case + 1.33 (2011-07-14) + make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements + 1.32 (2011-07-13) + support for "info" function for all supported filetypes (SpartanJ) + 1.31 (2011-06-20) + a few more leak fixes, bug in PNG handling (SpartanJ) + 1.30 (2011-06-11) + added ability to load files via callbacks to accomidate custom input streams (Ben Wenger) + removed deprecated format-specific test/load functions + removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway + error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha) + fix inefficiency in decoding 32-bit BMP (David Woo) + 1.29 (2010-08-16) + various warning fixes from Aurelien Pocheville + 1.28 (2010-08-01) + fix bug in GIF palette transparency (SpartanJ) + 1.27 (2010-08-01) + cast-to-stbi_uc to fix warnings + 1.26 (2010-07-24) + fix bug in file buffering for PNG reported by SpartanJ + 1.25 (2010-07-17) + refix trans_data warning (Won Chun) + 1.24 (2010-07-12) + perf improvements reading from files on platforms with lock-heavy fgetc() + minor perf improvements for jpeg + deprecated type-specific functions so we'll get feedback if they're needed + attempt to fix trans_data warning (Won Chun) + 1.23 fixed bug in iPhone support + 1.22 (2010-07-10) + removed image *writing* support + stbi_info support from Jetro Lauha + GIF support from Jean-Marc Lienher + iPhone PNG-extensions from James Brown + warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva) + 1.21 fix use of 'stbi_uc' in header (reported by jon blow) + 1.20 added support for Softimage PIC, by Tom Seddon + 1.19 bug in interlaced PNG corruption check (found by ryg) + 1.18 (2008-08-02) + fix a threading bug (local mutable static) + 1.17 support interlaced PNG + 1.16 major bugfix - stbi__convert_format converted one too many pixels + 1.15 initialize some fields for thread safety + 1.14 fix threadsafe conversion bug + header-file-only version (#define STBI_HEADER_FILE_ONLY before including) + 1.13 threadsafe + 1.12 const qualifiers in the API + 1.11 Support installable IDCT, colorspace conversion routines + 1.10 Fixes for 64-bit (don't use "unsigned long") + optimized upsampling by Fabian "ryg" Giesen + 1.09 Fix format-conversion for PSD code (bad global variables!) + 1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz + 1.07 attempt to fix C++ warning/errors again + 1.06 attempt to fix C++ warning/errors again + 1.05 fix TGA loading to return correct *comp and use good luminance calc + 1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free + 1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR + 1.02 support for (subset of) HDR files, float interface for preferred access to them + 1.01 fix bug: possible bug in handling right-side up bmps... not sure + fix bug: the stbi__bmp_load() and stbi__tga_load() functions didn't work at all + 1.00 interface to zlib that skips zlib header + 0.99 correct handling of alpha in palette + 0.98 TGA loader by lonesock; dynamically add loaders (untested) + 0.97 jpeg errors on too large a file; also catch another malloc failure + 0.96 fix detection of invalid v value - particleman@mollyrocket forum + 0.95 during header scan, seek to markers in case of padding + 0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same + 0.93 handle jpegtran output; verbose errors + 0.92 read 4,8,16,24,32-bit BMP files of several formats + 0.91 output 24-bit Windows 3.0 BMP files + 0.90 fix a few more warnings; bump version number to approach 1.0 + 0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd + 0.60 fix compiling as c++ + 0.59 fix warnings: merge Dave Moore's -Wall fixes + 0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian + 0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available + 0.56 fix bug: zlib uncompressed mode len vs. nlen + 0.55 fix bug: restart_interval not initialized to 0 + 0.54 allow NULL for 'int *comp' + 0.53 fix bug in png 3->4; speedup png decoding + 0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments + 0.51 obey req_comp requests, 1-component jpegs return as 1-component, + on 'test' only check type, not whether we support this variant + 0.50 (2006-11-19) + first released version +*/ + + +/* +------------------------------------------------------------------------------ +This software is available under 2 licenses -- choose whichever you prefer. +------------------------------------------------------------------------------ +ALTERNATIVE A - MIT License +Copyright (c) 2017 Sean Barrett +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +------------------------------------------------------------------------------ +ALTERNATIVE B - Public Domain (www.unlicense.org) +This is free and unencumbered software released into the public domain. +Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +software, either in source code form or as a compiled binary, for any purpose, +commercial or non-commercial, and by any means. +In jurisdictions that recognize copyright laws, the author or authors of this +software dedicate any and all copyright interest in the software to the public +domain. We make this dedication for the benefit of the public at large and to +the detriment of our heirs and successors. We intend this dedication to be an +overt act of relinquishment in perpetuity of all present and future rights to +this software under copyright law. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +------------------------------------------------------------------------------ +*/ diff --git a/Jusin154_Team3D/Update_Lib.bat b/Jusin154_Team3D/Update_Lib.bat index 526314fd9..61455f141 100644 --- a/Jusin154_Team3D/Update_Lib.bat +++ b/Jusin154_Team3D/Update_Lib.bat @@ -1,5 +1,5 @@  -xcopy /y/s .\Engine\Public\*.* .\EngineSDK\Inc\ +xcopy /y /s .\Engine\Public\*.* .\EngineSDK\Inc\ xcopy /y .\Engine\Bin\Debug\Engine.dll .\Client\Bin\Debug\ xcopy /y .\Engine\Bin\Release\Engine.dll .\Client\Bin\Release\ @@ -53,3 +53,5 @@ xcopy /y .\Engine\ThirdPartyLib\Assimp\assimp-vc145-mt.lib .\EngineSDK\Lib xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Debug\ xcopy /y .\Engine\ThirdPartyLib\fMod\fmod_vc.lib .\EngineSDK\Lib\Release\ + +xcopy /y .\Engine\ThirdPartyLib\DirectXTK\DirectXTKd.lib .\EngineSDK\Lib\Debug\ diff --git a/Jusin154_Team3D/Update_Resources.bat b/Jusin154_Team3D/Update_Resources.bat index dbe2a937e..a3cc9f650 100644 --- a/Jusin154_Team3D/Update_Resources.bat +++ b/Jusin154_Team3D/Update_Resources.bat @@ -1,2 +1,4 @@  -xcopy /y/s .\Editor\Bin\Resources\*.* .\Client\Bin\Resources\ \ No newline at end of file +robocopy ".\Editor\Bin\Resources" ".\Client\Bin\Resources" /MIR /FFT /NDL /NFL /R:0 /W:0 /ETA +IF %ERRORLEVEL% LEQ 4 EXIT /B 0 +pause \ No newline at end of file diff --git a/Jusin154_Team3D/Update_Shaders.bat b/Jusin154_Team3D/Update_Shaders.bat index aaacdf4d0..3549957f7 100644 --- a/Jusin154_Team3D/Update_Shaders.bat +++ b/Jusin154_Team3D/Update_Shaders.bat @@ -1,2 +1,4 @@  -xcopy /y/s .\Editor\Bin\Resources\ShaderFiles\*.* .\Client\Bin\Resources\ShaderFiles\ \ No newline at end of file +robocopy ".\Editor\Bin\Resources\ShaderFiles" ".\Client\Bin\Resources\ShaderFiles" /MIR /FFT /NDL /NFL /R:0 /W:0 /ETA +IF %ERRORLEVEL% LEQ 4 EXIT /B 0 +pause