summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-19 17:08:45 +0200
committerSven Gothel <[email protected]>2014-06-19 17:08:45 +0200
commit33385ba1bb04682cef372adb0cd9f63b1fe55ca7 (patch)
tree30858bcf355f78b0e69c0f9a17d2fd28e7ed926a /LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh
parentd9a584844a60542519d813b5dc1a62428f14a0ae (diff)
Merge OculusSDK 0.3.2 Windows Source Code
Diffstat (limited to 'LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh')
-rw-r--r--LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh b/LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh
new file mode 100644
index 0000000..d5961a5
--- /dev/null
+++ b/LibOVR/Src/CAPI/Shaders/SimpleQuad_vs.vsh
@@ -0,0 +1,8 @@
+float2 PositionOffset = float2(0, 0);
+float2 Scale = float2(1, 1);
+
+void main( in float3 Position : POSITION,
+out float4 oPosition : SV_Position)
+{
+ oPosition = float4(Position.xy * Scale + PositionOffset, 0.5, 1.0);
+} \ No newline at end of file