diff options
| author | Andrew Reidmeyer <[email protected]> | 2017-03-15 09:28:59 -0600 |
|---|---|---|
| committer | Andrew Reidmeyer <[email protected]> | 2017-03-15 09:28:59 -0600 |
| commit | f5f6a899903a309f1fc93b31c0297fc7b3b5cf46 (patch) | |
| tree | ed3dece338b579d5b51af494b2d543fb46c43fa3 /demo/Shaders/meshVS.hlsl | |
| download | flow-1.0.0.tar.xz flow-1.0.0.zip | |
Initial 1.0.0 binary releasev1.0.0
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 |