From abef6da56913f1c55528103e60a50451a39628b1 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Sun, 16 Jun 2024 10:35:45 +0300 Subject: initial commit --- misc/xbox360/vs_coloured.hlsl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 misc/xbox360/vs_coloured.hlsl (limited to 'misc/xbox360/vs_coloured.hlsl') diff --git a/misc/xbox360/vs_coloured.hlsl b/misc/xbox360/vs_coloured.hlsl new file mode 100644 index 0000000..7404109 --- /dev/null +++ b/misc/xbox360/vs_coloured.hlsl @@ -0,0 +1,20 @@ +struct INPUT_VERTEX +{ + float3 pos : POSITION; + float4 col : COLOR0; +}; + +struct OUTPUT_VERTEX +{ + float4 pos : POSITION; + float4 col : TEXCOORD0; +}; + +float4x4 mvpMatrix: register(c0); + +OUTPUT_VERTEX main(INPUT_VERTEX input) { + OUTPUT_VERTEX output; + output.pos = mul(mvpMatrix, float4(input.pos, 1.0f)); + output.col = input.col; + return output; +} \ No newline at end of file -- cgit 1.4.1-2-gfad0