2014-02-24 14:44:36 +01:00
|
|
|
struct InstVertexIn
|
2013-11-26 13:44:58 +01:00
|
|
|
{
|
|
|
|
float3 pos : POSITION;
|
|
|
|
float2 UV : TEXCOORD;
|
|
|
|
float3 normal : NORMAL;
|
2014-02-07 08:34:01 +01:00
|
|
|
float4 boneIndex : BONEINDEX;
|
2014-01-17 08:51:12 +01:00
|
|
|
float4 boneWeight : BONEWEIGHT;
|
2014-02-24 14:44:36 +01:00
|
|
|
//instance Data
|
|
|
|
//WV MATRIX
|
|
|
|
float4 wv1 : WV0;
|
|
|
|
float4 wv2 : WV1;
|
|
|
|
float4 wv3 : WV2;
|
|
|
|
float4 wv4 : WV3;
|
|
|
|
|
|
|
|
//WVP MATRIX
|
|
|
|
float4 wvp1 : WVP0;
|
|
|
|
float4 wvp2 : WVP1;
|
|
|
|
float4 wvp3 : WVP2;
|
|
|
|
float4 wvp4 : WVP3;
|
|
|
|
|
|
|
|
float3 Tint : TINT;
|
|
|
|
float3 GlowTint : GTINT;
|
2013-11-26 13:44:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct VertexOut
|
|
|
|
{
|
|
|
|
float4 pos : SV_POSITION;
|
2014-02-12 12:05:27 +01:00
|
|
|
float4 ViewPos : POSITION;
|
2013-11-26 13:44:58 +01:00
|
|
|
float2 UV : TEXCOORD;
|
|
|
|
float3 normal : NORMAL;
|
2014-02-24 14:44:36 +01:00
|
|
|
float3 tint : TINT;
|
|
|
|
float3 gtint : GTINT;
|
2013-11-26 13:44:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
struct PixelOut
|
|
|
|
{
|
|
|
|
float4 DiffuseGlow : SV_TARGET0;
|
|
|
|
float4 NormalSpec : SV_TARGET1;
|
|
|
|
};
|
|
|
|
|
|
|
|
Texture2D Diffuse : register(t0);
|
2013-12-18 20:28:06 +01:00
|
|
|
Texture2D Normal : register(t1);
|
|
|
|
|
2014-02-24 14:44:36 +01:00
|
|
|
SamplerState S1 : register(s0);
|