Danbias/Code/OysterGraphics/Shader/HLSL/SimpleDebug/DebugCameraVertex.hlsl

13 lines
258 B
HLSL
Raw Normal View History

#include "Debug.hlsl"
2013-11-29 10:44:04 +01:00
VertexOut main( VertexIn input )
2013-11-21 13:50:43 +01:00
{
2013-11-29 10:44:04 +01:00
VertexOut outp;
outp.Wpos = mul( World, float4(input.pos,1) );
2013-11-22 10:55:21 +01:00
matrix VP = mul(Projection, View);
2013-11-29 10:44:04 +01:00
outp.Pos = mul(VP, outp.Wpos );
outp.UV = input.UV;
outp.Normal = input.normal;
return outp;
}