[merge commit]
@@ -3,6 +3,8 @@ 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;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
float PI = 3.141592;
|
||||
|
||||
struct Particle
|
||||
{
|
||||
float4 vRight;
|
||||
@@ -26,8 +28,9 @@ struct ParticleValue
|
||||
float2 vAniTime;
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
|
||||
|
||||
float3 vSinAmount;
|
||||
};
|
||||
|
||||
|
||||
@@ -42,40 +45,16 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
row_major matrix CamViewInvMatrix;
|
||||
|
||||
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
||||
bool isBillboard;
|
||||
bool isPadding2;
|
||||
bool isPadding3;
|
||||
bool isDrop;
|
||||
bool isMoveForward;
|
||||
bool isSinWave;
|
||||
|
||||
float fTimeDelta;
|
||||
float fPadding; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding2;
|
||||
float fPadding3;
|
||||
}
|
||||
|
||||
void Billboard(Particle particle)
|
||||
{
|
||||
if (isBillboard == true)
|
||||
{
|
||||
float3 vScale;
|
||||
|
||||
vScale.x = length(particle.vRight);
|
||||
vScale.y = length(particle.vUp);
|
||||
vScale.z = length(particle.vLook);
|
||||
|
||||
|
||||
particle.vRight = CamViewInvMatrix[0] * vScale.x;
|
||||
particle.vUp = CamViewInvMatrix[1] * vScale.y;
|
||||
particle.vLook = CamViewInvMatrix[2] * vScale.z;
|
||||
|
||||
//180도 회전 시키기
|
||||
particle.vRight.x *= -1.f;
|
||||
particle.vLook.z *= -1.f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
||||
//GPU 칩의 개수를 X * Y * Z의 개수 만큼 사용하겠다는 의미이다.
|
||||
[numthreads(256, 1, 1)]
|
||||
@@ -88,26 +67,47 @@ void CS_MAIN(
|
||||
|
||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||
|
||||
// 라이프타임 움직임
|
||||
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
||||
|
||||
// 라이프타임 움직임
|
||||
particle.vLifeTime.x += fTimeDelta;
|
||||
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||
{
|
||||
if (isLoop == false)
|
||||
{
|
||||
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//초기화
|
||||
particle.vRight = particleValue.vOriginRight;
|
||||
particle.vUp = particleValue.vOriginUp;
|
||||
particle.vLook = particleValue.vOriginLook;
|
||||
particle.vTranslation = particleValue.vOriginTranslation;
|
||||
|
||||
particle.vLifeTime.x = 0.f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (isMoveForward)
|
||||
{
|
||||
float4 vVelocity = vector(normalize(particleValue.vOriginLook.xyz) * particleValue.fSpeed, 1.f);
|
||||
|
||||
Billboard(particle);
|
||||
particle.vTranslation += vVelocity * fTimeDelta;
|
||||
}
|
||||
|
||||
if (isDrop == true)
|
||||
{
|
||||
particle.vTranslation.y -= 0.5f * particle.vLifeTime.x * particleValue.fGravity;
|
||||
}
|
||||
|
||||
|
||||
/* 사인 웨이브 */
|
||||
if(isSinWave == true)
|
||||
{
|
||||
particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f);
|
||||
}
|
||||
|
||||
//애니메이션 속도 , 인덱스
|
||||
|
||||
particleValue.vAniTime.x += fTimeDelta;
|
||||
@@ -152,6 +152,13 @@ void CS_MAIN(
|
||||
{
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
particleValue.vDistortionUVMoveTime.x += fTimeDelta;
|
||||
|
||||
if (particleValue.vDistortionUVMoveTime.x >= particleValue.vDistortionUVMoveTime.y)
|
||||
{
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
|
||||
//아웃풋 대입
|
||||
|
||||
@@ -3170,4 +3170,442 @@
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Potions">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_chimney_base_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_construction_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_A_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_EXT_Glass_B_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_roof_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_stairs_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_walls_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_windows_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_02</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_02_Lod1</PrototypeTag>
|
||||
<Position x="-1.6064503" y="13.473031" z="3.750792"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="2.6680425e-08" y="39.999992" z="0.76607656"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="1.893271" y="1.7882199" z="-0.11462327"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="2.7098262" y="1.79" z="-0.10712489"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Lod2</PrototypeTag>
|
||||
<Position x="0.15000001" y="5.7600002" z="-1.14"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_Store_Sign_Base_Lod2</PrototypeTag>
|
||||
<Position x="0.15974024" y="5.6707902" z="0.1"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_window_01_Lod2</PrototypeTag>
|
||||
<Position x="3.400166" y="1.75" z="0.80000001"/>
|
||||
<Scale x="0.99999988" y="1" z="0.99999988"/>
|
||||
<Rotation x="0" y="89.999985" z="0"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_apl_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_apl_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_pl_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Potions_ext_pl_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Salon">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Chimney_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Front_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_A_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Glass_B_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Roof_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Trim_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_C_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_ext_Walls_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Window_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_HangingSign_Lod3</PrototypeTag>
|
||||
<Position x="0" y="3.4999988" z="-1.8000009"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="0.13" y="8.2092218" z="0.41220239"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="1.3" y="8.1981268" z="1.0374027"/>
|
||||
<Scale x="0.99999988" y="1" z="0.99999988"/>
|
||||
<Rotation x="-0" y="-89.999985" z="-0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="2" y="6.3863354" z="2.9457324"/>
|
||||
<Scale x="1.1999999" y="1" z="1.0999999"/>
|
||||
<Rotation x="-5" y="-90" z="-4.9999995"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2</PrototypeTag>
|
||||
<Position x="-8.3568792" y="0.80000001" z="-1.6207882"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-3" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_Trim_B_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-2.6814308" y="0.92141211" z="-1.8"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="3">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Frame_Upper_Lod2</PrototypeTag>
|
||||
<Position x="-8.6813736" y="4.3339376" z="-1.4801892"/>
|
||||
<Scale x="0.89999998" y="0.73000002" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ivy_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Large_Lod2</PrototypeTag>
|
||||
<Position x="3.4525731" y="0.83482361" z="5.0455632"/>
|
||||
<Scale x="0.79999983" y="1" z="0.99999988"/>
|
||||
<Rotation x="0" y="89.999985" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-3.5" y="0.85000002" z="-1.6772487"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-6.0000005" y="3.0000002" z="0.31516549"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-4.3961501" y="0.81273413" z="-1.6580117"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="6">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-9.3999996" y="0.90415895" z="-1.5514936"/>
|
||||
<Scale x="0.89999998" y="1" z="1"/>
|
||||
<Rotation x="-3" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="7">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-10.220788" y="0.8900497" z="-1.5313393"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="8">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Window_Small_Lod2</PrototypeTag>
|
||||
<Position x="-11.041821" y="0.90617418" z="-1.5062355"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="-5" y="0" z="2.0076332"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_APL_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_APL_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="1" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_PL_COL</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Salon_Ext_PL_COL_Lod1</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="HM_Hengist_Tree">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_A_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Branch_Loose_B_Lod2</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Branches_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Fountain_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Statue_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="3" Key_Index="1">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod2</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Trunk_Lod3</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<Collision Lod_Level="0" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_Roots_COL</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
<Collision Lod_Level="0" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_Hengist_Tree_PL_A_COL</PrototypeTag>
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
</Land>
|
||||
|
||||
|
After Width: | Height: | Size: 14 MiB |
|
After Width: | Height: | Size: 6.2 MiB |
@@ -3,6 +3,8 @@ 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;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
float PI = 3.141592;
|
||||
|
||||
struct Particle
|
||||
{
|
||||
float4 vRight;
|
||||
@@ -26,8 +28,9 @@ struct ParticleValue
|
||||
float2 vAniTime;
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
|
||||
|
||||
float3 vSinAmount;
|
||||
};
|
||||
|
||||
|
||||
@@ -42,40 +45,16 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
row_major matrix CamViewInvMatrix;
|
||||
|
||||
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
||||
bool isBillboard;
|
||||
bool isPadding2;
|
||||
bool isPadding3;
|
||||
bool isDrop;
|
||||
bool isMoveForward;
|
||||
bool isSinWave;
|
||||
|
||||
float fTimeDelta;
|
||||
float fPadding; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding1; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
||||
float fPadding2;
|
||||
float fPadding3;
|
||||
}
|
||||
|
||||
void Billboard(Particle particle)
|
||||
{
|
||||
if (isBillboard == true)
|
||||
{
|
||||
float3 vScale;
|
||||
|
||||
vScale.x = length(particle.vRight);
|
||||
vScale.y = length(particle.vUp);
|
||||
vScale.z = length(particle.vLook);
|
||||
|
||||
|
||||
particle.vRight = CamViewInvMatrix[0] * vScale.x;
|
||||
particle.vUp = CamViewInvMatrix[1] * vScale.y;
|
||||
particle.vLook = CamViewInvMatrix[2] * vScale.z;
|
||||
|
||||
//180도 회전 시키기
|
||||
particle.vRight.x *= -1.f;
|
||||
particle.vLook.z *= -1.f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
||||
//GPU 칩의 개수를 X * Y * Z의 개수 만큼 사용하겠다는 의미이다.
|
||||
[numthreads(256, 1, 1)]
|
||||
@@ -88,26 +67,47 @@ void CS_MAIN(
|
||||
|
||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||
|
||||
// 라이프타임 움직임
|
||||
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
||||
|
||||
// 라이프타임 움직임
|
||||
particle.vLifeTime.x += fTimeDelta;
|
||||
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||
{
|
||||
if (isLoop == false)
|
||||
{
|
||||
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//초기화
|
||||
particle.vRight = particleValue.vOriginRight;
|
||||
particle.vUp = particleValue.vOriginUp;
|
||||
particle.vLook = particleValue.vOriginLook;
|
||||
particle.vTranslation = particleValue.vOriginTranslation;
|
||||
|
||||
particle.vLifeTime.x = 0.f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (isMoveForward)
|
||||
{
|
||||
float4 vVelocity = vector(normalize(particleValue.vOriginLook.xyz) * particleValue.fSpeed, 1.f);
|
||||
|
||||
Billboard(particle);
|
||||
particle.vTranslation += vVelocity * fTimeDelta;
|
||||
}
|
||||
|
||||
if (isDrop == true)
|
||||
{
|
||||
particle.vTranslation.y -= 0.5f * particle.vLifeTime.x * particleValue.fGravity;
|
||||
}
|
||||
|
||||
|
||||
/* 사인 웨이브 */
|
||||
if(isSinWave == true)
|
||||
{
|
||||
particle.vTranslation += vector( sin(particle.vLifeTime.x * 3.141592 * 2.f) * particleValue.vSinAmount, 0.f);
|
||||
}
|
||||
|
||||
//애니메이션 속도 , 인덱스
|
||||
|
||||
particleValue.vAniTime.x += fTimeDelta;
|
||||
@@ -152,6 +152,13 @@ void CS_MAIN(
|
||||
{
|
||||
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
particleValue.vDistortionUVMoveTime.x += fTimeDelta;
|
||||
|
||||
if (particleValue.vDistortionUVMoveTime.x >= particleValue.vDistortionUVMoveTime.y)
|
||||
{
|
||||
particleValue.vDistortionUVMoveTime.x = 0.f;
|
||||
}
|
||||
|
||||
|
||||
//아웃풋 대입
|
||||
|
||||
@@ -191,6 +191,28 @@ PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||
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;
|
||||
@@ -320,13 +342,12 @@ PS_OUT PS_Rotation(PS_IN In)
|
||||
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);
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
|
||||
|
||||
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;
|
||||
@@ -337,9 +358,8 @@ PS_OUT PS_Rotation(PS_IN In)
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
else
|
||||
{
|
||||
//int iTotalFrame = g_iImageCountX * g_iImageCountY;
|
||||
//int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame;
|
||||
//int iFrameX = iCurrentFrame % g_iImageCountX;
|
||||
@@ -354,63 +374,50 @@ PS_OUT PS_Rotation(PS_IN In)
|
||||
//float4 tex3 = g_Texture2.Sample(DefaultSampler, UV);
|
||||
//if (tex3.r <= 0.5f)
|
||||
// discard;
|
||||
switch (g_iSpellType)
|
||||
{
|
||||
case 1:
|
||||
BGColor = float3(208.f, 179.f, 54.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
BGColor = float3(89.f, 32.f, 215.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
BGColor = float3(190.f, 46., 34.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
BGColor = float3(37.f, 129.f, 162.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 5:
|
||||
BGColor = float3(134.f, 171.f, 78.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
BGColor = float3(0.f, 80.f, 55.f) / 255.f;
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
BGColor = float3(0.f, 0.f, 0.f);
|
||||
tex1.rgb *= BGColor;
|
||||
break;
|
||||
}
|
||||
|
||||
color = tex1;
|
||||
float3 BGColor = float3(1.f, 1.f, 1.f);
|
||||
|
||||
//color = tex3;
|
||||
|
||||
if (tex2.a >= 0.9f)
|
||||
color = tex2;
|
||||
|
||||
float CoolTime = 1.f - g_fDeltaV;
|
||||
|
||||
if (In.vTexcoord.y <= CoolTime)
|
||||
{
|
||||
color.a = 0.f;
|
||||
}
|
||||
|
||||
color.a *= Alpha;
|
||||
|
||||
Out.vColor = color;
|
||||
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;
|
||||
color = tex1;
|
||||
//color = tex3;
|
||||
|
||||
float CoolTime = 1.f - g_fDeltaV;
|
||||
if (In.vTexcoord.y <= CoolTime)
|
||||
{
|
||||
color.a = 0.f;
|
||||
}
|
||||
|
||||
|
||||
color.a *= Alpha;
|
||||
Out.vColor = color;
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -520,6 +527,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);
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
#include "Engine_Shader_Defines.hlsli"
|
||||
|
||||
float PI = 3.141592;
|
||||
|
||||
struct ParticleValue
|
||||
{
|
||||
float fSpeed;
|
||||
@@ -312,12 +310,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
//디스토션(노이즈) 텍스쳐로 uv를 왜곡함
|
||||
|
||||
UV = UV + (vMtrlDistortion).rg * g_fNoiseDistortionIntensity;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* 최종 색깔 */
|
||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, UV);
|
||||
|
||||
|
||||
|
||||
if (g_vColor.a > 0)
|
||||
vMtrlDiffuse += g_vColor;
|
||||
@@ -354,14 +354,14 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
||||
{
|
||||
float2 UV; // 이미지의 UV값
|
||||
|
||||
float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iMaskDistortionMoveLerpOption);
|
||||
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_vUVCutting * g_fNoiseDistortionIntensity;
|
||||
vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity;
|
||||
|
||||
vMtrlDiffuse *= vMtrlDistortion.r;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -529,8 +529,8 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
||||
//0.5f를 빼는 이유는 중심을 0으로 옮겨서 양음수 방향으로 offset을 줄수 있다.
|
||||
vMtrlDistortion.rg -= 0.5f;
|
||||
|
||||
//아마 분할되었다면 noise도 분할해야할듯
|
||||
vMtrlDistortion.rg /= g_vUVCutting;
|
||||
////아마 분할되었다면 noise도 분할해야할듯
|
||||
//vMtrlDistortion.rg /= g_vUVCutting;
|
||||
|
||||
//디스토션(노이즈) 텍스쳐로 uv를 왜곡함
|
||||
|
||||
@@ -573,14 +573,13 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
||||
{
|
||||
float2 UV; // 이미지의 UV값
|
||||
|
||||
float2 vDistortionUV = In.vTexcoord + SelectLerpUV(g_vMaskDistortionUVGainAmount, (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y), g_iMaskDistortionMoveLerpOption);
|
||||
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_vUVCutting * g_fNoiseDistortionIntensity;
|
||||
|
||||
vMtrlDiffuse *= vMtrlDistortion.r;
|
||||
vMaskTexcoord = vMaskTexcoord + (vMtrlDistortion - 0.5f).r * g_fNoiseDistortionIntensity;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 5.1 MiB |
|
After Width: | Height: | Size: 3.6 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 781 KiB |
|
After Width: | Height: | Size: 2.1 MiB |
|
After Width: | Height: | Size: 243 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 2.5 MiB |
|
After Width: | Height: | Size: 5.8 MiB |
|
After Width: | Height: | Size: 8.0 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 767 KiB |
|
After Width: | Height: | Size: 9.4 MiB |
|
After Width: | Height: | Size: 496 KiB |
|
After Width: | Height: | Size: 4.2 MiB |
|
After Width: | Height: | Size: 2.8 MiB |
|
After Width: | Height: | Size: 667 KiB |
|
After Width: | Height: | Size: 382 KiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 386 KiB |
|
After Width: | Height: | Size: 304 KiB |