diff options
author | Sven Gothel <[email protected]> | 2014-06-19 17:08:45 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-06-19 17:08:45 +0200 |
commit | 33385ba1bb04682cef372adb0cd9f63b1fe55ca7 (patch) | |
tree | 30858bcf355f78b0e69c0f9a17d2fd28e7ed926a /LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh | |
parent | d9a584844a60542519d813b5dc1a62428f14a0ae (diff) |
Merge OculusSDK 0.3.2 Windows Source Code
Diffstat (limited to 'LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh')
-rw-r--r-- | LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh b/LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh new file mode 100644 index 0000000..ddf65e3 --- /dev/null +++ b/LibOVR/Src/CAPI/Shaders/Distortion_vs.vsh @@ -0,0 +1,14 @@ +float2 EyeToSourceUVScale;
+float2 EyeToSourceUVOffset;
+
+void main(in float2 Position : POSITION, in float4 Color : COLOR0, in float2 TexCoord0 : TEXCOORD0,
+ out float4 oPosition : SV_Position, out float4 oColor : COLOR, out float3 oTexCoord0 : TEXCOORD0)
+{
+ oPosition.x = Position.x;
+ oPosition.y = Position.y;
+ oPosition.z = 0.5;
+ oPosition.w = 1.0;
+ oTexCoord0 = float3(EyeToSourceUVScale * TexCoord0 + EyeToSourceUVOffset, 1);
+ oColor = Color; // Used for vignette fade.
+}
+
|