@@ -46,5 +46,4 @@
|
|||||||
*.RTF diff=astextplain
|
*.RTF diff=astextplain
|
||||||
|
|
||||||
*.fbx filter=lfs diff=lfs merge=lfs -text
|
*.fbx filter=lfs diff=lfs merge=lfs -text
|
||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
|
||||||
*.dds filter=lfs diff=lfs merge=lfs -text
|
|
||||||
|
|||||||
@@ -32,6 +32,13 @@ sampler BorderZeroSampler = sampler_state
|
|||||||
BorderColor = float4(0, 0, 0, 0);
|
BorderColor = float4(0, 0, 0, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sampler PointSampler = sampler_state
|
||||||
|
{
|
||||||
|
Filter = MIN_MAG_MIP_POINT;
|
||||||
|
AddressU = wrap;
|
||||||
|
AddressV = wrap;
|
||||||
|
};
|
||||||
|
|
||||||
RasterizerState RS_Default
|
RasterizerState RS_Default
|
||||||
{
|
{
|
||||||
FillMode = Solid;
|
FillMode = Solid;
|
||||||
@@ -106,9 +113,9 @@ BlendState BS_AlphaBlend // ALPHA_BLEND
|
|||||||
BlendEnable[7] = true;
|
BlendEnable[7] = true;
|
||||||
|
|
||||||
// Ac * Aa + Bc * (1 - Aa);
|
// Ac * Aa + Bc * (1 - Aa);
|
||||||
SrcBlend = Src_Alpha;
|
SrcBlend = Src_Alpha;
|
||||||
DestBlend = Inv_Src_Alpha;
|
DestBlend = Inv_Src_Alpha;
|
||||||
BlendOp = Add;
|
BlendOp = Add;
|
||||||
};
|
};
|
||||||
|
|
||||||
BlendState BS_Blend // ADDITIVE_BLEND
|
BlendState BS_Blend // ADDITIVE_BLEND
|
||||||
@@ -183,3 +190,21 @@ float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndex
|
|||||||
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
||||||
return vOriginalUV * vDelta + vOffset;
|
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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
|
|
||||||
struct PS_IN
|
struct PS_IN
|
||||||
{
|
{
|
||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -69,16 +69,16 @@ PS_OUT_BACKBUFFER PS_OUT_LASTCOLOR(PS_IN In)
|
|||||||
Out.vBackBuffer.rgb = vColorTexture.rgb;
|
Out.vBackBuffer.rgb = vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
Out.vBackBuffer.rgb *= vColorTexture.rgb;
|
Out.vBackBuffer.rgb += vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
Out.vBackBuffer.rgb -= vColorTexture.rgb;
|
Out.vBackBuffer.rgb -= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Out.vBackBuffer.rgb /= vColorTexture.rgb;
|
Out.vBackBuffer.rgb *= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
Out.vBackBuffer.rgb += vColorTexture.rgb;
|
Out.vBackBuffer.rgb /= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ struct Particle
|
|||||||
|
|
||||||
struct ParticleValue
|
struct ParticleValue
|
||||||
{
|
{
|
||||||
float fSpeed;
|
float fSpeed;
|
||||||
float fRotaionSpeed;
|
float fRotaionSpeed;
|
||||||
|
|
||||||
float4 vOriginRight;
|
float4 vOriginRight;
|
||||||
float4 vOriginUp;
|
float4 vOriginUp;
|
||||||
@@ -21,40 +21,56 @@ struct ParticleValue
|
|||||||
|
|
||||||
float2 vMaskingUVMoveTime;
|
float2 vMaskingUVMoveTime;
|
||||||
float2 vDiffuseUVMoveTime;
|
float2 vDiffuseUVMoveTime;
|
||||||
|
float2 vNoiseUVMoveTime;
|
||||||
float2 vAniTime;
|
float2 vAniTime;
|
||||||
|
|
||||||
float2 vAniIndex;
|
float2 vAniIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParticleOut
|
|
||||||
{
|
|
||||||
float4 vRight;
|
|
||||||
float4 vUp;
|
|
||||||
float4 vLook;
|
|
||||||
float4 vTranslation;
|
|
||||||
float2 vLifeTime;
|
|
||||||
|
|
||||||
float2 vMaskingUVMoveTime;
|
|
||||||
float2 vDiffuseUVMoveTime;
|
|
||||||
float2 vAniTime;
|
|
||||||
|
|
||||||
float2 vAniIndex;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
StructuredBuffer<Particle> g_ParticleBufferInput : register(t0);
|
StructuredBuffer<Particle> g_ParticleBufferInput : register(t0);
|
||||||
StructuredBuffer<ParticleValue> g_ParticleValueBufferInput : register(t1);
|
StructuredBuffer<ParticleValue> g_ParticleValueBufferInput : register(t1);
|
||||||
|
|
||||||
RWStructuredBuffer<ParticleOut> g_ParticleBufferOutput : register(u0);
|
RWStructuredBuffer<Particle> g_VBInstanceOutput : register(u0);
|
||||||
|
RWStructuredBuffer<ParticleValue> g_ParticleValueOutput : register(u1);
|
||||||
|
|
||||||
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
||||||
{
|
{
|
||||||
float fTimeDelta;
|
row_major matrix CamViewInvMatrix;
|
||||||
|
|
||||||
|
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
||||||
|
bool isBillboard;
|
||||||
|
bool isPadding2;
|
||||||
|
bool isPadding3;
|
||||||
|
|
||||||
|
float fTimeDelta;
|
||||||
|
float fPadding; // 반드시 상수버퍼는 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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
float fPadding; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
|
||||||
float fPadding2;
|
|
||||||
float fPadding3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
||||||
@@ -69,8 +85,6 @@ void CS_MAIN(
|
|||||||
|
|
||||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||||
|
|
||||||
ParticleOut ParticleOut;
|
|
||||||
|
|
||||||
// 라이프타임 움직임
|
// 라이프타임 움직임
|
||||||
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
||||||
|
|
||||||
@@ -78,10 +92,18 @@ void CS_MAIN(
|
|||||||
|
|
||||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||||
{
|
{
|
||||||
|
if (isLoop == false)
|
||||||
|
{
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
particle.vLifeTime.x = 0.f;
|
particle.vLifeTime.x = 0.f;
|
||||||
particle.vTranslation.y = 0.f;
|
particle.vTranslation.y = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Billboard(particle);
|
||||||
|
|
||||||
|
|
||||||
//애니메이션 속도 , 인덱스
|
//애니메이션 속도 , 인덱스
|
||||||
|
|
||||||
@@ -91,7 +113,7 @@ void CS_MAIN(
|
|||||||
{
|
{
|
||||||
particleValue.vAniTime.x = 0.f;
|
particleValue.vAniTime.x = 0.f;
|
||||||
|
|
||||||
particleValue.vAniIndex.x++;
|
particleValue.vAniIndex.x += 1.f;
|
||||||
|
|
||||||
if (particleValue.vAniIndex.x > particleValue.vAniIndex.y) // 애니메이션에 끝에 다다랐다면
|
if (particleValue.vAniIndex.x > particleValue.vAniIndex.y) // 애니메이션에 끝에 다다랐다면
|
||||||
{
|
{
|
||||||
@@ -105,7 +127,7 @@ void CS_MAIN(
|
|||||||
|
|
||||||
particleValue.vMaskingUVMoveTime.x += fTimeDelta;
|
particleValue.vMaskingUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
if (particleValue.vMaskingUVMoveTime.x >= particleValue.vMaskingUVMoveTime.x)
|
if (particleValue.vMaskingUVMoveTime.x >= particleValue.vMaskingUVMoveTime.y)
|
||||||
{
|
{
|
||||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||||
}
|
}
|
||||||
@@ -115,25 +137,23 @@ void CS_MAIN(
|
|||||||
|
|
||||||
particleValue.vDiffuseUVMoveTime.x += fTimeDelta;
|
particleValue.vDiffuseUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
if (particleValue.vDiffuseUVMoveTime.x >= particleValue.vDiffuseUVMoveTime.x)
|
if (particleValue.vDiffuseUVMoveTime.x >= particleValue.vDiffuseUVMoveTime.y)
|
||||||
{
|
{
|
||||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//노이즈 움직임
|
||||||
|
particleValue.vNoiseUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
|
if (particleValue.vNoiseUVMoveTime.x >= particleValue.vNoiseUVMoveTime.y)
|
||||||
|
{
|
||||||
|
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//아웃풋 대입
|
//아웃풋 대입
|
||||||
|
|
||||||
ParticleOut.vRight = particle.vRight;
|
g_VBInstanceOutput[iIndex] = particle;
|
||||||
ParticleOut.vUp = particle.vUp;
|
g_ParticleValueOutput[iIndex] = particleValue;
|
||||||
ParticleOut.vLook = particle.vLook;
|
|
||||||
ParticleOut.vTranslation = particle.vTranslation;
|
|
||||||
ParticleOut.vLifeTime = particle.vLifeTime;
|
|
||||||
|
|
||||||
ParticleOut.vMaskingUVMoveTime = particleValue.vMaskingUVMoveTime;
|
|
||||||
ParticleOut.vDiffuseUVMoveTime = particleValue.vDiffuseUVMoveTime;
|
|
||||||
ParticleOut.vAniTime = particleValue.vAniTime;
|
|
||||||
ParticleOut.vAniIndex = particleValue.vAniIndex;
|
|
||||||
|
|
||||||
|
|
||||||
g_ParticleBufferOutput[iIndex] = ParticleOut;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,17 +3,24 @@
|
|||||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
Texture2D g_DepthTexture;
|
Texture2D g_DepthTexture;
|
||||||
|
|
||||||
int g_iImageCount;
|
int g_iImageCountX;
|
||||||
|
int g_iImageCountY;
|
||||||
|
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
float g_fTime;
|
float g_fTime;
|
||||||
float g_fFrame;
|
float g_fFrame;
|
||||||
|
float g_fAlpha;
|
||||||
|
float g_fOwnerAlpha;
|
||||||
|
float g_fCanvasAlpha;
|
||||||
float g_fDeltaU;
|
float g_fDeltaU;
|
||||||
float g_fDeltaV;
|
float g_fDeltaV;
|
||||||
uint g_iIndexU;
|
uint g_iIndexU;
|
||||||
uint g_iIndexV;
|
uint g_iIndexV;
|
||||||
|
|
||||||
|
uint g_iQuestType;
|
||||||
|
|
||||||
Texture2D g_Texture;
|
Texture2D g_Texture;
|
||||||
|
Texture2D g_Texture1;
|
||||||
Texture2D g_Texture2;
|
Texture2D g_Texture2;
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture;
|
||||||
Texture2D g_MaskingTexture;
|
Texture2D g_MaskingTexture;
|
||||||
@@ -57,7 +64,7 @@ struct PS_OUT
|
|||||||
float4 vColor : SV_Target0;
|
float4 vColor : SV_Target0;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT PS_MAIN(PS_IN In) // 일반 UI
|
PS_OUT PS_MAIN(PS_IN In) // ?쇰컲 UI
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
@@ -70,86 +77,6 @@ PS_OUT PS_MAIN(PS_IN In) // 일반 UI
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PS_OUT PS_Cursor(PS_IN In) // 마우스 커서
|
|
||||||
{
|
|
||||||
PS_OUT Out;
|
|
||||||
|
|
||||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f); // Out에 출력하기 위한 값
|
|
||||||
float4 White = float4(1.f, 1.f, 1.f, 1.f); // 마지막에 하얀색으로 바꿔주기 위한 값
|
|
||||||
|
|
||||||
float2 UV = In.vTexcoord; // UV를 돌리기 위해서 받아옴
|
|
||||||
float2 Center = float2(0.5f, 0.5f); // 이미지를 회전 하기 전에 중심으로 옮길 값
|
|
||||||
|
|
||||||
float CW = -g_fTime; // 시계 방향
|
|
||||||
float CCW = g_fTime; // 반시계 방향
|
|
||||||
|
|
||||||
float2 RedCircle = UV; // 빨간 원을 반시계 방향으로 돌려주기 위한 준비
|
|
||||||
float2 RedUV = UV - Center; // 중심으로 옮겨줌
|
|
||||||
// 값을 돌리기 위해서 회전 행렬을 만들어 준다.
|
|
||||||
RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW); // x축은 x*cos(각도) - y*sin(각도)
|
|
||||||
RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW); // y축은 x*sin(각도) + y*cos(각도)
|
|
||||||
RedCircle = RedCircle + Center; // 이제 위에서 다 돌려주면 다시 중심에서 원점으로 옮겨준다.
|
|
||||||
|
|
||||||
float2 BlueCircle = UV; // 파란색은 시계 방향으로 돌려준다
|
|
||||||
float2 BlueUV = UV - Center; // 중심으로 옮겨줌
|
|
||||||
// 값을 돌리기 위해서 회전 행렬을 만들어 준다.
|
|
||||||
BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW); // x축은 x*cos(각도) - y*sin(각도)
|
|
||||||
BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW); // y축은 x*sin(각도) + y*cos(각도)
|
|
||||||
BlueCircle = BlueCircle + Center; // 이제 위에서 다 돌려주면 다시 중심에서 원점으로 옮겨준다.
|
|
||||||
|
|
||||||
// 두개 다 같은 이미지 인데 원의 색상이 2개임
|
|
||||||
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle); // 큰 원은 빨간색임
|
|
||||||
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle); // 작은 원은 파란색임
|
|
||||||
|
|
||||||
if (Texture1.r >= 0.7f) // 우선 빨간 원을 먼저 그려준다.
|
|
||||||
Color = Texture1;
|
|
||||||
|
|
||||||
if (Texture2.b >= 0.7f) // 다음으로 파란 원을 그려준다.
|
|
||||||
Color = Texture2;
|
|
||||||
|
|
||||||
if (all(Color.rgb <= 0.5f)) // 이제 혹시 모를 색상이 들어갈 수 있어서 한번 정리 해준다.
|
|
||||||
discard;
|
|
||||||
|
|
||||||
Color = White; // 하얀색으로 바꿔줌
|
|
||||||
|
|
||||||
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); // 최종 이미지 출력
|
|
||||||
|
|
||||||
float2 UV = In.vTexcoord; // 이미지의 UV값
|
|
||||||
|
|
||||||
int iTotalFrame = g_iImageCount * g_iImageCount; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
|
||||||
|
|
||||||
int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame; // 현재 프레임이 어디 위치인지
|
|
||||||
|
|
||||||
int iFrameX = iCurrentFrame % g_iImageCount; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
|
||||||
int iFrameY = iCurrentFrame / g_iImageCount; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
|
||||||
|
|
||||||
float fFreamWidth = 1.0 / g_iImageCount; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
|
||||||
float fFreamHeight = 1.0 / g_iImageCount; // 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로 만든 다음에 한줄씩 밑으로 내려준다.
|
|
||||||
|
|
||||||
float4 Texture = g_Texture.Sample(DefaultSampler, UV);
|
|
||||||
|
|
||||||
Color = Texture;
|
|
||||||
|
|
||||||
if (Color.r <= 0.f)
|
|
||||||
discard;
|
|
||||||
|
|
||||||
Out.vColor = Color;
|
|
||||||
|
|
||||||
return Out;
|
|
||||||
}
|
|
||||||
|
|
||||||
PS_OUT PS_AlphaBlend(PS_IN In)
|
PS_OUT PS_AlphaBlend(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
@@ -161,22 +88,142 @@ PS_OUT PS_AlphaBlend(PS_IN In)
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PS_OUT PS_Key_Hold(PS_IN In)
|
PS_OUT PS_Clamp(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
float3 Grey = float3(128.f, 128.f, 128.f) / 255.f;
|
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
Out.vColor = Color;
|
||||||
|
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_Cursor(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
float CW = -g_fTime;
|
||||||
|
float CCW = g_fTime;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
|
||||||
|
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
|
||||||
|
|
||||||
|
if (Texture1.r >= 0.7f)
|
||||||
|
Color = Texture1;
|
||||||
|
|
||||||
|
if (Texture2.b >= 0.7f)
|
||||||
|
Color = Texture2;
|
||||||
|
|
||||||
|
if (all(Color.rgb <= 0.5f))
|
||||||
|
discard;
|
||||||
|
|
||||||
|
Color = White;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
if (Color.r >= 0.3f)
|
if (Color.a <= 0.1f)
|
||||||
Color.rgb = Grey;
|
discard;
|
||||||
|
|
||||||
Out.vColor = Color;
|
Out.vColor = Color;
|
||||||
|
|
||||||
return Out;
|
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;
|
||||||
|
float2 UV = In.vTexcoord;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
|
||||||
|
UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
|
||||||
|
|
||||||
|
float4 Texture = g_Texture.Sample(DefaultSampler, UV);
|
||||||
|
|
||||||
|
Color = Texture;
|
||||||
|
|
||||||
|
if (Color.r <= 0.4f)
|
||||||
|
discard;
|
||||||
|
|
||||||
|
Color.a = Alpha;
|
||||||
|
|
||||||
|
Out.vColor = Color;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_QuestType(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
float3 Color = float3(253.f, 207.f, 11.f) / 255.f;
|
||||||
|
float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
if (g_iQuestType == 0)
|
||||||
|
{
|
||||||
|
if (Texture1.r >= 0.3f)
|
||||||
|
{
|
||||||
|
Texture1.rgb = Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Out.vColor = Texture1;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_UVMult(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
Out.vColor = color;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
technique11 PosTexTechnique11
|
technique11 PosTexTechnique11
|
||||||
{
|
{
|
||||||
pass Default
|
pass Default
|
||||||
@@ -199,6 +246,16 @@ technique11 PosTexTechnique11
|
|||||||
PixelShader = compile ps_5_0 PS_AlphaBlend();
|
PixelShader = compile ps_5_0 PS_AlphaBlend();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass TextureClamp
|
||||||
|
{
|
||||||
|
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_Clamp();
|
||||||
|
}
|
||||||
|
|
||||||
pass Mouse_Cursor
|
pass Mouse_Cursor
|
||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
@@ -213,19 +270,39 @@ technique11 PosTexTechnique11
|
|||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
SetDepthStencilState(DSS_Default, 0);
|
SetDepthStencilState(DSS_Default, 0);
|
||||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||||
VertexShader = compile vs_5_0 VS_MAIN();
|
VertexShader = compile vs_5_0 VS_MAIN();
|
||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_Sptire_Sheet();
|
PixelShader = compile ps_5_0 PS_Sptire_Sheet();
|
||||||
}
|
}
|
||||||
|
|
||||||
pass Key_Hold
|
pass Key_Hold_Rotation
|
||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
SetDepthStencilState(DSS_Default, 0);
|
SetDepthStencilState(DSS_Default, 0);
|
||||||
SetBlendState(BS_AlphaBlend, 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();
|
VertexShader = compile vs_5_0 VS_MAIN();
|
||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_Key_Hold();
|
PixelShader = compile ps_5_0 PS_Key_Hold_Rotation();
|
||||||
|
}
|
||||||
|
|
||||||
|
pass QuestType
|
||||||
|
{
|
||||||
|
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_QuestType();
|
||||||
|
}
|
||||||
|
|
||||||
|
pass UVMult
|
||||||
|
{
|
||||||
|
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_UVMult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,12 @@ float g_LifeRatio;
|
|||||||
float g_fRimStrength;
|
float g_fRimStrength;
|
||||||
float g_fRimPower;
|
float g_fRimPower;
|
||||||
float3 g_vRimColor;
|
float3 g_vRimColor;
|
||||||
|
float4 g_TestColor;
|
||||||
vector g_vCamPosition;
|
vector g_vCamPosition;
|
||||||
|
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture;
|
||||||
Texture2D g_NormalTexture;
|
Texture2D g_NormalTexture;
|
||||||
|
Texture2D g_MaskingTexture;
|
||||||
|
|
||||||
matrix g_BoneMatrices[512];
|
matrix g_BoneMatrices[512];
|
||||||
|
|
||||||
@@ -272,6 +274,38 @@ PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In)
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_MAIN_TEST(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
float4 vMtrlDiffuse = g_TestColor;
|
||||||
|
|
||||||
|
float4 vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
float fAlpha = vMtrlMask.r;
|
||||||
|
|
||||||
|
if (fAlpha < 0.1f)
|
||||||
|
discard;
|
||||||
|
|
||||||
|
float4 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 (g_bRimLight)
|
||||||
|
{
|
||||||
|
float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength);
|
||||||
|
vMtrlDiffuse.rgb = lerp(vMtrlDiffuse.rgb, g_vRimColor.rgb, fRimLight);
|
||||||
|
}
|
||||||
|
|
||||||
|
Out.vDiffuse = float4(vMtrlDiffuse.rgb * vMtrlMask.r, g_TestColor.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
technique11 DefaultTechnique
|
technique11 DefaultTechnique
|
||||||
{
|
{
|
||||||
@@ -313,4 +347,14 @@ technique11 DefaultTechnique
|
|||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
|
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass TestPass
|
||||||
|
{
|
||||||
|
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_TEST();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
if (vMtrlDiffuse.a < 0.4f)
|
if (vMtrlDiffuse.a < 0.1f)
|
||||||
{
|
{
|
||||||
discard;
|
discard;
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
PS_OUT PS_MAIN_OUTLINE(PS_IN In)
|
PS_OUT PS_MAIN_SELECT(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
@@ -195,7 +195,7 @@ PS_OUT PS_MAIN_OUTLINE(PS_IN In)
|
|||||||
|
|
||||||
float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix);
|
float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix);
|
||||||
|
|
||||||
Out.vDiffuse = vMtrlDiffuse;
|
Out.vDiffuse = vMtrlDiffuse * float4(0.f, 1.f, 1.f, 0.3f);
|
||||||
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.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);
|
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f);
|
||||||
return Out;
|
return Out;
|
||||||
@@ -439,4 +439,14 @@ technique11 MeshTechnique11
|
|||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_EFFECT_UVMOVE();
|
PixelShader = compile ps_5_0 PS_EFFECT_UVMOVE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass MapToolPass // 11
|
||||||
|
{
|
||||||
|
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_SELECT();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,32 +1,68 @@
|
|||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture : register(t0);
|
||||||
Texture2D g_NormalTexture;
|
|
||||||
Texture2D g_MaskingTexture;
|
Texture2D g_NormalTexture : register(t1);
|
||||||
Texture2D g_DissolveTexture;
|
Texture2D g_MaskingTexture : register(t2);
|
||||||
Texture2D g_NoiseTexture;
|
Texture2D g_DissolveTexture : register(t3);
|
||||||
|
Texture2D g_NoiseTexture : register(t4);
|
||||||
|
|
||||||
|
StructuredBuffer<ParticleValue> g_ParticleValue : register(t5);
|
||||||
|
|
||||||
float4 g_vCamPosition;
|
float4 g_vCamPosition;
|
||||||
|
|
||||||
vector g_vColor;
|
vector g_vColor;
|
||||||
|
|
||||||
float2 g_vUVGainAmount;
|
float2 g_vDiffuseUVGainAmount;
|
||||||
float g_fBlurIntensity; //블러 세기
|
float2 g_vMaskingUVGainAmount;
|
||||||
|
|
||||||
|
float2 g_vDiffuseNoiseUVGainAmount;
|
||||||
|
float2 g_vMaskNoiseUVGainAmount;
|
||||||
|
|
||||||
|
float2 g_vUVCutting;
|
||||||
|
float2 g_vUVMaskCutting;
|
||||||
|
|
||||||
|
|
||||||
|
float g_fBlurIntensity; //블러 세기
|
||||||
|
float g_fNoiseDistortionIntensity; // 노이즈 왜곡 세기
|
||||||
|
|
||||||
float4 g_vEmissive;
|
float4 g_vEmissive;
|
||||||
float g_fColorOption;
|
float g_fColorOption;
|
||||||
float g_fEmissiveCutAlpha;
|
float g_fEmissiveCutAlpha;
|
||||||
|
|
||||||
bool g_isDiffuse;
|
bool g_isDiffuse;
|
||||||
bool g_isMasking;
|
bool g_isMasking;
|
||||||
bool g_isDissolve;
|
bool g_isDissolve;
|
||||||
bool g_isNoise;
|
bool g_isNoise;
|
||||||
bool g_isUVMove;
|
|
||||||
|
bool g_isDiffuseUVMove;
|
||||||
|
bool g_isMaskUVMove;
|
||||||
|
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
|
|
||||||
|
|
||||||
struct VS_IN
|
struct VS_IN
|
||||||
{
|
{
|
||||||
float3 vPosition : POSITION;
|
float3 vPosition : POSITION;
|
||||||
@@ -52,35 +88,34 @@ struct VS_OUT
|
|||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
float4 vWorldPos : TEXCOORD2;
|
float4 vWorldPos : TEXCOORD2;
|
||||||
float4 vProjPos : TEXCOORD3;
|
float4 vProjPos : TEXCOORD3;
|
||||||
|
uint iGPUIndex : TEXCOORD4;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT VS_MAIN(VS_IN In)
|
VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||||
{
|
{
|
||||||
VS_OUT Out = (VS_OUT) 0;
|
VS_OUT Out = (VS_OUT) 0;
|
||||||
|
|
||||||
matrix matWV, matWVP;
|
row_major matrix matW, matWV, matWVP;
|
||||||
|
|
||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
||||||
|
|
||||||
float4 vProjPos = vector(In.vPosition, 1.f);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vProjPos, matWVP);
|
|
||||||
Out.vProjPos = vProjPos;
|
|
||||||
|
|
||||||
|
matW = mul(g_WorldMatrix, TransformMatrix);
|
||||||
|
matWV = mul(matW, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), TransformMatrix);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
vector vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), TransformMatrix));
|
|
||||||
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), TransformMatrix)).xyz;
|
Out.vPosition = vPosition;
|
||||||
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), TransformMatrix)).xyz;
|
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.vTexcoord = In.vTexcoord;
|
||||||
Out.vLifeTime = In.vLifeTime;
|
Out.vLifeTime = In.vLifeTime;
|
||||||
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW);
|
||||||
|
Out.iGPUIndex = iGPUIndex;
|
||||||
|
Out.vProjPos = vPosition;
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -95,11 +130,12 @@ struct PS_IN
|
|||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
float4 vWorldPos : TEXCOORD2;
|
float4 vWorldPos : TEXCOORD2;
|
||||||
float4 vProjPos : TEXCOORD3;
|
float4 vProjPos : TEXCOORD3;
|
||||||
|
uint iGPUIndex : TEXCOORD4;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
{
|
{
|
||||||
float4 vDiffuse: SV_TARGET0;
|
float4 vDiffuse : SV_TARGET0;
|
||||||
float4 vColorTarget : SV_TARGET1;
|
float4 vColorTarget : SV_TARGET1;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -109,7 +145,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
|
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord);
|
vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
@@ -138,18 +174,48 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
|||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
vector vMtrlMask;
|
vector vMtrlMask;
|
||||||
vector vMtrlNoise;
|
vector vMtrlNoise;
|
||||||
vector vMtrlDisolve;
|
vector vMtrlDissolve;
|
||||||
|
|
||||||
float2 vTexcoord = In.vTexcoord;
|
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||||
|
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||||
if (g_isUVMove)
|
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||||
{
|
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||||
vTexcoord += g_vUVGainAmount * (In.vLifeTime.x / In.vLifeTime.y);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isDiffuse == true)
|
if (g_isDiffuse == true)
|
||||||
{
|
{
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vTexcoord);
|
float2 UV; // 이미지의 UV값
|
||||||
|
|
||||||
|
UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x));
|
||||||
|
|
||||||
|
if (g_isDiffuseUVMove)
|
||||||
|
{
|
||||||
|
UV += (g_vDiffuseUVGainAmount / g_vUVCutting) * (vDiffuseTime.x / vDiffuseTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 노이즈 */
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vDiffuseNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
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)
|
if (vMtrlDiffuse.a < 0.3f)
|
||||||
discard;
|
discard;
|
||||||
@@ -162,35 +228,51 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
|||||||
|
|
||||||
if (g_isMasking == true)
|
if (g_isMasking == true)
|
||||||
{
|
{
|
||||||
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vTexcoord);
|
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 + (g_vMaskNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
|
||||||
|
|
||||||
|
//노이즈 텍스쳐로 uv를 왜곡함
|
||||||
|
vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_isMaskUVMove)
|
||||||
|
{
|
||||||
|
if (vMaskingTime.y > 0)
|
||||||
|
vMaskTexcoord += g_vMaskingUVGainAmount * (vMaskingTime.x / vMaskingTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vMtrlMask.r = 1.f;
|
vMtrlMask.r = 1.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
|
||||||
|
|
||||||
if (g_isDissolve == true)
|
if (g_isDissolve == true)
|
||||||
{
|
{
|
||||||
vMtrlDisolve = g_DissolveTexture.Sample(DefaultSampler, vTexcoord);
|
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y))
|
||||||
|
discard;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
vMtrlDisolve.r = 0.f;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isNoise == true)
|
|
||||||
{
|
|
||||||
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vTexcoord);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r - vMtrlDisolve.r * (In.vLifeTime.x / In.vLifeTime.y));
|
|
||||||
|
|
||||||
|
|
||||||
Out.vDiffuse = vMtrlDiffuse;
|
Out.vDiffuse = vMtrlDiffuse;
|
||||||
|
|
||||||
// 색깔 추가할 처리 (이미시브)
|
// 색깔 추가할 처리 (이미시브)
|
||||||
if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha )
|
if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha)
|
||||||
Out.vColorTarget = vector(g_vEmissive.rgb, g_fColorOption / 10.f);
|
Out.vColorTarget = vector(g_vEmissive.rgb, g_fColorOption / 10.f);
|
||||||
else
|
else
|
||||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||||
@@ -204,30 +286,27 @@ struct VS_BLUR_OUT
|
|||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
|
uint iGPUIndex : TEXCOORD2;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_BLUR_OUT VS_BLUR(VS_IN In)
|
VS_BLUR_OUT VS_BLUR(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||||
{
|
{
|
||||||
VS_BLUR_OUT Out = (VS_BLUR_OUT) 0;
|
VS_BLUR_OUT Out = (VS_BLUR_OUT) 0;
|
||||||
|
|
||||||
matrix matWV, matWVP;
|
row_major matrix matW, matWV, matWVP;
|
||||||
|
|
||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
||||||
|
|
||||||
float4 vProjPos = vector(In.vPosition, 1.f);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vProjPos, matWVP);
|
|
||||||
|
|
||||||
|
matW = mul(g_WorldMatrix, TransformMatrix);
|
||||||
|
matWV = mul(matW, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
vector vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), TransformMatrix);
|
Out.vPosition = vPosition;
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
|
||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vLifeTime = In.vLifeTime;
|
Out.vLifeTime = In.vLifeTime;
|
||||||
|
Out.iGPUIndex = iGPUIndex;
|
||||||
|
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
@@ -238,6 +317,7 @@ struct PS_BLUR_IN
|
|||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
|
uint iGPUIndex : TEXCOORD2;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -255,18 +335,59 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
|||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
vector vMtrlMask;
|
vector vMtrlMask;
|
||||||
vector vMtrlNoise;
|
vector vMtrlNoise;
|
||||||
vector vMtrlDisolve;
|
vector vMtrlDissolve;
|
||||||
|
|
||||||
float2 vTexcoord = In.vTexcoord;
|
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||||
|
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||||
if (g_isUVMove)
|
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||||
{
|
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||||
vTexcoord += g_vUVGainAmount * (In.vLifeTime.x / In.vLifeTime.y);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isDiffuse == true)
|
if (g_isDiffuse == true)
|
||||||
{
|
{
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vTexcoord);
|
float2 UV = In.vTexcoord; // 이미지의 UV값
|
||||||
|
|
||||||
|
int iTotalFrame = g_vUVCutting.x * g_vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
||||||
|
|
||||||
|
int iCurrentFrame = int(fAnimIndex.x); // 현재 프레임이 어디 위치인지
|
||||||
|
|
||||||
|
int iFrameX = iCurrentFrame % (int) g_vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
||||||
|
int iFrameY = iCurrentFrame / (int) g_vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
||||||
|
|
||||||
|
float fFreamWidth = 1.0 / g_vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
||||||
|
float fFreamHeight = 1.0 / g_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로 만든 다음에 한줄씩 밑으로 내려준다.
|
||||||
|
|
||||||
|
|
||||||
|
if (g_isDiffuseUVMove)
|
||||||
|
{
|
||||||
|
UV += (g_vDiffuseUVGainAmount / g_vUVCutting) * (vDiffuseTime.x / vDiffuseTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 노이즈 */
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vDiffuseNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
vMtrlDiffuse += g_vColor;
|
||||||
|
|
||||||
if (vMtrlDiffuse.a < 0.3f)
|
if (vMtrlDiffuse.a < 0.3f)
|
||||||
discard;
|
discard;
|
||||||
@@ -279,30 +400,44 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
|||||||
|
|
||||||
if (g_isMasking == true)
|
if (g_isMasking == true)
|
||||||
{
|
{
|
||||||
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vTexcoord);
|
float2 vMaskTexcoord = In.vTexcoord;
|
||||||
|
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vMaskNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
|
||||||
|
|
||||||
|
//노이즈 텍스쳐로 uv를 왜곡함
|
||||||
|
vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_isMaskUVMove)
|
||||||
|
{
|
||||||
|
if (vMaskingTime.y > 0)
|
||||||
|
vMaskTexcoord += g_vMaskingUVGainAmount * (vMaskingTime.x / vMaskingTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vMtrlMask.r = 1.f;
|
vMtrlMask.r = 1.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
|
||||||
|
|
||||||
if (g_isDissolve == true)
|
if (g_isDissolve == true)
|
||||||
{
|
{
|
||||||
vMtrlDisolve = g_DissolveTexture.Sample(DefaultSampler, vTexcoord);
|
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
vMtrlDisolve.r = 0.f;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isNoise == true)
|
if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y))
|
||||||
{
|
discard;
|
||||||
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vTexcoord);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r - vMtrlDisolve.r * (In.vLifeTime.x / In.vLifeTime.y));
|
|
||||||
|
|
||||||
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity;
|
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity;
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
|
|||||||
@@ -125,6 +125,10 @@
|
|||||||
<AdditionalLibraryDirectories>../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>Engine.lib;fmod_vc.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Engine.lib;fmod_vc.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
|
<PreBuildEvent>
|
||||||
|
<Command>
|
||||||
|
</Command>
|
||||||
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
@@ -147,6 +151,10 @@
|
|||||||
<AdditionalLibraryDirectories>../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>../../EngineSDK/Lib/$(ConfigurationName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>Engine.lib;fmod_vc.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>Engine.lib;fmod_vc.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
</Link>
|
</Link>
|
||||||
|
<PreBuildEvent>
|
||||||
|
<Command>
|
||||||
|
</Command>
|
||||||
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\Public\Client_Define.h" />
|
<ClInclude Include="..\Public\Client_Define.h" />
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 1.9 MiB |
|
After Width: | Height: | Size: 8.1 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 7.8 MiB |
|
After Width: | Height: | Size: 3.6 MiB |
|
After Width: | Height: | Size: 7.2 MiB |
|
After Width: | Height: | Size: 2.0 MiB |
|
After Width: | Height: | Size: 2.3 MiB |
|
After Width: | Height: | Size: 3.8 MiB |
|
After Width: | Height: | Size: 6.9 MiB |
|
After Width: | Height: | Size: 11 MiB |
|
After Width: | Height: | Size: 16 MiB |
|
After Width: | Height: | Size: 7.5 MiB |
|
After Width: | Height: | Size: 4.1 MiB |
|
After Width: | Height: | Size: 8.4 MiB |
|
After Width: | Height: | Size: 6.4 MiB |
|
After Width: | Height: | Size: 8.8 MiB |
|
After Width: | Height: | Size: 4.5 MiB |
|
After Width: | Height: | Size: 8.0 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 5.4 MiB |
|
After Width: | Height: | Size: 3.2 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 5.3 MiB |
|
After Width: | Height: | Size: 4.3 MiB |
|
After Width: | Height: | Size: 16 MiB |
|
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 200 B |
@@ -32,6 +32,13 @@ sampler BorderZeroSampler = sampler_state
|
|||||||
BorderColor = float4(0, 0, 0, 0);
|
BorderColor = float4(0, 0, 0, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sampler PointSampler = sampler_state
|
||||||
|
{
|
||||||
|
Filter = MIN_MAG_MIP_POINT;
|
||||||
|
AddressU = wrap;
|
||||||
|
AddressV = wrap;
|
||||||
|
};
|
||||||
|
|
||||||
RasterizerState RS_Default
|
RasterizerState RS_Default
|
||||||
{
|
{
|
||||||
FillMode = Solid;
|
FillMode = Solid;
|
||||||
@@ -106,9 +113,9 @@ BlendState BS_AlphaBlend // ALPHA_BLEND
|
|||||||
BlendEnable[7] = true;
|
BlendEnable[7] = true;
|
||||||
|
|
||||||
// Ac * Aa + Bc * (1 - Aa);
|
// Ac * Aa + Bc * (1 - Aa);
|
||||||
SrcBlend = Src_Alpha;
|
SrcBlend = Src_Alpha;
|
||||||
DestBlend = Inv_Src_Alpha;
|
DestBlend = Inv_Src_Alpha;
|
||||||
BlendOp = Add;
|
BlendOp = Add;
|
||||||
};
|
};
|
||||||
|
|
||||||
BlendState BS_Blend // ADDITIVE_BLEND
|
BlendState BS_Blend // ADDITIVE_BLEND
|
||||||
@@ -183,3 +190,21 @@ float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndex
|
|||||||
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
||||||
return vOriginalUV * vDelta + vOffset;
|
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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ VS_OUT VS_MAIN(VS_IN In)
|
|||||||
|
|
||||||
struct PS_IN
|
struct PS_IN
|
||||||
{
|
{
|
||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -69,16 +69,16 @@ PS_OUT_BACKBUFFER PS_OUT_LASTCOLOR(PS_IN In)
|
|||||||
Out.vBackBuffer.rgb = vColorTexture.rgb;
|
Out.vBackBuffer.rgb = vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
Out.vBackBuffer.rgb *= vColorTexture.rgb;
|
Out.vBackBuffer.rgb += vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
Out.vBackBuffer.rgb -= vColorTexture.rgb;
|
Out.vBackBuffer.rgb -= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Out.vBackBuffer.rgb /= vColorTexture.rgb;
|
Out.vBackBuffer.rgb *= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
Out.vBackBuffer.rgb += vColorTexture.rgb;
|
Out.vBackBuffer.rgb /= vColorTexture.rgb;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ struct Particle
|
|||||||
|
|
||||||
struct ParticleValue
|
struct ParticleValue
|
||||||
{
|
{
|
||||||
float fSpeed;
|
float fSpeed;
|
||||||
float fRotaionSpeed;
|
float fRotaionSpeed;
|
||||||
|
|
||||||
float4 vOriginRight;
|
float4 vOriginRight;
|
||||||
float4 vOriginUp;
|
float4 vOriginUp;
|
||||||
@@ -21,40 +21,56 @@ struct ParticleValue
|
|||||||
|
|
||||||
float2 vMaskingUVMoveTime;
|
float2 vMaskingUVMoveTime;
|
||||||
float2 vDiffuseUVMoveTime;
|
float2 vDiffuseUVMoveTime;
|
||||||
|
float2 vNoiseUVMoveTime;
|
||||||
float2 vAniTime;
|
float2 vAniTime;
|
||||||
|
|
||||||
float2 vAniIndex;
|
float2 vAniIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParticleOut
|
|
||||||
{
|
|
||||||
float4 vRight;
|
|
||||||
float4 vUp;
|
|
||||||
float4 vLook;
|
|
||||||
float4 vTranslation;
|
|
||||||
float2 vLifeTime;
|
|
||||||
|
|
||||||
float2 vMaskingUVMoveTime;
|
|
||||||
float2 vDiffuseUVMoveTime;
|
|
||||||
float2 vAniTime;
|
|
||||||
|
|
||||||
float2 vAniIndex;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
StructuredBuffer<Particle> g_ParticleBufferInput : register(t0);
|
StructuredBuffer<Particle> g_ParticleBufferInput : register(t0);
|
||||||
StructuredBuffer<ParticleValue> g_ParticleValueBufferInput : register(t1);
|
StructuredBuffer<ParticleValue> g_ParticleValueBufferInput : register(t1);
|
||||||
|
|
||||||
RWStructuredBuffer<ParticleOut> g_ParticleBufferOutput : register(u0);
|
RWStructuredBuffer<Particle> g_VBInstanceOutput : register(u0);
|
||||||
|
RWStructuredBuffer<ParticleValue> g_ParticleValueOutput : register(u1);
|
||||||
|
|
||||||
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
|
||||||
{
|
{
|
||||||
float fTimeDelta;
|
row_major matrix CamViewInvMatrix;
|
||||||
|
|
||||||
|
bool isLoop; // 상수 버퍼에서 불값은 4바이트로 처리되기 때문에 반드시 클라에서는 int형으로 선언해라
|
||||||
|
bool isBillboard;
|
||||||
|
bool isPadding2;
|
||||||
|
bool isPadding3;
|
||||||
|
|
||||||
|
float fTimeDelta;
|
||||||
|
float fPadding; // 반드시 상수버퍼는 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;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
float fPadding; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
|
|
||||||
float fPadding2;
|
|
||||||
float fPadding3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
//내가 몇개의 스레드를 사용할 것인지 지정하는데
|
||||||
@@ -69,8 +85,6 @@ void CS_MAIN(
|
|||||||
|
|
||||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||||
|
|
||||||
ParticleOut ParticleOut;
|
|
||||||
|
|
||||||
// 라이프타임 움직임
|
// 라이프타임 움직임
|
||||||
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
|
||||||
|
|
||||||
@@ -78,10 +92,18 @@ void CS_MAIN(
|
|||||||
|
|
||||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||||
{
|
{
|
||||||
|
if (isLoop == false)
|
||||||
|
{
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
particle.vLifeTime.x = 0.f;
|
particle.vLifeTime.x = 0.f;
|
||||||
particle.vTranslation.y = 0.f;
|
particle.vTranslation.y = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Billboard(particle);
|
||||||
|
|
||||||
|
|
||||||
//애니메이션 속도 , 인덱스
|
//애니메이션 속도 , 인덱스
|
||||||
|
|
||||||
@@ -91,7 +113,7 @@ void CS_MAIN(
|
|||||||
{
|
{
|
||||||
particleValue.vAniTime.x = 0.f;
|
particleValue.vAniTime.x = 0.f;
|
||||||
|
|
||||||
particleValue.vAniIndex.x++;
|
particleValue.vAniIndex.x += 1.f;
|
||||||
|
|
||||||
if (particleValue.vAniIndex.x > particleValue.vAniIndex.y) // 애니메이션에 끝에 다다랐다면
|
if (particleValue.vAniIndex.x > particleValue.vAniIndex.y) // 애니메이션에 끝에 다다랐다면
|
||||||
{
|
{
|
||||||
@@ -105,7 +127,7 @@ void CS_MAIN(
|
|||||||
|
|
||||||
particleValue.vMaskingUVMoveTime.x += fTimeDelta;
|
particleValue.vMaskingUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
if (particleValue.vMaskingUVMoveTime.x >= particleValue.vMaskingUVMoveTime.x)
|
if (particleValue.vMaskingUVMoveTime.x >= particleValue.vMaskingUVMoveTime.y)
|
||||||
{
|
{
|
||||||
particleValue.vMaskingUVMoveTime.x = 0.f;
|
particleValue.vMaskingUVMoveTime.x = 0.f;
|
||||||
}
|
}
|
||||||
@@ -115,25 +137,23 @@ void CS_MAIN(
|
|||||||
|
|
||||||
particleValue.vDiffuseUVMoveTime.x += fTimeDelta;
|
particleValue.vDiffuseUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
if (particleValue.vDiffuseUVMoveTime.x >= particleValue.vDiffuseUVMoveTime.x)
|
if (particleValue.vDiffuseUVMoveTime.x >= particleValue.vDiffuseUVMoveTime.y)
|
||||||
{
|
{
|
||||||
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
particleValue.vDiffuseUVMoveTime.x = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//노이즈 움직임
|
||||||
|
particleValue.vNoiseUVMoveTime.x += fTimeDelta;
|
||||||
|
|
||||||
|
if (particleValue.vNoiseUVMoveTime.x >= particleValue.vNoiseUVMoveTime.y)
|
||||||
|
{
|
||||||
|
particleValue.vNoiseUVMoveTime.x = 0.f;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//아웃풋 대입
|
//아웃풋 대입
|
||||||
|
|
||||||
ParticleOut.vRight = particle.vRight;
|
g_VBInstanceOutput[iIndex] = particle;
|
||||||
ParticleOut.vUp = particle.vUp;
|
g_ParticleValueOutput[iIndex] = particleValue;
|
||||||
ParticleOut.vLook = particle.vLook;
|
|
||||||
ParticleOut.vTranslation = particle.vTranslation;
|
|
||||||
ParticleOut.vLifeTime = particle.vLifeTime;
|
|
||||||
|
|
||||||
ParticleOut.vMaskingUVMoveTime = particleValue.vMaskingUVMoveTime;
|
|
||||||
ParticleOut.vDiffuseUVMoveTime = particleValue.vDiffuseUVMoveTime;
|
|
||||||
ParticleOut.vAniTime = particleValue.vAniTime;
|
|
||||||
ParticleOut.vAniIndex = particleValue.vAniIndex;
|
|
||||||
|
|
||||||
|
|
||||||
g_ParticleBufferOutput[iIndex] = ParticleOut;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,17 +3,24 @@
|
|||||||
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
Texture2D g_DepthTexture;
|
Texture2D g_DepthTexture;
|
||||||
|
|
||||||
int g_iImageCount;
|
int g_iImageCountX;
|
||||||
|
int g_iImageCountY;
|
||||||
|
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
float g_fTime;
|
float g_fTime;
|
||||||
float g_fFrame;
|
float g_fFrame;
|
||||||
|
float g_fAlpha;
|
||||||
|
float g_fOwnerAlpha;
|
||||||
|
float g_fCanvasAlpha;
|
||||||
float g_fDeltaU;
|
float g_fDeltaU;
|
||||||
float g_fDeltaV;
|
float g_fDeltaV;
|
||||||
uint g_iIndexU;
|
uint g_iIndexU;
|
||||||
uint g_iIndexV;
|
uint g_iIndexV;
|
||||||
|
|
||||||
|
uint g_iQuestType;
|
||||||
|
|
||||||
Texture2D g_Texture;
|
Texture2D g_Texture;
|
||||||
|
Texture2D g_Texture1;
|
||||||
Texture2D g_Texture2;
|
Texture2D g_Texture2;
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture;
|
||||||
Texture2D g_MaskingTexture;
|
Texture2D g_MaskingTexture;
|
||||||
@@ -57,7 +64,7 @@ struct PS_OUT
|
|||||||
float4 vColor : SV_Target0;
|
float4 vColor : SV_Target0;
|
||||||
};
|
};
|
||||||
|
|
||||||
PS_OUT PS_MAIN(PS_IN In) // 일반 UI
|
PS_OUT PS_MAIN(PS_IN In) // ?쇰컲 UI
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
@@ -70,86 +77,6 @@ PS_OUT PS_MAIN(PS_IN In) // 일반 UI
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PS_OUT PS_Cursor(PS_IN In) // 마우스 커서
|
|
||||||
{
|
|
||||||
PS_OUT Out;
|
|
||||||
|
|
||||||
float4 Color = float4(0.f, 0.f, 0.f, 0.f); // Out에 출력하기 위한 값
|
|
||||||
float4 White = float4(1.f, 1.f, 1.f, 1.f); // 마지막에 하얀색으로 바꿔주기 위한 값
|
|
||||||
|
|
||||||
float2 UV = In.vTexcoord; // UV를 돌리기 위해서 받아옴
|
|
||||||
float2 Center = float2(0.5f, 0.5f); // 이미지를 회전 하기 전에 중심으로 옮길 값
|
|
||||||
|
|
||||||
float CW = -g_fTime; // 시계 방향
|
|
||||||
float CCW = g_fTime; // 반시계 방향
|
|
||||||
|
|
||||||
float2 RedCircle = UV; // 빨간 원을 반시계 방향으로 돌려주기 위한 준비
|
|
||||||
float2 RedUV = UV - Center; // 중심으로 옮겨줌
|
|
||||||
// 값을 돌리기 위해서 회전 행렬을 만들어 준다.
|
|
||||||
RedCircle.x = RedUV.x * cos(CCW) - RedUV.y * sin(CCW); // x축은 x*cos(각도) - y*sin(각도)
|
|
||||||
RedCircle.y = RedUV.x * sin(CCW) + RedUV.y * cos(CCW); // y축은 x*sin(각도) + y*cos(각도)
|
|
||||||
RedCircle = RedCircle + Center; // 이제 위에서 다 돌려주면 다시 중심에서 원점으로 옮겨준다.
|
|
||||||
|
|
||||||
float2 BlueCircle = UV; // 파란색은 시계 방향으로 돌려준다
|
|
||||||
float2 BlueUV = UV - Center; // 중심으로 옮겨줌
|
|
||||||
// 값을 돌리기 위해서 회전 행렬을 만들어 준다.
|
|
||||||
BlueCircle.x = BlueUV.x * cos(CW) - BlueUV.y * sin(CW); // x축은 x*cos(각도) - y*sin(각도)
|
|
||||||
BlueCircle.y = BlueUV.x * sin(CW) + BlueUV.y * cos(CW); // y축은 x*sin(각도) + y*cos(각도)
|
|
||||||
BlueCircle = BlueCircle + Center; // 이제 위에서 다 돌려주면 다시 중심에서 원점으로 옮겨준다.
|
|
||||||
|
|
||||||
// 두개 다 같은 이미지 인데 원의 색상이 2개임
|
|
||||||
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle); // 큰 원은 빨간색임
|
|
||||||
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle); // 작은 원은 파란색임
|
|
||||||
|
|
||||||
if (Texture1.r >= 0.7f) // 우선 빨간 원을 먼저 그려준다.
|
|
||||||
Color = Texture1;
|
|
||||||
|
|
||||||
if (Texture2.b >= 0.7f) // 다음으로 파란 원을 그려준다.
|
|
||||||
Color = Texture2;
|
|
||||||
|
|
||||||
if (all(Color.rgb <= 0.5f)) // 이제 혹시 모를 색상이 들어갈 수 있어서 한번 정리 해준다.
|
|
||||||
discard;
|
|
||||||
|
|
||||||
Color = White; // 하얀색으로 바꿔줌
|
|
||||||
|
|
||||||
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); // 최종 이미지 출력
|
|
||||||
|
|
||||||
float2 UV = In.vTexcoord; // 이미지의 UV값
|
|
||||||
|
|
||||||
int iTotalFrame = g_iImageCount * g_iImageCount; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
|
||||||
|
|
||||||
int iCurrentFrame = int(floor(g_fTime / g_fFrame)) % iTotalFrame; // 현재 프레임이 어디 위치인지
|
|
||||||
|
|
||||||
int iFrameX = iCurrentFrame % g_iImageCount; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
|
||||||
int iFrameY = iCurrentFrame / g_iImageCount; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
|
||||||
|
|
||||||
float fFreamWidth = 1.0 / g_iImageCount; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
|
||||||
float fFreamHeight = 1.0 / g_iImageCount; // 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로 만든 다음에 한줄씩 밑으로 내려준다.
|
|
||||||
|
|
||||||
float4 Texture = g_Texture.Sample(DefaultSampler, UV);
|
|
||||||
|
|
||||||
Color = Texture;
|
|
||||||
|
|
||||||
if (Color.r <= 0.4f)
|
|
||||||
discard;
|
|
||||||
|
|
||||||
Out.vColor = Color;
|
|
||||||
|
|
||||||
return Out;
|
|
||||||
}
|
|
||||||
|
|
||||||
PS_OUT PS_AlphaBlend(PS_IN In)
|
PS_OUT PS_AlphaBlend(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
@@ -161,22 +88,142 @@ PS_OUT PS_AlphaBlend(PS_IN In)
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
PS_OUT PS_Key_Hold(PS_IN In)
|
PS_OUT PS_Clamp(PS_IN In)
|
||||||
{
|
{
|
||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
|
|
||||||
float3 Grey = float3(128.f, 128.f, 128.f) / 255.f;
|
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
Out.vColor = Color;
|
||||||
|
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_Cursor(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
float CW = -g_fTime;
|
||||||
|
float CCW = g_fTime;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
float4 Texture1 = g_Texture.Sample(ClampSampler, RedCircle);
|
||||||
|
float4 Texture2 = g_Texture2.Sample(ClampSampler, BlueCircle);
|
||||||
|
|
||||||
|
if (Texture1.r >= 0.7f)
|
||||||
|
Color = Texture1;
|
||||||
|
|
||||||
|
if (Texture2.b >= 0.7f)
|
||||||
|
Color = Texture2;
|
||||||
|
|
||||||
|
if (all(Color.rgb <= 0.5f))
|
||||||
|
discard;
|
||||||
|
|
||||||
|
Color = White;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_Key_Hold_Rotation(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
float4 Color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
if (Color.r >= 0.3f)
|
if (Color.a <= 0.1f)
|
||||||
Color.rgb = Grey;
|
discard;
|
||||||
|
|
||||||
Out.vColor = Color;
|
Out.vColor = Color;
|
||||||
|
|
||||||
return Out;
|
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;
|
||||||
|
float2 UV = In.vTexcoord;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth;
|
||||||
|
UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight;
|
||||||
|
|
||||||
|
float4 Texture = g_Texture.Sample(DefaultSampler, UV);
|
||||||
|
|
||||||
|
Color = Texture;
|
||||||
|
|
||||||
|
if (Color.r <= 0.4f)
|
||||||
|
discard;
|
||||||
|
|
||||||
|
Color.a = Alpha;
|
||||||
|
|
||||||
|
Out.vColor = Color;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_QuestType(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
float3 Color = float3(253.f, 207.f, 11.f) / 255.f;
|
||||||
|
float4 Texture1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
if (g_iQuestType == 0)
|
||||||
|
{
|
||||||
|
if (Texture1.r >= 0.3f)
|
||||||
|
{
|
||||||
|
Texture1.rgb = Color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Out.vColor = Texture1;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_UVMult(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
Out.vColor = color;
|
||||||
|
|
||||||
|
return Out;
|
||||||
|
}
|
||||||
|
|
||||||
technique11 PosTexTechnique11
|
technique11 PosTexTechnique11
|
||||||
{
|
{
|
||||||
pass Default
|
pass Default
|
||||||
@@ -199,6 +246,16 @@ technique11 PosTexTechnique11
|
|||||||
PixelShader = compile ps_5_0 PS_AlphaBlend();
|
PixelShader = compile ps_5_0 PS_AlphaBlend();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass TextureClamp
|
||||||
|
{
|
||||||
|
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_Clamp();
|
||||||
|
}
|
||||||
|
|
||||||
pass Mouse_Cursor
|
pass Mouse_Cursor
|
||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
@@ -213,19 +270,39 @@ technique11 PosTexTechnique11
|
|||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
SetDepthStencilState(DSS_Default, 0);
|
SetDepthStencilState(DSS_Default, 0);
|
||||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||||
VertexShader = compile vs_5_0 VS_MAIN();
|
VertexShader = compile vs_5_0 VS_MAIN();
|
||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_Sptire_Sheet();
|
PixelShader = compile ps_5_0 PS_Sptire_Sheet();
|
||||||
}
|
}
|
||||||
|
|
||||||
pass Key_Hold
|
pass Key_Hold_Rotation
|
||||||
{
|
{
|
||||||
SetRasterizerState(RS_Default);
|
SetRasterizerState(RS_Default);
|
||||||
SetDepthStencilState(DSS_Default, 0);
|
SetDepthStencilState(DSS_Default, 0);
|
||||||
SetBlendState(BS_AlphaBlend, 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();
|
VertexShader = compile vs_5_0 VS_MAIN();
|
||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_Key_Hold();
|
PixelShader = compile ps_5_0 PS_Key_Hold_Rotation();
|
||||||
|
}
|
||||||
|
|
||||||
|
pass QuestType
|
||||||
|
{
|
||||||
|
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_QuestType();
|
||||||
|
}
|
||||||
|
|
||||||
|
pass UVMult
|
||||||
|
{
|
||||||
|
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_UVMult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,10 +11,12 @@ float g_LifeRatio;
|
|||||||
float g_fRimStrength;
|
float g_fRimStrength;
|
||||||
float g_fRimPower;
|
float g_fRimPower;
|
||||||
float3 g_vRimColor;
|
float3 g_vRimColor;
|
||||||
|
float4 g_TestColor;
|
||||||
vector g_vCamPosition;
|
vector g_vCamPosition;
|
||||||
|
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture;
|
||||||
Texture2D g_NormalTexture;
|
Texture2D g_NormalTexture;
|
||||||
|
Texture2D g_MaskingTexture;
|
||||||
|
|
||||||
matrix g_BoneMatrices[512];
|
matrix g_BoneMatrices[512];
|
||||||
|
|
||||||
@@ -272,6 +274,38 @@ PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In)
|
|||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PS_OUT PS_MAIN_TEST(PS_IN In)
|
||||||
|
{
|
||||||
|
PS_OUT Out;
|
||||||
|
|
||||||
|
float4 vMtrlDiffuse = g_TestColor;
|
||||||
|
|
||||||
|
float4 vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
float fAlpha = vMtrlMask.r;
|
||||||
|
|
||||||
|
if (fAlpha < 0.1f)
|
||||||
|
discard;
|
||||||
|
|
||||||
|
float4 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 (g_bRimLight)
|
||||||
|
{
|
||||||
|
float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength);
|
||||||
|
vMtrlDiffuse.rgb = lerp(vMtrlDiffuse.rgb, g_vRimColor.rgb, fRimLight);
|
||||||
|
}
|
||||||
|
|
||||||
|
Out.vDiffuse = float4(vMtrlDiffuse.rgb * vMtrlMask.r, g_TestColor.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
technique11 DefaultTechnique
|
technique11 DefaultTechnique
|
||||||
{
|
{
|
||||||
@@ -313,4 +347,14 @@ technique11 DefaultTechnique
|
|||||||
GeometryShader = NULL;
|
GeometryShader = NULL;
|
||||||
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
|
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pass TestPass
|
||||||
|
{
|
||||||
|
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_TEST();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,51 +1,67 @@
|
|||||||
#include "Engine_Shader_Defines.hlsli"
|
#include "Engine_Shader_Defines.hlsli"
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
|
||||||
|
|
||||||
Texture2D g_DiffuseTexture;
|
Texture2D g_DiffuseTexture : register(t0);
|
||||||
Texture2D g_NormalTexture;
|
|
||||||
Texture2D g_MaskingTexture;
|
Texture2D g_NormalTexture : register(t1);
|
||||||
Texture2D g_DissolveTexture;
|
Texture2D g_MaskingTexture : register(t2);
|
||||||
Texture2D g_NoiseTexture;
|
Texture2D g_DissolveTexture : register(t3);
|
||||||
|
Texture2D g_NoiseTexture : register(t4);
|
||||||
|
|
||||||
|
StructuredBuffer<ParticleValue> g_ParticleValue : register(t5);
|
||||||
|
|
||||||
float4 g_vCamPosition;
|
float4 g_vCamPosition;
|
||||||
|
|
||||||
vector g_vColor;
|
vector g_vColor;
|
||||||
|
|
||||||
float2 g_vUVGainAmount;
|
float2 g_vDiffuseUVGainAmount;
|
||||||
float2 g_vUVCutting;
|
float2 g_vMaskingUVGainAmount;
|
||||||
|
|
||||||
float g_fBlurIntensity; //블러 세기
|
float2 g_vDiffuseNoiseUVGainAmount;
|
||||||
|
float2 g_vMaskNoiseUVGainAmount;
|
||||||
|
|
||||||
|
float2 g_vUVCutting;
|
||||||
|
float2 g_vUVMaskCutting;
|
||||||
|
|
||||||
|
|
||||||
|
float g_fBlurIntensity; //블러 세기
|
||||||
|
float g_fNoiseDistortionIntensity; // 노이즈 왜곡 세기
|
||||||
|
|
||||||
float4 g_vEmissive;
|
float4 g_vEmissive;
|
||||||
float g_fColorOption;
|
float g_fColorOption;
|
||||||
float g_fEmissiveCutAlpha;
|
float g_fEmissiveCutAlpha;
|
||||||
|
|
||||||
bool g_isDiffuse;
|
bool g_isDiffuse;
|
||||||
bool g_isMasking;
|
bool g_isMasking;
|
||||||
bool g_isDissolve;
|
bool g_isDissolve;
|
||||||
bool g_isNoise;
|
bool g_isNoise;
|
||||||
bool g_isUVMove;
|
|
||||||
|
bool g_isDiffuseUVMove;
|
||||||
|
bool g_isMaskUVMove;
|
||||||
|
|
||||||
float g_fFar;
|
float g_fFar;
|
||||||
|
|
||||||
struct ParticleValue
|
|
||||||
{
|
|
||||||
float4 vRight;
|
|
||||||
float4 vUp;
|
|
||||||
float4 vLook;
|
|
||||||
float4 vTranslation;
|
|
||||||
float2 vLifeTime;
|
|
||||||
|
|
||||||
float2 vMaskingUVMoveTime;
|
|
||||||
float2 vDiffuseUVMoveTime;
|
|
||||||
float2 vAniTime;
|
|
||||||
|
|
||||||
float2 vAniIndex;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
StructuredBuffer<ParticleValue> g_ParticleValue : register(t0);
|
|
||||||
|
|
||||||
struct VS_IN
|
struct VS_IN
|
||||||
{
|
{
|
||||||
@@ -72,36 +88,34 @@ struct VS_OUT
|
|||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
float4 vWorldPos : TEXCOORD2;
|
float4 vWorldPos : TEXCOORD2;
|
||||||
float4 vProjPos : TEXCOORD3;
|
float4 vProjPos : TEXCOORD3;
|
||||||
uint iGPUIndex : TEXCOORD4;
|
uint iGPUIndex : TEXCOORD4;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_VertexID)
|
VS_OUT VS_MAIN(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||||
{
|
{
|
||||||
VS_OUT Out = (VS_OUT) 0;
|
VS_OUT Out = (VS_OUT) 0;
|
||||||
|
|
||||||
matrix matWV, matWVP;
|
row_major matrix matW, matWV, matWVP;
|
||||||
|
|
||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
||||||
|
|
||||||
float4 vProjPos = vector(In.vPosition, 1.f);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vProjPos, matWVP);
|
|
||||||
Out.vProjPos = vProjPos;
|
|
||||||
|
|
||||||
|
matW = mul(g_WorldMatrix, TransformMatrix);
|
||||||
|
matWV = mul(matW, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), TransformMatrix);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
vector vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), TransformMatrix));
|
|
||||||
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), TransformMatrix)).xyz;
|
Out.vPosition = vPosition;
|
||||||
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), TransformMatrix)).xyz;
|
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.vTexcoord = In.vTexcoord;
|
||||||
Out.vLifeTime = In.vLifeTime;
|
Out.vLifeTime = In.vLifeTime;
|
||||||
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
|
Out.vWorldPos = mul(vector(In.vPosition, 1.f), matW);
|
||||||
Out.iGPUIndex = iGPUIndex;
|
Out.iGPUIndex = iGPUIndex;
|
||||||
|
Out.vProjPos = vPosition;
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
}
|
}
|
||||||
@@ -121,7 +135,7 @@ struct PS_IN
|
|||||||
|
|
||||||
struct PS_OUT
|
struct PS_OUT
|
||||||
{
|
{
|
||||||
float4 vDiffuse: SV_TARGET0;
|
float4 vDiffuse : SV_TARGET0;
|
||||||
float4 vColorTarget : SV_TARGET1;
|
float4 vColorTarget : SV_TARGET1;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -131,7 +145,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
|||||||
PS_OUT Out;
|
PS_OUT Out;
|
||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
|
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord);
|
vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
@@ -160,28 +174,48 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
|||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
vector vMtrlMask;
|
vector vMtrlMask;
|
||||||
vector vMtrlNoise;
|
vector vMtrlNoise;
|
||||||
vector vMtrlDisolve;
|
vector vMtrlDissolve;
|
||||||
|
|
||||||
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||||
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||||
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||||
|
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||||
|
|
||||||
float2 vTexcoord = In.vTexcoord;
|
|
||||||
|
|
||||||
float2 vUVPerCell = In.vTexcoord / g_vUVCutting; //이게 한 셀당 크기
|
|
||||||
|
|
||||||
vTexcoord.x = vTexcoord.x * vUVPerCell.x + (fAnimIndex.x % g_vUVCutting.x) * vUVPerCell.x;
|
|
||||||
vTexcoord.y = vTexcoord.y * vUVPerCell.y + (fAnimIndex.x / g_vUVCutting.y) * vUVPerCell.y;
|
|
||||||
|
|
||||||
if (g_isUVMove)
|
|
||||||
{
|
|
||||||
vTexcoord += (g_vUVGainAmount / g_vUVCutting) * (vDiffuseTime.x / vDiffuseTime.y);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isDiffuse == true)
|
if (g_isDiffuse == true)
|
||||||
{
|
{
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vTexcoord);
|
float2 UV; // 이미지의 UV값
|
||||||
|
|
||||||
|
UV = UV_Cutting(In.vTexcoord, g_vUVCutting, int(fAnimIndex.x));
|
||||||
|
|
||||||
|
if (g_isDiffuseUVMove)
|
||||||
|
{
|
||||||
|
UV += (g_vDiffuseUVGainAmount / g_vUVCutting) * (vDiffuseTime.x / vDiffuseTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 노이즈 */
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vDiffuseNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
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)
|
if (vMtrlDiffuse.a < 0.3f)
|
||||||
discard;
|
discard;
|
||||||
@@ -194,35 +228,51 @@ PS_OUT PS_NON_NORMALMAP(PS_IN In)
|
|||||||
|
|
||||||
if (g_isMasking == true)
|
if (g_isMasking == true)
|
||||||
{
|
{
|
||||||
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
|
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 + (g_vMaskNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
|
||||||
|
|
||||||
|
//노이즈 텍스쳐로 uv를 왜곡함
|
||||||
|
vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_isMaskUVMove)
|
||||||
|
{
|
||||||
|
if (vMaskingTime.y > 0)
|
||||||
|
vMaskTexcoord += g_vMaskingUVGainAmount * (vMaskingTime.x / vMaskingTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vMtrlMask.r = 1.f;
|
vMtrlMask.r = 1.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
|
||||||
|
|
||||||
if (g_isDissolve == true)
|
if (g_isDissolve == true)
|
||||||
{
|
{
|
||||||
vMtrlDisolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
|
|
||||||
|
if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y))
|
||||||
|
discard;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
vMtrlDisolve.r = 0.f;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isNoise == true)
|
|
||||||
{
|
|
||||||
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, In.vTexcoord);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r - vMtrlDisolve.r * (In.vLifeTime.x / In.vLifeTime.y));
|
|
||||||
|
|
||||||
|
|
||||||
Out.vDiffuse = vMtrlDiffuse;
|
Out.vDiffuse = vMtrlDiffuse;
|
||||||
|
|
||||||
// 색깔 추가할 처리 (이미시브)
|
// 색깔 추가할 처리 (이미시브)
|
||||||
if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha )
|
if (vMtrlDiffuse.a >= g_fEmissiveCutAlpha)
|
||||||
Out.vColorTarget = vector(g_vEmissive.rgb, g_fColorOption / 10.f);
|
Out.vColorTarget = vector(g_vEmissive.rgb, g_fColorOption / 10.f);
|
||||||
else
|
else
|
||||||
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
Out.vColorTarget = vector(0.f, 0.f, 0.f, 0.f);
|
||||||
@@ -236,30 +286,27 @@ struct VS_BLUR_OUT
|
|||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
|
uint iGPUIndex : TEXCOORD2;
|
||||||
};
|
};
|
||||||
|
|
||||||
VS_BLUR_OUT VS_BLUR(VS_IN In)
|
VS_BLUR_OUT VS_BLUR(VS_IN In, uint iGPUIndex : SV_InstanceID)
|
||||||
{
|
{
|
||||||
VS_BLUR_OUT Out = (VS_BLUR_OUT) 0;
|
VS_BLUR_OUT Out = (VS_BLUR_OUT) 0;
|
||||||
|
|
||||||
matrix matWV, matWVP;
|
row_major matrix matW, matWV, matWVP;
|
||||||
|
|
||||||
matWV = mul(g_WorldMatrix, g_ViewMatrix);
|
row_major matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
||||||
|
|
||||||
float4 vProjPos = vector(In.vPosition, 1.f);
|
|
||||||
|
|
||||||
Out.vPosition = mul(vProjPos, matWVP);
|
|
||||||
|
|
||||||
|
matW = mul(g_WorldMatrix, TransformMatrix);
|
||||||
|
matWV = mul(matW, g_ViewMatrix);
|
||||||
matWVP = mul(matWV, g_ProjMatrix);
|
matWVP = mul(matWV, g_ProjMatrix);
|
||||||
|
|
||||||
matrix TransformMatrix = float4x4(In.vRight, In.vUp, In.vLook, In.vTranslation);
|
vector vPosition = mul(vector(In.vPosition, 1.f), matWVP);
|
||||||
|
|
||||||
vector vPosition = mul(vector(In.vPosition, 1.f), TransformMatrix);
|
Out.vPosition = vPosition;
|
||||||
|
|
||||||
Out.vPosition = mul(vPosition, matWVP);
|
|
||||||
Out.vTexcoord = In.vTexcoord;
|
Out.vTexcoord = In.vTexcoord;
|
||||||
Out.vLifeTime = In.vLifeTime;
|
Out.vLifeTime = In.vLifeTime;
|
||||||
|
Out.iGPUIndex = iGPUIndex;
|
||||||
|
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
@@ -270,6 +317,7 @@ struct PS_BLUR_IN
|
|||||||
float4 vPosition : SV_POSITION;
|
float4 vPosition : SV_POSITION;
|
||||||
float2 vTexcoord : TEXCOORD0;
|
float2 vTexcoord : TEXCOORD0;
|
||||||
float2 vLifeTime : TEXCOORD1;
|
float2 vLifeTime : TEXCOORD1;
|
||||||
|
uint iGPUIndex : TEXCOORD2;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -287,18 +335,59 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
|||||||
vector vMtrlDiffuse;
|
vector vMtrlDiffuse;
|
||||||
vector vMtrlMask;
|
vector vMtrlMask;
|
||||||
vector vMtrlNoise;
|
vector vMtrlNoise;
|
||||||
vector vMtrlDisolve;
|
vector vMtrlDissolve;
|
||||||
|
|
||||||
float2 vTexcoord = In.vTexcoord / g_vUVCutting;
|
float fAnimIndex = g_ParticleValue[In.iGPUIndex].vAniIndex.x;
|
||||||
|
float2 vDiffuseTime = g_ParticleValue[In.iGPUIndex].vDiffuseUVMoveTime;
|
||||||
if (g_isUVMove)
|
float2 vMaskingTime = g_ParticleValue[In.iGPUIndex].vMaskingUVMoveTime;
|
||||||
{
|
float2 vNoiseUVMoveTime = g_ParticleValue[In.iGPUIndex].vNoiseUVMoveTime;
|
||||||
vTexcoord += g_vUVGainAmount / g_vUVCutting * (In.vLifeTime.x / In.vLifeTime.y);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isDiffuse == true)
|
if (g_isDiffuse == true)
|
||||||
{
|
{
|
||||||
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vTexcoord);
|
float2 UV = In.vTexcoord; // 이미지의 UV값
|
||||||
|
|
||||||
|
int iTotalFrame = g_vUVCutting.x * g_vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
||||||
|
|
||||||
|
int iCurrentFrame = int(fAnimIndex.x); // 현재 프레임이 어디 위치인지
|
||||||
|
|
||||||
|
int iFrameX = iCurrentFrame % (int) g_vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
||||||
|
int iFrameY = iCurrentFrame / (int) g_vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
||||||
|
|
||||||
|
float fFreamWidth = 1.0 / g_vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
||||||
|
float fFreamHeight = 1.0 / g_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로 만든 다음에 한줄씩 밑으로 내려준다.
|
||||||
|
|
||||||
|
|
||||||
|
if (g_isDiffuseUVMove)
|
||||||
|
{
|
||||||
|
UV += (g_vDiffuseUVGainAmount / g_vUVCutting) * (vDiffuseTime.x / vDiffuseTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 노이즈 */
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vDiffuseNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
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);
|
||||||
|
|
||||||
|
vMtrlDiffuse += g_vColor;
|
||||||
|
|
||||||
if (vMtrlDiffuse.a < 0.3f)
|
if (vMtrlDiffuse.a < 0.3f)
|
||||||
discard;
|
discard;
|
||||||
@@ -311,30 +400,44 @@ PS_BLUR_OUT PS_BLUR(PS_BLUR_IN In)
|
|||||||
|
|
||||||
if (g_isMasking == true)
|
if (g_isMasking == true)
|
||||||
{
|
{
|
||||||
vMtrlMask = g_MaskingTexture.Sample(DefaultSampler, vTexcoord);
|
float2 vMaskTexcoord = In.vTexcoord;
|
||||||
|
|
||||||
|
if (g_isNoise == true)
|
||||||
|
{
|
||||||
|
|
||||||
|
float2 vNoiseUV = In.vTexcoord + (g_vMaskNoiseUVGainAmount) * (vNoiseUVMoveTime.x / vNoiseUVMoveTime.y);
|
||||||
|
|
||||||
|
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vNoiseUV);
|
||||||
|
|
||||||
|
//노이즈 텍스쳐로 uv를 왜곡함
|
||||||
|
vMaskTexcoord = vMaskTexcoord + (vMtrlNoise - 0.5f).rg * g_fNoiseDistortionIntensity;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (g_isMaskUVMove)
|
||||||
|
{
|
||||||
|
if (vMaskingTime.y > 0)
|
||||||
|
vMaskTexcoord += g_vMaskingUVGainAmount * (vMaskingTime.x / vMaskingTime.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
vMtrlMask = g_MaskingTexture.Sample(PointSampler, vMaskTexcoord);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
vMtrlMask.r = 1.f;
|
vMtrlMask.r = 1.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r);
|
||||||
|
|
||||||
if (g_isDissolve == true)
|
if (g_isDissolve == true)
|
||||||
{
|
{
|
||||||
vMtrlDisolve = g_DissolveTexture.Sample(DefaultSampler, vTexcoord);
|
vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord);
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
vMtrlDisolve.r = 0.f;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_isNoise == true)
|
if (vMtrlDissolve.r < (In.vLifeTime.x / In.vLifeTime.y))
|
||||||
{
|
discard;
|
||||||
vMtrlNoise = g_NoiseTexture.Sample(DefaultSampler, vTexcoord);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
vMtrlDiffuse.a = saturate(vMtrlDiffuse.a * vMtrlMask.r - vMtrlDisolve.r * (In.vLifeTime.x / In.vLifeTime.y));
|
|
||||||
|
|
||||||
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity;
|
Out.vDiffuse = vMtrlDiffuse * g_fBlurIntensity;
|
||||||
|
|
||||||
return Out;
|
return Out;
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
Diffuse=VFX_T_Smoke_8x8_D
|
||||||
|
Normal=VFX_T_SmokeDense_8x8_N
|
||||||
|
Other[0]=VFX_T_Smoke_8x8_01_N
|
||||||
|
Other[1]=VFX_T_SmokeDense_8x8_D
|
||||||
|
Other[2]=T_GlobalHeightEverything_FogHeight_N
|
||||||
|
Other[3]=T_GlobalHeightEverything_SoftFoliage_01_01_N
|
||||||
|
Other[4]=T_GlobalHeightEverything_SoftFoliage_01_05_N
|
||||||
|
Other[5]=T_GlobalHeightEverything_SoftFoliage_01_06_N
|
||||||
|
Other[6]=T_GlobalHeightEverything_SoftFoliage_02_01_N
|
||||||
|
Other[7]=T_GlobalHeightEverything_SoftFoliage_02_04_N
|
||||||
|
Other[8]=T_GlobalHeightEverything_SoftFoliage_02_05_N
|
||||||
|
Other[9]=T_GlobalHeightEverything_SoftFoliage_02_06_N
|
||||||
|
Other[10]=T_GlobalHeightEverything_SoftFoliage_03_01_N
|
||||||
|
Other[11]=T_GlobalHeightEverything_SoftFoliage_03_03_N
|
||||||
|
Other[12]=T_GlobalHeightEverything_SoftFoliage_03_04_N
|
||||||
|
Other[13]=T_GlobalHeightEverything_SoftFoliage_03_05_N
|
||||||
|
Other[14]=T_GlobalHeightEverything_SoftFoliage_03_06_N
|
||||||
|
Other[15]=T_GlobalHeightEverything_SoftFoliage_03_08_N
|
||||||
|
Other[16]=T_GlobalHeightEverything_SoftFoliage_04_01_N
|
||||||
|
Other[17]=T_GlobalHeightEverything_SoftFoliage_04_03_N
|
||||||
|
Other[18]=T_GlobalHeightEverything_SoftFoliage_04_04_N
|
||||||
|
Other[19]=T_GlobalHeightEverything_SoftFoliage_04_05_N
|
||||||
|
Other[20]=T_GlobalHeightEverything_SoftFoliage_04_07_N
|
||||||
|
Other[21]=T_GlobalHeightEverything_SoftFoliage_04_08_N
|
||||||
|
Other[22]=T_GlobalHeightEverything_SoftFoliage_05_01_N
|
||||||
|
Other[23]=T_GlobalHeightEverything_SoftFoliage_05_02_N
|
||||||
|
Other[24]=T_GlobalHeightEverything_SoftFoliage_05_03_N
|
||||||
|
Other[25]=T_GlobalHeightEverything_SoftFoliage_05_04_N
|
||||||
|
Other[26]=T_GlobalHeightEverything_SoftFoliage_05_05_N
|
||||||
|
Other[27]=T_GlobalHeightEverything_SoftFoliage_05_06_N
|
||||||
|
Other[28]=T_GlobalHeightEverything_SoftFoliage_05_07_N
|
||||||
|
Other[29]=T_GlobalHeightEverything_SoftFoliage_06_01_N
|
||||||
|
Other[30]=T_GlobalHeightEverything_SoftFoliage_06_02_N
|
||||||
|
Other[31]=T_GlobalHeightEverything_SoftFoliage_06_03_N
|
||||||
|
Other[32]=T_GlobalHeightEverything_SoftFoliage_06_04_N
|
||||||
|
Other[33]=T_GlobalHeightEverything_SoftFoliage_06_05_N
|
||||||
|
Other[34]=T_GlobalHeightEverything_SoftFoliage_06_06_N
|
||||||
|
Other[35]=T_GlobalHeightEverything_SoftFoliage_06_07_N
|
||||||
|
Other[36]=T_GlobalHeightEverything_SoftFoliage_07_02_N
|
||||||
|
Other[37]=T_GlobalHeightEverything_SoftFoliage_07_03_N
|
||||||
|
Other[38]=T_GlobalHeightEverything_SoftFoliage_07_04_N
|
||||||
|
Other[39]=T_GlobalHeightEverything_SoftFoliage_07_05_N
|
||||||
|
Other[40]=T_GlobalHeightEverything_SoftFoliage_07_06_N
|
||||||
|
Other[41]=T_GlobalHeightEverything_SoftFoliage_07_07_N
|
||||||
|
Other[42]=T_GlobalHeightEverything_SoftFoliage_07_08_N
|
||||||
|
Other[43]=T_GlobalHeightEverything_SoftFoliage_08_05_N
|
||||||
|
Other[44]=T_GlobalHeightEverything_SoftFoliage_08_06_N
|
||||||
|
Other[45]=T_GlobalHeightEverything_SoftFoliage_08_07_N
|
||||||
|
Other[46]=T_GlobalHeightEverything_VT_Single_Combined_N
|
||||||
|
Other[47]=T_GlobalHeightEverything_VT_Single_Particles_12_MIPs_N
|
||||||
|
Other[48]=T_GlobalHeightEverything_VT_Single_Particles_12_MIPsNormal_N
|
||||||
|
Other[49]=T_FX_Grad_Test_G
|
||||||
|
Other[50]=VFX_T_Inky_Smoke_D
|
||||||
|
Other[51]=VFX_T_Wisps_D
|
||||||
|
Other[52]=VFX_T_Wisps_N
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
Parent = Material3'/Game/VFX/MasterMaterials/Particles/VFX_MM_lit.VFX_MM_lit'
|
||||||
|
ScalarParameterValues[6] =
|
||||||
|
{
|
||||||
|
ScalarParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Alpha Erosion Multiplier }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Alpha Erosion Softness }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[2] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=FadeDistance }
|
||||||
|
ParameterValue = 50
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[3] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Near Camera Fade Distance }
|
||||||
|
ParameterValue = 64
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[4] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Normal Strength }
|
||||||
|
ParameterValue = 2.05714
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[5] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RefractionDepthBias }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextureParameterValues[4] =
|
||||||
|
{
|
||||||
|
TextureParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Normal SubUV }
|
||||||
|
ParameterValue = Texture2D'/Game/VFX/Textures/Flipbooks/VFX_T_SmokeDense_8x8_N.VFX_T_SmokeDense_8x8_N'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
TextureParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Normal Texture }
|
||||||
|
ParameterValue = Texture2D'/Game/VFX/Textures/Flipbooks/VFX_T_Smoke_8x8_01_N.VFX_T_Smoke_8x8_01_N'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
TextureParameterValues[2] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Texture }
|
||||||
|
ParameterValue = Texture2D'/Game/VFX/Textures/Flipbooks/VFX_T_Smoke_8x8_D.VFX_T_Smoke_8x8_D'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
TextureParameterValues[3] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Texture SubUV }
|
||||||
|
ParameterValue = Texture2D'/Game/VFX/Textures/Flipbooks/VFX_T_SmokeDense_8x8_D.VFX_T_SmokeDense_8x8_D'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
VectorParameterValues[0] = {}
|
||||||
|
BasePropertyOverrides =
|
||||||
|
{
|
||||||
|
bOverride_BlendMode = false
|
||||||
|
BlendMode = BLEND_Translucent (2)
|
||||||
|
bOverride_TwoSided = false
|
||||||
|
TwoSided = false
|
||||||
|
bOverride_OpacityMaskClipValue = false
|
||||||
|
OpacityMaskClipValue = 0.3333
|
||||||
|
}
|
||||||
|
StaticParameters =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[5] =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[0] =
|
||||||
|
{
|
||||||
|
Value = true
|
||||||
|
ParameterInfo = { Name=Use Alpha }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
StaticSwitchParameters[1] =
|
||||||
|
{
|
||||||
|
Value = false
|
||||||
|
ParameterInfo = { Name=Use Color as Alpha }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
StaticSwitchParameters[2] =
|
||||||
|
{
|
||||||
|
Value = true
|
||||||
|
ParameterInfo = { Name=Use Alpha Erosion }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
StaticSwitchParameters[3] =
|
||||||
|
{
|
||||||
|
Value = true
|
||||||
|
ParameterInfo = { Name=Use Normal Map }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
StaticSwitchParameters[4] =
|
||||||
|
{
|
||||||
|
Value = true
|
||||||
|
ParameterInfo = { Name=Use SubUV Texture }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
StaticComponentMaskParameters[0] = {}
|
||||||
|
TerrainLayerWeightParameters[0] = {}
|
||||||
|
MaterialLayersParameters[0] = {}
|
||||||
|
}
|
||||||
|
RuntimeVirtualTextureParameterValues[0] = {}
|
||||||
|
FontParameterValues[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[0] = {}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
Diffuse=3BroomStx_Door_01_D
|
||||||
|
Normal=T_PaintingTextures_Fabric_N
|
||||||
|
Other[0]=T_PaintingTextures_Fabric_MSK
|
||||||
|
Other[1]=CASC_Cross
|
||||||
|
Other[2]=CASC_None
|
||||||
|
Other[3]=HeatmapGradient
|
||||||
|
Other[4]=T_PaintingTextures_MSK
|
||||||
|
Other[5]=T_PaintingTextures_N
|
||||||
|
Other[6]=T_PortraitVignette_A
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
Parent = Material3'/Game/VFX/Blueprints/AmbientPainitngs/Materials/VFX_M_AmbientPainting.VFX_M_AmbientPainting'
|
||||||
|
ScalarParameterValues[10] =
|
||||||
|
{
|
||||||
|
ScalarParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Fuzz }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=FuzzCoreDarkness }
|
||||||
|
ParameterValue = 0.6
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[2] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=FuzzEdgeBrightness }
|
||||||
|
ParameterValue = 2
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[3] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=FuzzPower }
|
||||||
|
ParameterValue = 6
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[4] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=BrushTiling }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[5] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Distortion }
|
||||||
|
ParameterValue = 0.01
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[6] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Divider }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[7] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Poster }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[8] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RoughnessMultiplier }
|
||||||
|
ParameterValue = 4.5
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[9] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RefractionDepthBias }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextureParameterValues[2] =
|
||||||
|
{
|
||||||
|
TextureParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=BrushMap }
|
||||||
|
ParameterValue = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_Fabric_MSK.T_PaintingTextures_Fabric_MSK'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
TextureParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=BrushNormal }
|
||||||
|
ParameterValue = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_Fabric_N.T_PaintingTextures_Fabric_N'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
VectorParameterValues[0] = {}
|
||||||
|
BasePropertyOverrides =
|
||||||
|
{
|
||||||
|
bOverride_BlendMode = false
|
||||||
|
BlendMode = BLEND_Opaque (0)
|
||||||
|
bOverride_TwoSided = false
|
||||||
|
TwoSided = false
|
||||||
|
bOverride_OpacityMaskClipValue = false
|
||||||
|
OpacityMaskClipValue = 0.3333
|
||||||
|
}
|
||||||
|
StaticParameters =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[0] = {}
|
||||||
|
StaticComponentMaskParameters[0] = {}
|
||||||
|
TerrainLayerWeightParameters[0] = {}
|
||||||
|
MaterialLayersParameters[0] = {}
|
||||||
|
}
|
||||||
|
RuntimeVirtualTextureParameterValues[0] = {}
|
||||||
|
FontParameterValues[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[3] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 0.23761
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = 3BroomStx_Door_01_D
|
||||||
|
}
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_Fabric_MSK
|
||||||
|
}
|
||||||
|
TextureStreamingData[2] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_Fabric_N
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Diffuse=3BroomStx_Door_01_D
|
||||||
|
Normal=T_PaintingTextures_N
|
||||||
|
Other[0]=CASC_Cross
|
||||||
|
Other[1]=CASC_None
|
||||||
|
Other[2]=HeatmapGradient
|
||||||
|
Other[3]=T_PaintingTextures_MSK
|
||||||
|
Other[4]=T_PortraitVignette_A
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
Parent = Material3'/Game/VFX/Blueprints/AmbientPainitngs/Materials/VFX_M_AmbientPainting.VFX_M_AmbientPainting'
|
||||||
|
ScalarParameterValues[3] =
|
||||||
|
{
|
||||||
|
ScalarParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=BrushTiling }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Distortion }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[2] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RefractionDepthBias }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextureParameterValues[1] =
|
||||||
|
{
|
||||||
|
TextureParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RenderTarget }
|
||||||
|
ParameterValue = None
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
VectorParameterValues[0] = {}
|
||||||
|
BasePropertyOverrides =
|
||||||
|
{
|
||||||
|
bOverride_BlendMode = false
|
||||||
|
BlendMode = BLEND_Opaque (0)
|
||||||
|
bOverride_TwoSided = false
|
||||||
|
TwoSided = false
|
||||||
|
bOverride_OpacityMaskClipValue = false
|
||||||
|
OpacityMaskClipValue = 0.3333
|
||||||
|
}
|
||||||
|
StaticParameters =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[0] = {}
|
||||||
|
StaticComponentMaskParameters[0] = {}
|
||||||
|
TerrainLayerWeightParameters[0] = {}
|
||||||
|
MaterialLayersParameters[0] = {}
|
||||||
|
}
|
||||||
|
RuntimeVirtualTextureParameterValues[0] = {}
|
||||||
|
FontParameterValues[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[3] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 0.25
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = 3BroomStx_Door_01_D
|
||||||
|
}
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_MSK
|
||||||
|
}
|
||||||
|
TextureStreamingData[2] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_N
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Diffuse=3BroomStx_Door_01_D
|
||||||
|
Normal=T_PaintingTextures_N
|
||||||
|
Opacity=T_PortraitVignette_A
|
||||||
|
Other[0]=CASC_Cross
|
||||||
|
Other[1]=CASC_None
|
||||||
|
Other[2]=HeatmapGradient
|
||||||
|
Other[3]=T_PaintingTextures_MSK
|
||||||
@@ -0,0 +1,175 @@
|
|||||||
|
TwoSided = false
|
||||||
|
bDisableDepthTest = false
|
||||||
|
bIsMasked = false
|
||||||
|
ReferencedTextures[7] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_Cross.CASC_Cross'
|
||||||
|
ReferencedTextures[1] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_None.CASC_None'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Engine/EngineDebugMaterials/HeatmapGradient.HeatmapGradient'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Textures/3BroomStx_Door_01_D.3BroomStx_Door_01_D'
|
||||||
|
ReferencedTextures[4] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_MSK.T_PaintingTextures_MSK'
|
||||||
|
ReferencedTextures[5] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
ReferencedTextures[6] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PortraitVignette_A.T_PortraitVignette_A'
|
||||||
|
}
|
||||||
|
Expressions[0] = {}
|
||||||
|
CachedExpressionData =
|
||||||
|
{
|
||||||
|
Parameters =
|
||||||
|
{
|
||||||
|
Entries[5] =
|
||||||
|
{
|
||||||
|
Entries[0] =
|
||||||
|
{
|
||||||
|
ParameterInfos[9] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=Fuzz }
|
||||||
|
ParameterInfos[1] = { Name=Distortion }
|
||||||
|
ParameterInfos[2] = { Name=FuzzEdgeBrightness }
|
||||||
|
ParameterInfos[3] = { Name=BrushTiling }
|
||||||
|
ParameterInfos[4] = { Name=FuzzCoreDarkness }
|
||||||
|
ParameterInfos[5] = { Name=Poster }
|
||||||
|
ParameterInfos[6] = { Name=Divider }
|
||||||
|
ParameterInfos[7] = { Name=RoughnessMultiplier }
|
||||||
|
ParameterInfos[8] = { Name=FuzzPower }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[1] =
|
||||||
|
{
|
||||||
|
ParameterInfos[3] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=Color Addition }
|
||||||
|
ParameterInfos[1] = { Name=VignetteColor }
|
||||||
|
ParameterInfos[2] = { Name=FrameScaleOffset }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[2] =
|
||||||
|
{
|
||||||
|
ParameterInfos[5] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=BrushNormal }
|
||||||
|
ParameterInfos[1] = { Name=RenderTarget }
|
||||||
|
ParameterInfos[2] = { Name=VignetteTexture }
|
||||||
|
ParameterInfos[3] = { Name=PosterTexture }
|
||||||
|
ParameterInfos[4] = { Name=BrushMap }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[3] = { ParameterInfos[0]={} }
|
||||||
|
Entries[4] = { ParameterInfos[0]={} }
|
||||||
|
}
|
||||||
|
ScalarValues[9] = { 0, 0.015, 0.8, 1, 0.8, 0, 25, 4.5, 6 }
|
||||||
|
VectorValues[3] =
|
||||||
|
{
|
||||||
|
VectorValues[0] = { R=0.05, G=0.05, B=0.05, A=1 }
|
||||||
|
VectorValues[1] = { R=0, G=0, B=0, A=0 }
|
||||||
|
VectorValues[2] = { R=0.25, G=0.25, B=0.25, A=0.25 }
|
||||||
|
}
|
||||||
|
TextureValues[5] =
|
||||||
|
{
|
||||||
|
TextureValues[0] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
TextureValues[2] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PortraitVignette_A.T_PortraitVignette_A'
|
||||||
|
TextureValues[3] = Texture2D'/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Textures/3BroomStx_Door_01_D.3BroomStx_Door_01_D'
|
||||||
|
TextureValues[4] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_MSK.T_PaintingTextures_MSK'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ReferencedTextures[8] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_None.CASC_None'
|
||||||
|
ReferencedTextures[1] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_Cross.CASC_Cross'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Engine/EngineDebugMaterials/HeatmapGradient.HeatmapGradient'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_MSK.T_PaintingTextures_MSK'
|
||||||
|
ReferencedTextures[4] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
ReferencedTextures[6] = Texture2D'/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Textures/3BroomStx_Door_01_D.3BroomStx_Door_01_D'
|
||||||
|
ReferencedTextures[7] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PortraitVignette_A.T_PortraitVignette_A'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BlendMode = BLEND_Opaque (0)
|
||||||
|
OpacityMaskClipValue = 0.333
|
||||||
|
CollectedTextureParameters[5] =
|
||||||
|
{
|
||||||
|
CollectedTextureParameters[0] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
Name = BrushNormal
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[1] = { Texture=None, Name=RenderTarget, Group=None }
|
||||||
|
CollectedTextureParameters[2] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PortraitVignette_A.T_PortraitVignette_A'
|
||||||
|
Name = VignetteTexture
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[3] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/Environment/Hogsmeade/BLDG_ThreeBroomsticks/Textures/3BroomStx_Door_01_D.3BroomStx_Door_01_D'
|
||||||
|
Name = PosterTexture
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[4] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_MSK.T_PaintingTextures_MSK'
|
||||||
|
Name = BrushMap
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[9] =
|
||||||
|
{
|
||||||
|
CollectedScalarParameters[0] = { Value=0, Name=Fuzz, Group=None }
|
||||||
|
CollectedScalarParameters[1] = { Value=0.015, Name=Distortion, Group=None }
|
||||||
|
CollectedScalarParameters[2] = { Value=0.8, Name=FuzzEdgeBrightness, Group=None }
|
||||||
|
CollectedScalarParameters[3] = { Value=1, Name=BrushTiling, Group=None }
|
||||||
|
CollectedScalarParameters[4] = { Value=0.8, Name=FuzzCoreDarkness, Group=None }
|
||||||
|
CollectedScalarParameters[5] = { Value=0, Name=Poster, Group=None }
|
||||||
|
CollectedScalarParameters[6] = { Value=25, Name=Divider, Group=None }
|
||||||
|
CollectedScalarParameters[7] = { Value=4.5, Name=RoughnessMultiplier, Group=None }
|
||||||
|
CollectedScalarParameters[8] = { Value=6, Name=FuzzPower, Group=None }
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[3] =
|
||||||
|
{
|
||||||
|
CollectedVectorParameters[0] =
|
||||||
|
{
|
||||||
|
Value = { R=0.05, G=0.05, B=0.05, A=1 }
|
||||||
|
Name = Color Addition
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[1] =
|
||||||
|
{
|
||||||
|
Value = { R=0, G=0, B=0, A=0 }
|
||||||
|
Name = VignetteColor
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[2] =
|
||||||
|
{
|
||||||
|
Value = { R=0.25, G=0.25, B=0.25, A=0.25 }
|
||||||
|
Name = FrameScaleOffset
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[3] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_MSK
|
||||||
|
}
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_N
|
||||||
|
}
|
||||||
|
TextureStreamingData[2] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PortraitVignette_A
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
Diffuse=VFX_T_FacePaintingABKGRND_D
|
||||||
|
Normal=T_Canvas_N
|
||||||
|
Other[0]=CASC_Cross
|
||||||
|
Other[1]=CASC_None
|
||||||
|
Other[2]=T_Canvas_R
|
||||||
|
Other[3]=T_PaintingTextures_N
|
||||||
|
Other[4]=T_PaintingTexturesB_MSK
|
||||||
|
Other[5]=VFX_T_PluralSight_Circle_D
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
Parent = Material3'/Game/VFX/Blueprints/InteractivePaintings/Materials/VFX_M_PaintingPlane_Base.VFX_M_PaintingPlane_Base'
|
||||||
|
ScalarParameterValues[1] =
|
||||||
|
{
|
||||||
|
ScalarParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RefractionDepthBias }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextureParameterValues[0] = {}
|
||||||
|
VectorParameterValues[0] = {}
|
||||||
|
BasePropertyOverrides =
|
||||||
|
{
|
||||||
|
bOverride_BlendMode = false
|
||||||
|
BlendMode = BLEND_Masked (1)
|
||||||
|
bOverride_TwoSided = false
|
||||||
|
TwoSided = false
|
||||||
|
bOverride_OpacityMaskClipValue = false
|
||||||
|
OpacityMaskClipValue = 0.3333
|
||||||
|
}
|
||||||
|
StaticParameters =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[0] = {}
|
||||||
|
StaticComponentMaskParameters[0] = {}
|
||||||
|
TerrainLayerWeightParameters[0] = {}
|
||||||
|
MaterialLayersParameters[0] = {}
|
||||||
|
}
|
||||||
|
RuntimeVirtualTextureParameterValues[0] = {}
|
||||||
|
FontParameterValues[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[3] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_Canvas_N
|
||||||
|
}
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = VFX_T_FacePaintingABKGRND_D
|
||||||
|
}
|
||||||
|
TextureStreamingData[2] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = VFX_T_PluralSight_Circle_D
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
Diffuse=VFX_T_FacePaintingABKGRND_D
|
||||||
|
Normal=T_Canvas_N
|
||||||
|
Other[0]=CASC_Cross
|
||||||
|
Other[1]=CASC_None
|
||||||
|
Other[2]=T_Canvas_R
|
||||||
|
Other[3]=T_PaintingTextures_N
|
||||||
|
Other[4]=T_PaintingTexturesB_MSK
|
||||||
|
Other[5]=VFX_T_PluralSight_Circle_D
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
TwoSided = false
|
||||||
|
bDisableDepthTest = false
|
||||||
|
bIsMasked = false
|
||||||
|
ReferencedTextures[8] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_Cross.CASC_Cross'
|
||||||
|
ReferencedTextures[1] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_None.CASC_None'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_N.T_Canvas_N'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_R.T_Canvas_R'
|
||||||
|
ReferencedTextures[4] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
ReferencedTextures[5] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTexturesB_MSK.T_PaintingTexturesB_MSK'
|
||||||
|
ReferencedTextures[6] = Texture2D'/Game/VFX/SpineAssets/Assets/PaintingFaceA/Textures/VFX_T_FacePaintingABKGRND_D.VFX_T_FacePaintingABKGRND_D'
|
||||||
|
ReferencedTextures[7] = Texture2D'/Game/VFX/Textures/TEST/VFX_T_PluralSight_Circle_D.VFX_T_PluralSight_Circle_D'
|
||||||
|
}
|
||||||
|
Expressions[0] = {}
|
||||||
|
CachedExpressionData =
|
||||||
|
{
|
||||||
|
Parameters =
|
||||||
|
{
|
||||||
|
Entries[5] =
|
||||||
|
{
|
||||||
|
Entries[0] =
|
||||||
|
{
|
||||||
|
ParameterInfos[2] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=NormalTilingMultiplier }
|
||||||
|
ParameterInfos[1] = { Name=NormalIntensity }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[1] = { ParameterInfos[0]={} }
|
||||||
|
Entries[2] =
|
||||||
|
{
|
||||||
|
ParameterInfos[4] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=Background }
|
||||||
|
ParameterInfos[1] = { Name=CanvasRoughness }
|
||||||
|
ParameterInfos[2] = { Name=CanvasNormal }
|
||||||
|
ParameterInfos[3] = { Name=FrameMask }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[3] = { ParameterInfos[0]={} }
|
||||||
|
Entries[4] = { ParameterInfos[0]={} }
|
||||||
|
}
|
||||||
|
ScalarValues[2] = { 1, 1 }
|
||||||
|
VectorValues[0] = {}
|
||||||
|
TextureValues[4] =
|
||||||
|
{
|
||||||
|
TextureValues[0] = Texture2D'/Game/VFX/SpineAssets/Assets/PaintingFaceA/Textures/VFX_T_FacePaintingABKGRND_D.VFX_T_FacePaintingABKGRND_D'
|
||||||
|
TextureValues[1] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_R.T_Canvas_R'
|
||||||
|
TextureValues[2] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_N.T_Canvas_N'
|
||||||
|
TextureValues[3] = Texture2D'/Game/VFX/Textures/TEST/VFX_T_PluralSight_Circle_D.VFX_T_PluralSight_Circle_D'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ReferencedTextures[8] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_R.T_Canvas_R'
|
||||||
|
ReferencedTextures[1] = Texture2D'/Game/VFX/Textures/TEST/VFX_T_PluralSight_Circle_D.VFX_T_PluralSight_Circle_D'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Game/VFX/SpineAssets/Assets/PaintingFaceA/Textures/VFX_T_FacePaintingABKGRND_D.VFX_T_FacePaintingABKGRND_D'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_N.T_Canvas_N'
|
||||||
|
ReferencedTextures[4] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTextures_N.T_PaintingTextures_N'
|
||||||
|
ReferencedTextures[5] = Texture2D'/Game/MaterialFunctions/BaseTextures/Painting/T_PaintingTexturesB_MSK.T_PaintingTexturesB_MSK'
|
||||||
|
ReferencedTextures[6] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_None.CASC_None'
|
||||||
|
ReferencedTextures[7] = Texture2D'/Engine/EditorMaterials/Cascade/CASC_Cross.CASC_Cross'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BlendMode = BLEND_Masked (1)
|
||||||
|
OpacityMaskClipValue = 0.333
|
||||||
|
CollectedTextureParameters[4] =
|
||||||
|
{
|
||||||
|
CollectedTextureParameters[0] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/VFX/SpineAssets/Assets/PaintingFaceA/Textures/VFX_T_FacePaintingABKGRND_D.VFX_T_FacePaintingABKGRND_D'
|
||||||
|
Name = Background
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[1] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_R.T_Canvas_R'
|
||||||
|
Name = CanvasRoughness
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[2] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/Environment/Hogwarts/Textures/T_Canvas_N.T_Canvas_N'
|
||||||
|
Name = CanvasNormal
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedTextureParameters[3] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Game/VFX/Textures/TEST/VFX_T_PluralSight_Circle_D.VFX_T_PluralSight_Circle_D'
|
||||||
|
Name = FrameMask
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[2] =
|
||||||
|
{
|
||||||
|
CollectedScalarParameters[0] = { Value=1, Name=NormalTilingMultiplier, Group=None }
|
||||||
|
CollectedScalarParameters[1] = { Value=1, Name=NormalIntensity, Group=None }
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[6] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 4
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_Canvas_N
|
||||||
|
}
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
SamplingScale = 4
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_Canvas_R
|
||||||
|
}
|
||||||
|
TextureStreamingData[2] =
|
||||||
|
{
|
||||||
|
SamplingScale = 4
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTextures_N
|
||||||
|
}
|
||||||
|
TextureStreamingData[3] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = T_PaintingTexturesB_MSK
|
||||||
|
}
|
||||||
|
TextureStreamingData[4] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = VFX_T_FacePaintingABKGRND_D
|
||||||
|
}
|
||||||
|
TextureStreamingData[5] =
|
||||||
|
{
|
||||||
|
SamplingScale = 1
|
||||||
|
UVChannelIndex = 0
|
||||||
|
TextureName = VFX_T_PluralSight_Circle_D
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
Materials[1] =
|
||||||
|
{
|
||||||
|
Materials[0] = MaterialInstanceConstant'/Game/VFX/Blueprints/InteractivePaintings/Materials/VFX_MI_PaintingPlane_Base.VFX_MI_PaintingPlane_Base'
|
||||||
|
}
|
||||||
|
SourceModels[0] = {}
|
||||||
|
StaticMaterials[1] =
|
||||||
|
{
|
||||||
|
StaticMaterials[0] =
|
||||||
|
{
|
||||||
|
MaterialInterface = MaterialInstanceConstant'/Game/VFX/Blueprints/InteractivePaintings/Materials/VFX_MI_PaintingPlane_Base.VFX_MI_PaintingPlane_Base'
|
||||||
|
MaterialSlotName = lambert1
|
||||||
|
UVChannelData =
|
||||||
|
{
|
||||||
|
bInitialized = true
|
||||||
|
bOverrideDensities = false
|
||||||
|
LocalUVDensities[4] = { 100, 0, 0, 0 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Sockets[0] = {}
|
||||||
|
ExtendedBounds =
|
||||||
|
{
|
||||||
|
Origin = { X=0, Y=0, Z=0 }
|
||||||
|
BoxExtent = { X=50, Y=50, Z=8.04061e-15 }
|
||||||
|
SphereRadius = 70.7107
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
Diffuse=T_Gradient_Soft_D
|
||||||
|
Normal=VFX_T_cloudsBillowy03_N
|
||||||
|
Other[0]=DefaultTexture
|
||||||
|
Other[1]=VFX_T_TiledNoise_01_D
|
||||||
@@ -0,0 +1,175 @@
|
|||||||
|
TwoSided = true
|
||||||
|
bDisableDepthTest = false
|
||||||
|
bIsMasked = false
|
||||||
|
ReferencedTextures[4] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Engine/EngineResources/DefaultTexture.DefaultTexture'
|
||||||
|
ReferencedTextures[1] = Texture2D'/Game/VFX/Particles/Magic/AvadaKedavra/T_Gradient_Soft_D.T_Gradient_Soft_D'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_cloudsBillowy03_N.VFX_T_cloudsBillowy03_N'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_TiledNoise_01_D.VFX_T_TiledNoise_01_D'
|
||||||
|
}
|
||||||
|
Expressions[0] = {}
|
||||||
|
CachedExpressionData =
|
||||||
|
{
|
||||||
|
Parameters =
|
||||||
|
{
|
||||||
|
Entries[5] =
|
||||||
|
{
|
||||||
|
Entries[0] =
|
||||||
|
{
|
||||||
|
ParameterInfos[16] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=OverallDisplacementStrength }
|
||||||
|
ParameterInfos[1] = { Name=B_1 }
|
||||||
|
ParameterInfos[2] = { Name=NoiseMaskContrast }
|
||||||
|
ParameterInfos[3] = { Name=Blur Height map }
|
||||||
|
ParameterInfos[4] = { Name=World Offset Strength }
|
||||||
|
ParameterInfos[5] = { Name=World Offset Noise Speed }
|
||||||
|
ParameterInfos[6] = { Name=Alpha }
|
||||||
|
ParameterInfos[7] = { Name=Hardness }
|
||||||
|
ParameterInfos[8] = { Name=Param }
|
||||||
|
ParameterInfos[9] = { Name=Maskrotation }
|
||||||
|
ParameterInfos[10] = { Name=NoisedistortContrast }
|
||||||
|
ParameterInfos[11] = { Name=CameraWidth }
|
||||||
|
ParameterInfos[12] = { Name=MaskPower }
|
||||||
|
ParameterInfos[13] = { Name=DistortTiling }
|
||||||
|
ParameterInfos[14] = { Name=World Offset Scale }
|
||||||
|
ParameterInfos[15] = { Name=NoiseDistortSpeed }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[1] =
|
||||||
|
{
|
||||||
|
ParameterInfos[3] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=Direction }
|
||||||
|
ParameterInfos[1] = { Name=Param }
|
||||||
|
ParameterInfos[2] = { Name=CameraDirection }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[2] =
|
||||||
|
{
|
||||||
|
ParameterInfos[1] =
|
||||||
|
{
|
||||||
|
ParameterInfos[0] = { Name=RenderTargetTexture }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Entries[3] = { ParameterInfos[0]={} }
|
||||||
|
Entries[4] = { ParameterInfos[0]={} }
|
||||||
|
}
|
||||||
|
ScalarValues[16] =
|
||||||
|
{
|
||||||
|
ScalarValues[0] = -1.8562
|
||||||
|
ScalarValues[1] = 0.5
|
||||||
|
ScalarValues[2] = 0.5
|
||||||
|
ScalarValues[3] = 0.647619
|
||||||
|
ScalarValues[4] = 14.1926
|
||||||
|
ScalarValues[5] = 42.2273
|
||||||
|
ScalarValues[6] = 0.971429
|
||||||
|
ScalarValues[7] = 0
|
||||||
|
ScalarValues[8] = -1
|
||||||
|
ScalarValues[9] = 90
|
||||||
|
ScalarValues[10] = 0.5
|
||||||
|
ScalarValues[11] = 1300
|
||||||
|
ScalarValues[12] = 0.1
|
||||||
|
ScalarValues[13] = 1
|
||||||
|
ScalarValues[14] = 0.0007
|
||||||
|
ScalarValues[15] = 1
|
||||||
|
}
|
||||||
|
VectorValues[3] =
|
||||||
|
{
|
||||||
|
VectorValues[0] = { R=1.42595, G=0.5, B=3.12088, A=1 }
|
||||||
|
VectorValues[1] = { R=0.124922, G=0.492277, B=0.796875, A=1 }
|
||||||
|
VectorValues[2] = { R=0, G=0, B=-1, A=1 }
|
||||||
|
}
|
||||||
|
TextureValues[1] =
|
||||||
|
{
|
||||||
|
TextureValues[0] = Texture2D'/Engine/EngineResources/DefaultTexture.DefaultTexture'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ReferencedTextures[5] =
|
||||||
|
{
|
||||||
|
ReferencedTextures[0] = Texture2D'/Engine/EngineResources/DefaultTexture.DefaultTexture'
|
||||||
|
ReferencedTextures[2] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_cloudsBillowy03_N.VFX_T_cloudsBillowy03_N'
|
||||||
|
ReferencedTextures[3] = Texture2D'/Game/VFX/Textures/Noises/VFX_T_TiledNoise_01_D.VFX_T_TiledNoise_01_D'
|
||||||
|
ReferencedTextures[4] = Texture2D'/Game/VFX/Particles/Magic/AvadaKedavra/T_Gradient_Soft_D.T_Gradient_Soft_D'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BlendMode = BLEND_Translucent (2)
|
||||||
|
OpacityMaskClipValue = 0.333
|
||||||
|
CollectedTextureParameters[1] =
|
||||||
|
{
|
||||||
|
CollectedTextureParameters[0] =
|
||||||
|
{
|
||||||
|
Texture = Texture2D'/Engine/EngineResources/DefaultTexture.DefaultTexture'
|
||||||
|
Name = RenderTargetTexture
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[16] =
|
||||||
|
{
|
||||||
|
CollectedScalarParameters[0] =
|
||||||
|
{
|
||||||
|
Value = -1.8562
|
||||||
|
Name = OverallDisplacementStrength
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[1] = { Value=0.5, Name=B_1, Group=None }
|
||||||
|
CollectedScalarParameters[2] = { Value=0.5, Name=NoiseMaskContrast, Group=None }
|
||||||
|
CollectedScalarParameters[3] = { Value=0.647619, Name=Blur Height map, Group=None }
|
||||||
|
CollectedScalarParameters[4] =
|
||||||
|
{
|
||||||
|
Value = 14.1926
|
||||||
|
Name = World Offset Strength
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[5] =
|
||||||
|
{
|
||||||
|
Value = 42.2273
|
||||||
|
Name = World Offset Noise Speed
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[6] = { Value=0.971429, Name=Alpha, Group=None }
|
||||||
|
CollectedScalarParameters[7] = { Value=0, Name=Hardness, Group=None }
|
||||||
|
CollectedScalarParameters[8] = { Value=-1, Name=Param, Group=None }
|
||||||
|
CollectedScalarParameters[9] = { Value=90, Name=Maskrotation, Group=None }
|
||||||
|
CollectedScalarParameters[10] = { Value=0.5, Name=NoisedistortContrast, Group=None }
|
||||||
|
CollectedScalarParameters[11] = { Value=1300, Name=CameraWidth, Group=None }
|
||||||
|
CollectedScalarParameters[12] = { Value=0.1, Name=MaskPower, Group=None }
|
||||||
|
CollectedScalarParameters[13] = { Value=1, Name=DistortTiling, Group=None }
|
||||||
|
CollectedScalarParameters[14] =
|
||||||
|
{
|
||||||
|
Value = 0.0007
|
||||||
|
Name = World Offset Scale
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedScalarParameters[15] = { Value=1, Name=NoiseDistortSpeed, Group=None }
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[3] =
|
||||||
|
{
|
||||||
|
CollectedVectorParameters[0] =
|
||||||
|
{
|
||||||
|
Value = { R=1.42595, G=0.5, B=3.12088, A=1 }
|
||||||
|
Name = Direction
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[1] =
|
||||||
|
{
|
||||||
|
Value = { R=0.124922, G=0.492277, B=0.796875, A=1 }
|
||||||
|
Name = Param
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
CollectedVectorParameters[2] =
|
||||||
|
{
|
||||||
|
Value = { R=0, G=0, B=-1, A=1 }
|
||||||
|
Name = CameraDirection
|
||||||
|
Group = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[0] = {}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Diffuse=VFX_T_Inky_Smoke_D
|
||||||
|
Normal=VFX_T_RibbonOffset_N
|
||||||
|
Other[0]=VFX_T_Noise12_D
|
||||||
|
Other[1]=VFX_T_Noise09_D
|
||||||
|
Other[2]=VFX_T_Noise04_D
|
||||||
|
Other[3]=VFX_T_Noise08_D
|
||||||
@@ -0,0 +1,110 @@
|
|||||||
|
Parent = MaterialInstanceConstant'/Game/VFX/MasterMaterials/Particles/MaterialInstance/VFX_MI_Flame_Ribbon.VFX_MI_Flame_Ribbon'
|
||||||
|
ScalarParameterValues[9] =
|
||||||
|
{
|
||||||
|
ScalarParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Mod UV Strength }
|
||||||
|
ParameterValue = 0.038095
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[1] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Mod UV Speed U (S) }
|
||||||
|
ParameterValue = -0.252381
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[2] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Mod UV Speed V (S) }
|
||||||
|
ParameterValue = 0.390476
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[3] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=Scale Strength V (S) }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[4] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RibbonTiling U }
|
||||||
|
ParameterValue = 1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[5] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RibbonTiling V }
|
||||||
|
ParameterValue = 0.35
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[6] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RibbonSpeed U }
|
||||||
|
ParameterValue = -1
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[7] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RibbonSpeed V }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
ScalarParameterValues[8] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RefractionDepthBias }
|
||||||
|
ParameterValue = 0
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextureParameterValues[1] =
|
||||||
|
{
|
||||||
|
TextureParameterValues[0] =
|
||||||
|
{
|
||||||
|
ParameterInfo = { Name=RibbonTexture 1 }
|
||||||
|
ParameterValue = Texture2D'/Game/VFX/Textures/Noises/VFX_T_Noise12_D.VFX_T_Noise12_D'
|
||||||
|
ParameterName = None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
VectorParameterValues[0] = {}
|
||||||
|
BasePropertyOverrides =
|
||||||
|
{
|
||||||
|
bOverride_BlendMode = false
|
||||||
|
BlendMode = BLEND_Translucent (2)
|
||||||
|
bOverride_TwoSided = false
|
||||||
|
TwoSided = false
|
||||||
|
bOverride_OpacityMaskClipValue = false
|
||||||
|
OpacityMaskClipValue = 0.3333
|
||||||
|
}
|
||||||
|
StaticParameters =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[1] =
|
||||||
|
{
|
||||||
|
StaticSwitchParameters[0] =
|
||||||
|
{
|
||||||
|
Value = true
|
||||||
|
ParameterInfo = { Name=Use Mod UV's }
|
||||||
|
bOverride = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
StaticComponentMaskParameters[0] = {}
|
||||||
|
TerrainLayerWeightParameters[0] = {}
|
||||||
|
MaterialLayersParameters[0] = {}
|
||||||
|
}
|
||||||
|
RuntimeVirtualTextureParameterValues[0] = {}
|
||||||
|
FontParameterValues[0] = {}
|
||||||
|
FlattenedTexture = None
|
||||||
|
MobileBaseTexture = None
|
||||||
|
MobileNormalTexture = None
|
||||||
|
bUseMobileSpecular = false
|
||||||
|
MobileSpecularPower = 16
|
||||||
|
MobileSpecularMask = MSM_Constant (0)
|
||||||
|
MobileMaskTexture = None
|
||||||
|
TextureStreamingData[1] =
|
||||||
|
{
|
||||||
|
TextureStreamingData[0] =
|
||||||
|
{
|
||||||
|
SamplingScale = 0.75
|
||||||
|
UVChannelIndex = 1
|
||||||
|
TextureName = VFX_T_RibbonOffset_N
|
||||||
|
}
|
||||||
|
}
|
||||||