251108김진우

[add]
컴퓨트 쉐이더 추가
[add]
모델 인스턴싱 추가
[add]
프로토타입에 타입별로
IMGUI 통해 객체 받아올수 있도록 수정중
This commit is contained in:
GiJungSUk
2025-11-08 21:56:54 +09:00
parent 373b19f269
commit 88f5d0f8f2
200 changed files with 3623 additions and 37 deletions
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 854 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

@@ -0,0 +1,64 @@
struct Particle
{
float4 vRight;
float4 vUp;
float4 vLook;
float4 vTranslation;
float2 vLifeTime;
};
struct ParticleValue
{
float fSpeed;
float fRotaionSpeed;
float4 vOriginRight;
float4 vOriginUp;
float4 vOriginLook;
float4 vOriginTranslation;
float2 fPadding;
};
StructuredBuffer<Particle> g_ParticleBufferInput : register(t0);
StructuredBuffer<ParticleValue> g_ParticleValueBufferInput : register(t1);
RWStructuredBuffer<Particle> g_ParticleBufferOutput : register(u0);
cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐이더 바인딩할때 인덱스가 동일해야함
{
float fTimeDelta;
float fPadding; // 반드시 상수버퍼는 16바이트 배수로 만들어져야 한다.
float fPadding2;
float fPadding3;
}
//내가 몇개의 스레드를 사용할 것인지 지정하는데
//GPU 칩의 개수를 X * Y * Z의 개수 만큼 사용하겠다는 의미이다.
[numthreads(256, 1, 1)]
void CS_MAIN(
uint3 DispatchThreadID : SV_DispatchThreadID)
{
int iIndex = DispatchThreadID.x; // 배열 인덱스
Particle particle = g_ParticleBufferInput[iIndex];
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
particle.vTranslation.y -= particleValue.fSpeed * fTimeDelta;
particle.vLifeTime.x += fTimeDelta;
if (particle.vLifeTime.x >= particle.vLifeTime.y)
{
particle.vLifeTime.x = 0.f;
particle.vTranslation.y = 0.f;
}
g_ParticleBufferOutput[iIndex] = particle;
}
@@ -0,0 +1,316 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
bool g_bRimLight;
bool g_bUseNormalMap;
float g_fFar;
float g_LifeRatio;
float g_fRimStrength;
float g_fRimPower;
float3 g_vRimColor;
vector g_vCamPosition;
Texture2D g_DiffuseTexture;
Texture2D g_NormalTexture;
matrix g_BoneMatrices[512];
struct VS_IN
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
uint4 vBlendIndex : BLENDINDEX;
float4 vBlendWeight : BLENDWEIGHT;
};
struct VS_OUT
{
float4 vPosition : SV_Position;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix =
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vNormal = mul(vector(In.vNormal, 0.f), BoneMatrix);
vector vBinormal = mul(vector(In.vBinormal, 0.f), BoneMatrix);
vector vTangent = mul(vector(In.vTangent, 0.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vNormal = normalize(mul(vNormal, g_WorldMatrix)).xyz;
Out.vBinormal = normalize(mul(vBinormal, g_WorldMatrix)).xyz;
Out.vTangent = normalize(mul(vTangent, g_WorldMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vWorldPos = mul(vPosition, g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
struct VS_OUT_CAPTUREDMODEL
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
struct VS_OUT_BLUR
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
VS_OUT_CAPTUREDMODEL VS_CAPTUREDMODEL(VS_IN In)
{
VS_OUT_CAPTUREDMODEL Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix =
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x ) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y ) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z ) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
VS_OUT_BLUR VS_MAIN_BLUR(VS_IN In)
{
VS_OUT_BLUR Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix =
mul(g_BoneMatrices[In.vBlendIndex.x], In.vBlendWeight.x) +
mul(g_BoneMatrices[In.vBlendIndex.y], In.vBlendWeight.y) +
mul(g_BoneMatrices[In.vBlendIndex.z], In.vBlendWeight.z) +
mul(g_BoneMatrices[In.vBlendIndex.w], fWeightW);
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
struct VS_OUT_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
{
VS_OUT_SHADOW Out;
float fWeightW = 1.f - (In.vBlendWeight.x + In.vBlendWeight.y + In.vBlendWeight.z);
matrix BoneMatrix = g_BoneMatrices[In.vBlendIndex.x] * In.vBlendWeight.x +
g_BoneMatrices[In.vBlendIndex.y] * In.vBlendWeight.y +
g_BoneMatrices[In.vBlendIndex.z] * In.vBlendWeight.z +
g_BoneMatrices[In.vBlendIndex.w] * fWeightW;
/* 스키닝 */
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vPosition, matWVP);
Out.vProjPos = Out.vPosition;
return Out;
}
struct PS_IN
{
float4 vPosition : SV_Position;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
struct PS_OUT
{
float4 vDiffuse : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
};
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vMtrlDiffuse.a < 0.4f)
{
discard;
}
vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix);
if (true == g_bRimLight)
{
float fRimLight = GetRimLight(g_vCamPosition.xyz, In.vWorldPos.xyz, vNormal, g_fRimPower, g_fRimStrength);
vMtrlDiffuse.xyz = (vMtrlDiffuse.xyz * (1 - fRimLight)) + g_vRimColor * fRimLight;
}
Out.vDiffuse = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f);
return Out;
}
struct PS_IN_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
struct PS_OUT_SHADOW
{
float4 vShadowLightDepth : SV_TARGET0;
};
PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In)
{
PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0;
Out.vShadowLightDepth.x = In.vProjPos.z;
return Out;
}
struct PS_IN_CAPTUREDMODEL
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT_CAPTUREDMODEL
{
float4 vColor : SV_TARGET0;
};
PS_OUT_CAPTUREDMODEL PS_CAPTUREDMODEL(PS_IN_CAPTUREDMODEL In)
{
PS_OUT_CAPTUREDMODEL Out = (PS_OUT_CAPTUREDMODEL) 0;
Out.vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vColor.a = saturate(1 - g_LifeRatio) * 0.5f;
return Out;
}
struct PS_IN_BLUR
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT_BLUR
{
float4 vDiffuse : SV_TARGET0;
};
PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In)
{
PS_OUT_BLUR Out = (PS_OUT_BLUR) 0;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vDiffuse = saturate(vMtrlDiffuse);
return Out;
}
technique11 DefaultTechnique
{
pass Default
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass ShadowPass
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_SHADOW();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_SHADOW();
}
pass CAPTUREDMODELPASS
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_CAPTUREDMODEL();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_CAPTUREDMODEL();
}
pass BlurPass // 9
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_BLUR();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
}
}
@@ -0,0 +1,420 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
bool g_bUVTargetDiffuse;
bool g_bAdditiveDisolve;
float g_LifeRatio;
float g_fFar;
float g_fTime;
float g_fDeltaU;
float g_fDeltaV;
uint g_iIndexU;
uint g_iIndexV;
float g_fDisolveRatio;
float2 g_vClipBoxSize;
float2 g_vClipBoxLTPos;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
Texture2D g_ClippingTexture;
Texture2D g_DisolveTexture;
Texture2D g_NormalTexture;
struct VS_IN
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
};
struct VS_OUT
{
float4 vPosition : SV_POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
struct VS_OUT_BLUR
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
struct VS_OUT_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
VS_OUT_BLUR VS_MAIN_BLUR(VS_IN In)
{
VS_OUT_BLUR Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
{
VS_OUT_SHADOW Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vProjPos = Out.vPosition;
return Out;
}
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix)).xyz;
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), g_WorldMatrix)).xyz;
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), g_WorldMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
struct VS_OUT_EFFECT
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
VS_OUT_EFFECT VS_EFFECT(VS_IN In)
{
VS_OUT_EFFECT Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
struct VS_OUT_CAPTUREDMODEL
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
VS_OUT_CAPTUREDMODEL VS_CAPTUREDMODEL(VS_IN In)
{
VS_OUT_CAPTUREDMODEL Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
struct PS_IN
{
float4 vPosition : SV_POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
struct PS_OUT
{
float4 vDiffuse : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
};
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vMtrlDiffuse.a < 0.4f)
{
discard;
}
vector vNormalDesc = g_NormalTexture.Sample(MirrorSampler, In.vTexcoord);
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = mul(vNormalDesc.xyz * 2.f - 1.f, WorldMatrix);
Out.vDiffuse = vMtrlDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.f);
return Out;
}
struct PS_IN_SHADOW
{
float4 vPosition : SV_POSITION;
float4 vProjPos : TEXCOORD0;
};
struct PS_OUT_SHADOW
{
float4 vShadowLightDepth : SV_TARGET0;
};
struct PS_IN_BLUR
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT_BLUR
{
float4 vDiffuse : SV_TARGET0;
};
PS_OUT_BLUR PS_MAIN_BLUR(PS_IN_BLUR In)
{
PS_OUT_BLUR Out = (PS_OUT_BLUR) 0;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vDiffuse = saturate(vMtrlDiffuse);
return Out;
}
PS_OUT_SHADOW PS_MAIN_SHADOW(PS_IN_SHADOW In)
{
PS_OUT_SHADOW Out = (PS_OUT_SHADOW) 0;
Out.vShadowLightDepth.x = In.vProjPos.z;
return Out;
}
struct PS_IN_EFFECT
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT_EFFECT
{
float4 vColor : SV_TARGET0;
};
PS_OUT_EFFECT PS_EFFECT_UVMOVE(PS_IN_EFFECT In)
{
PS_OUT_EFFECT Out;
float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV);
vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vMovedUV);
if (vDiffuse.a < 0.01f)
{
discard;
}
Out.vColor = vDiffuse;
return Out;
}
PS_OUT_EFFECT PS_EFFECT(PS_IN_EFFECT In)
{
PS_OUT_EFFECT Out;
float2 uv = In.vTexcoord;
float2 vClipBoxUV = g_vClipBoxLTPos + g_vClipBoxSize * In.vTexcoord;
uv.x += g_fDeltaU * g_fTime;
uv.y += g_fDeltaV * g_fTime;
vector vDiffuse;
vector vMasking;
vector vClipCell = g_ClippingTexture.Sample(DefaultSampler, vClipBoxUV);
vector vDisolveCell = g_DisolveTexture.Sample(DefaultSampler, In.vTexcoord);
if (true == g_bUVTargetDiffuse)
{
vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
vMasking = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
}
else
{
vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
vMasking = g_MaskingTexture.Sample(DefaultSampler, uv);
}
if (true == g_bAdditiveDisolve)
{
vDiffuse.a = saturate(vDiffuse.a * vMasking.r * vClipCell.r + vDisolveCell.r * g_fDisolveRatio);
}
else
{
vDiffuse.a = saturate(vDiffuse.a * vMasking.r * vClipCell.r - vDisolveCell.r * g_fDisolveRatio);
}
if (vDiffuse.a < 0.01f)
{
discard;
}
Out.vColor = vDiffuse;
return Out;
}
struct PS_IN_CAPTUREDMODEL
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT_CAPTUREDMODEL
{
float4 vColor : SV_TARGET0;
};
PS_OUT_CAPTUREDMODEL PS_CAPTUREDMODEL(PS_IN_CAPTUREDMODEL In)
{
PS_OUT_CAPTUREDMODEL Out = (PS_OUT_CAPTUREDMODEL) 0;
Out.vColor = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
Out.vColor.a = saturate(1 - g_LifeRatio) * 0.5f;
return Out;
}
technique11 MeshTechnique11
{
pass MeshPass // 0
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass ShadowPass
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_SHADOW();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_SHADOW();
}
pass SkyBoxPass // 2
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass ALPHABlendPass // 3
{
SetRasterizerState(RS_Nocull_Wireframe);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass EffectPass_AlphaBlend // 4
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_EFFECT();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EFFECT();
}
pass EffectPass_Blend // 5
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_EFFECT();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EFFECT();
}
pass EffectPass_AlphaBlend_Cull // 6
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_EFFECT();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EFFECT();
}
pass EffectPass_Blend_Cull // 7
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_EFFECT();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EFFECT();
}
pass CAPTUREDMODELPASS // 8
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_CAPTUREDMODEL();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_CAPTUREDMODEL();
}
pass BlurPass // 9
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN_BLUR();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN_BLUR();
}
pass UVMovePass
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_EFFECT();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_EFFECT_UVMOVE();
}
}
@@ -0,0 +1,166 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_DiffuseTexture;
Texture2D g_NormalTexture;
Texture2D g_MaskingTexture;
Texture2D g_DissolveTexture;
float4 g_vCamPosition;
vector g_vColor;
float2 g_vUVGain;
float g_fFar;
struct VS_IN
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vRight : TEXCOORD1;
float4 vUp : TEXCOORD2;
float4 vLook : TEXCOORD3;
float4 vTranslation : TEXCOORD4;
float2 vLifeTime : TEXCOORD5;
};
struct VS_OUT
{
float4 vPosition : SV_POSITION;
float4 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float2 vLifeTime : TEXCOORD1;
float4 vWorldPos : TEXCOORD2;
float4 vProjPos : TEXCOORD3;
};
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out = (VS_OUT) 0;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
float4 vProjPos = vector(In.vPosition, 1.f);
Out.vPosition = mul(vProjPos, matWVP);
Out.vProjPos = vProjPos;
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);
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), TransformMatrix));
Out.vTangent = normalize(mul(vector(In.vTangent, 0.f), TransformMatrix)).xyz;
Out.vBinormal = normalize(mul(vector(In.vBinormal, 0.f), TransformMatrix)).xyz;
Out.vTexcoord = In.vTexcoord;
Out.vLifeTime = In.vLifeTime;
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
return Out;
}
struct PS_IN
{
float4 vPosition : SV_POSITION;
float4 vNormal : NORMAL;
float3 vTangent : TANGENT;
float3 vBinormal : BINORMAL;
float2 vTexcoord : TEXCOORD0;
float2 vLifeTime : TEXCOORD1;
float4 vWorldPos : TEXCOORD2;
float4 vProjPos : TEXCOORD3;
};
struct PS_OUT
{
float4 vDiffuse : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
};
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse;
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMtrlNormal = g_NormalTexture.Sample(DefaultSampler, In.vTexcoord);
float3x3 NormalMap_WorldMatrix = float3x3(In.vTangent, In.vBinormal, In.vNormal.xyz);
float3 vNormal = mul(vMtrlNormal.xyz * 2.f - 1.f, NormalMap_WorldMatrix);
Out.vNormal = float4(vNormal.xyz * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 0.0f);
if (vMtrlDiffuse.a < 0.3f)
discard;
Out.vDiffuse.a = saturate(In.vLifeTime.y - In.vLifeTime.x);
Out.vDiffuse = vMtrlDiffuse;
return Out;
}
PS_OUT PS_NON_NORMALMAP(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse;
vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
if (vMtrlDiffuse.a < 0.3f)
discard;
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 0.0f);
Out.vNormal = In.vNormal;
Out.vDiffuse.a = saturate(In.vLifeTime.y - In.vLifeTime.x);
Out.vDiffuse = vMtrlDiffuse;
return Out;
}
technique11 DefaultTechnique
{
pass Model
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass NON_NOMALMAP
{
SetRasterizerState(RS_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_NON_NORMALMAP();
}
}
@@ -0,0 +1,96 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
float g_fFar;
Texture2D g_DiffuseTexture;
struct VS_IN
{
float3 vPosition : POSITION;
float3 vNormal : NORMAL;
float2 vTexcoord : TEXCOORD0;
};
struct VS_OUT
{
float4 vPosition : SV_POSITION;
float4 vNormal : NORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vTexcoord = In.vTexcoord;
Out.vNormal = normalize(mul(vector(In.vNormal, 0.f), g_WorldMatrix));
Out.vWorldPos = mul(vector(In.vPosition, 1.f), g_WorldMatrix);
Out.vProjPos = Out.vPosition;
return Out;
}
struct PS_IN
{
float4 vPosition : SV_POSITION;
float4 vNormal : NORMAL;
float2 vTexcoord : TEXCOORD0;
float4 vWorldPos : TEXCOORD1;
float4 vProjPos : TEXCOORD2;
};
struct PS_OUT
{
float4 vDiffuse : SV_TARGET0;
float4 vNormal : SV_TARGET1;
float4 vDepth : SV_TARGET2;
};
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
vector vMtrlDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord * 30.f);
if (vMtrlDiffuse.a < 0.4f)
{
discard;
}
Out.vDiffuse = vMtrlDiffuse;
Out.vNormal = float4(In.vNormal.xyz * 0.5f + 0.5f, 0.f);
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 0.0f, 1.0f);
return Out;
}
technique11 NorTexTechnique11
{
pass NorTexPass
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass TerrainPass
{
SetRasterizerState(RS_Nocull_Wireframe);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
}
@@ -0,0 +1,148 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
float g_fDeltaU;
float g_fDeltaV;
uint g_iIndexU;
uint g_iIndexV;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
Texture2D g_DisolveTexture;
vector g_vCamPosition;
struct VS_IN
{
float3 vPosition : POSITION;
row_major float4x4 TransformMatrix : WORLD;
float2 vLifeTime : TEXCOORD0;
};
struct VS_OUT
{
float4 vPosition : POSITION;
float fSize : PSIZE;
float2 vLifeTime : TEXCOORD0;
};
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
vector vPosition = mul(vector(In.vPosition, 1.f), In.TransformMatrix);
Out.vPosition = mul(vPosition, g_WorldMatrix);
Out.fSize = length(In.TransformMatrix._11_12_13);
Out.vLifeTime = In.vLifeTime;
return Out;
}
struct GS_IN
{
float4 vPosition : POSITION;
float fSize : PSIZE;
float2 vLifeTime : TEXCOORD0;
};
struct GS_OUT
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
float2 vLifeTime : TEXCOORD1;
};
//GS_MAIN(triangle GS_INIn[3])
//GS_MAIN(line GS_IN In[2])
[maxvertexcount(6)]
void GS_MAIN(point GS_IN In[1], inout TriangleStream<GS_OUT> OutStream)
{
GS_OUT Out[4];
float3 vLook = (g_vCamPosition - In[0].vPosition).xyz;
float3 vRight = normalize(cross(float3(0.f, 1.f, 0.f), vLook)) * In[0].fSize * 0.5f;
float3 vUp = normalize(cross(vLook, vRight)) * In[0].fSize * 0.5f;
matrix matVP = mul(g_ViewMatrix, g_ProjMatrix);
Out[0].vPosition = mul(float4(In[0].vPosition.xyz + vRight + vUp, 1.f), matVP);
Out[0].vTexcoord = float2(0.f, 0.f);
Out[0].vLifeTime = In[0].vLifeTime;
Out[1].vPosition = mul(float4(In[0].vPosition.xyz - vRight + vUp, 1.f), matVP);
Out[1].vTexcoord = float2(1.f, 0.f);
Out[1].vLifeTime = In[0].vLifeTime;
Out[2].vPosition = mul(float4(In[0].vPosition.xyz - vRight - vUp, 1.f), matVP);
Out[2].vTexcoord = float2(1.f, 1.f);
Out[2].vLifeTime = In[0].vLifeTime;
Out[3].vPosition = mul(float4(In[0].vPosition.xyz + vRight - vUp, 1.f), matVP);
Out[3].vTexcoord = float2(0.f, 1.f);
Out[3].vLifeTime = In[0].vLifeTime;
OutStream.Append(Out[0]);
OutStream.Append(Out[1]);
OutStream.Append(Out[2]);
OutStream.RestartStrip();
OutStream.Append(Out[0]);
OutStream.Append(Out[2]);
OutStream.Append(Out[3]);
OutStream.RestartStrip();
}
/* 출력된 정점 위치벡터의 w값으로 모든 성분을 나눈다 -> 투영스페이스로 변환 */
/* 정점의 위치에 대해서 뷰포트 변환을 수행한다 */
/* 정점의 모든 정보를 보간하여 픽셀을 만든다. -> 래스터라이즈 */
struct PS_IN
{
float4 vPosition : SV_POSITION;
float2 vTexcoord : TEXCOORD0;
float2 vLifeTime : TEXCOORD1;
};
struct PS_OUT
{
float4 vColor : SV_TARGET0;
};
/* 픽셀 쉐이더 : 픽셀의 최종적인 색을 결정하낟. */
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV);
vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, vMovedUV);
vector vMask = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
vector vDisolve = g_DisolveTexture.Sample(DefaultSampler, In.vTexcoord);
vDiffuse.a = saturate(vDiffuse.a * vMask.r - vDisolve.r * (2.f * In.vLifeTime.x / In.vLifeTime.y));
Out.vColor = vDiffuse;
return Out;
}
technique11 DefaultTechnique
{
pass Explosion
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_Effect, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = compile gs_5_0 GS_MAIN();
PixelShader = compile ps_5_0 PS_MAIN();
}
}
@@ -0,0 +1,137 @@
#include "Engine_Shader_Defines.hlsli"
matrix g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
Texture2D g_DepthTexture;
float g_fFar;
float g_fDeltaU;
float g_fDeltaV;
uint g_iIndexU;
uint g_iIndexV;
Texture2D g_Texture;
Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
struct VS_IN
{
float3 vPosition : POSITION;
float2 vTexcoord : TEXCOORD0;
};
struct VS_OUT
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
VS_OUT VS_MAIN(VS_IN In)
{
VS_OUT Out;
matrix matWV, matWVP;
matWV = mul(g_WorldMatrix, g_ViewMatrix);
matWVP = mul(matWV, g_ProjMatrix);
Out.vPosition = mul(vector(In.vPosition, 1.f), matWVP);
Out.vTexcoord = In.vTexcoord;
return Out;
}
struct PS_IN
{
float4 vPosition : SV_Position;
float2 vTexcoord : TEXCOORD0;
};
struct PS_OUT
{
float4 vColor : SV_Target0;
};
PS_OUT PS_MAIN(PS_IN In)
{
PS_OUT Out;
Out.vColor = g_Texture.Sample(DefaultSampler, In.vTexcoord);
return Out;
}
PS_OUT PS_UVMove(PS_IN In)
{
PS_OUT Out;
float2 vMovedUV = Get_MovedUV(In.vTexcoord, g_fDeltaU, g_fDeltaV, g_iIndexU, g_iIndexV);
Out.vColor = g_Texture.Sample(DefaultSampler, vMovedUV);
clip(Out.vColor.a - 0.01f);
return Out;
}
PS_OUT PS_Trail(PS_IN In)
{
PS_OUT Out;
vector vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
vector vMasking = g_MaskingTexture.Sample(DefaultSampler, In.vTexcoord);
vDiffuse.a = vDiffuse.a * vMasking.r;
Out.vColor = vDiffuse;
Out.vColor.a *= In.vTexcoord.x;
clip(Out.vColor.a - 0.01f);
return Out;
}
technique11 PosTexTechnique11
{
pass PosTexPass
{
SetRasterizerState(RS_Default);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass ScissorPass
{
SetRasterizerState(RS_Scissor);
SetDepthStencilState(DSS_Default, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass UIPass
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_MAIN();
}
pass UVMovePass
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_UVMove();
}
pass TrailPass
{
SetRasterizerState(RS_Nocull);
SetDepthStencilState(DSS_None, 0);
SetBlendState(BS_Blend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
VertexShader = compile vs_5_0 VS_MAIN();
GeometryShader = NULL;
PixelShader = compile ps_5_0 PS_Trail();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Some files were not shown because too many files have changed in this diff Show More