Danbias/Code/OysterGraphics/Shader/HLSL/SimpleDebug/Debug.hlsli

25 lines
340 B
HLSL
Raw Normal View History

2013-11-27 15:26:29 +01:00
cbuffer PerFrame : register(b0)
{
matrix View;
float4x4 Projection;
}
cbuffer PerModel : register(b1)
{
matrix World;
}
struct VertexIn
{
float3 pos : POSITION;
float2 UV : TEXCOORD;
float3 normal : NORMAL;
};
struct VertexOut
{
float4 Pos : SV_POSITION;
float2 UV : TEXCOORD;
float3 Normal : NORMAL;
float4 Wpos : POSITION;
};