2013-11-28 14:34:52 +01:00
|
|
|
#include "Debug.hlsl"
|
2013-11-20 16:51:53 +01:00
|
|
|
{
|
|
|
|
matrix View;
|
|
|
|
float4x4 Projection;
|
|
|
|
}
|
|
|
|
cbuffer PerModel : register(b1)
|
|
|
|
{
|
|
|
|
matrix World;
|
|
|
|
}
|
|
|
|
|
2013-11-21 13:50:43 +01:00
|
|
|
struct VertexIn
|
|
|
|
{
|
|
|
|
float3 pos : POSITION;
|
|
|
|
float2 UV : TEXCOORD;
|
|
|
|
float3 normal : NORMAL;
|
|
|
|
};
|
2013-11-21 10:02:17 +01:00
|
|
|
|
2013-11-21 13:50:43 +01:00
|
|
|
float4 main( VertexIn input ) : SV_POSITION
|
2013-11-20 16:51:53 +01:00
|
|
|
{
|
2013-11-26 13:44:58 +01:00
|
|
|
float4 postTransform = mul( World, float4(input.pos,1) );
|
|
|
|
//float4 postTransform = float4(input.pos,1);
|
2013-11-21 23:54:12 +01:00
|
|
|
//return postTransform;
|
2013-11-22 10:55:21 +01:00
|
|
|
//return mul(View, float4(input.pos,1));
|
|
|
|
matrix VP = mul(Projection, View);
|
2013-11-21 23:54:12 +01:00
|
|
|
//matrix WVP = mul(World, VP);
|
2013-11-26 13:44:58 +01:00
|
|
|
return mul(VP, postTransform );
|
2013-11-28 14:34:52 +01:00
|
|
|
|
2013-11-20 16:51:53 +01:00
|
|
|
}
|