TombEngine/Build/Shaders/DX11/Test.fx

22 lines
434 B
HLSL
Raw Normal View History

2019-01-13 21:57:16 +01:00
struct VOut
{
float4 position : SV_POSITION;
float4 color : COLOR;
};
VOut VShader(float3 position : POSITION, float3 normal : NORMAL, float2 uv : TEXCOORD, float4 color : COLOR, float bone : BLENDINDICES)
{
VOut output;
output.position = float4(position.xyz, 1);
output.color = color;
return output;
}
float4 PShader(float4 position : SV_POSITION, float4 color : COLOR) : SV_TARGET
{
return color;
}