summary refs log tree commit diff
path: root/misc/vita/colored_v.cg
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-06-16 10:35:45 +0300
committerWlodekM <[email protected]>2024-06-16 10:35:45 +0300
commitabef6da56913f1c55528103e60a50451a39628b1 (patch)
treeb3c8092471ecbb73e568cd0d336efa0e7871ee8d /misc/vita/colored_v.cg
initial commit
Diffstat (limited to 'misc/vita/colored_v.cg')
-rw-r--r--misc/vita/colored_v.cg10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/vita/colored_v.cg b/misc/vita/colored_v.cg
new file mode 100644
index 0000000..dc132a1
--- /dev/null
+++ b/misc/vita/colored_v.cg
@@ -0,0 +1,10 @@
+void main(
+	float3 in_position, 
+	float4 in_color,
+	uniform float4x4 mvp_matrix,
+	out float4 out_position: POSITION, 
+	out float4 out_color: COLOR)
+{
+	out_position = mul(mvp_matrix, float4(in_position, 1.0f));
+	out_color    = in_color;
+}
\ No newline at end of file