aboutsummaryrefslogtreecommitdiff
path: root/demo/d3d/shaders/debugLineVS.hlsl
diff options
context:
space:
mode:
Diffstat (limited to 'demo/d3d/shaders/debugLineVS.hlsl')
-rw-r--r--demo/d3d/shaders/debugLineVS.hlsl26
1 files changed, 26 insertions, 0 deletions
diff --git a/demo/d3d/shaders/debugLineVS.hlsl b/demo/d3d/shaders/debugLineVS.hlsl
new file mode 100644
index 0000000..1033b35
--- /dev/null
+++ b/demo/d3d/shaders/debugLineVS.hlsl
@@ -0,0 +1,26 @@
+
+cbuffer params : register(b0)
+{
+ float4x4 projectionViewWorld;
+};
+
+struct Input
+{
+ float3 position : POSITION;
+ float4 color : COLOR;
+};
+
+struct Output
+{
+ float4 position : SV_POSITION;
+ float4 color : COLOR;
+};
+
+Output debugLineVS(Input input)
+{
+ Output output;
+ output.position = mul(projectionViewWorld, float4(input.position, 1.0f));
+ output.color = input.color;
+
+ return output;
+}