From 688b5f42e9bfe498d7af7075d4d8f4429867f3a3 Mon Sep 17 00:00:00 2001 From: Miles Macklin Date: Fri, 9 Jun 2017 13:41:15 +1200 Subject: 1.2.0.beta.1 --- demo/d3d/shaders/debugLineVS.hlsl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 demo/d3d/shaders/debugLineVS.hlsl (limited to 'demo/d3d/shaders/debugLineVS.hlsl') 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; +} -- cgit v1.2.3