summary refs log tree commit diff
path: root/misc/xbox360/vs_textured.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xbox360/vs_textured.hlsl')
-rw-r--r--misc/xbox360/vs_textured.hlsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/xbox360/vs_textured.hlsl b/misc/xbox360/vs_textured.hlsl
new file mode 100644
index 0000000..e271988
--- /dev/null
+++ b/misc/xbox360/vs_textured.hlsl
@@ -0,0 +1,23 @@
+struct INPUT_VERTEX 
+{
+	float3 pos : POSITION;
+	float4 col : COLOR0;
+	float2 uv  : TEXCOORD0; 
+};
+
+struct OUTPUT_VERTEX
+{ 
+	float4 pos : POSITION;
+	float4 col : COLOR0;
+	float2 uv  : 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;
+   output.uv  = input.uv;
+   return output;
+}
\ No newline at end of file