diff options
Diffstat (limited to 'demo/Shaders/meshVS.hlsl')
| -rw-r--r-- | demo/Shaders/meshVS.hlsl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/demo/Shaders/meshVS.hlsl b/demo/Shaders/meshVS.hlsl new file mode 100644 index 0000000..969cbeb --- /dev/null +++ b/demo/Shaders/meshVS.hlsl @@ -0,0 +1,31 @@ + +cbuffer params : register(b0) +{ + float4x4 projection; +}; + +struct Input +{ + float3 position : POSITION; + float3 normal : NORMAL; +}; + +struct Output +{ + float4 position : SV_POSITION; + float3 normal : NORMAL; +}; + +Output meshVS( Input input, uint instance : SV_InstanceID ) +{ + Output output; + output.position = mul(float4(input.position,1.f),projection); + output.normal = input.normal; + + //output.position.z *= -1.f; + //output.position.z += 0.5f; + + //output.position.y -= 1.f * float(instance) + 0.1f; + + return output; +}
\ No newline at end of file |