1
0
mirror of https://github.com/dege-diosg/dgVoodoo2 synced 2024-07-08 20:51:02 +02:00

38 lines
879 B
HLSL

// *****************************************************************************
// File: VSQuad.hlsl
//
// Description: Vertex shader used for drawing the textured quad
//
// Contact person: DG
//
// *****************************************************************************
// --- Input signature ---------------------------------------------------------
struct INPUT
{
float2 pos : POSITION0;
float2 srcTexUV : TEXCOORD0;
};
// --- Output signature --------------------------------------------------------
struct OUTPUT
{
float4 pos : SV_POSITION;
float2 srcTexUV : TEXCOORD0;
};
// --- Resources ---------------------------------------------------------------
// --- Shader code -------------------------------------------------------------
OUTPUT main (INPUT i)
{
OUTPUT o;
o.pos = float4 (i.pos, 0.0f, 1.0f);
o.srcTexUV = i.srcTexUV;
return o;
}