aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh
diff options
context:
space:
mode:
Diffstat (limited to 'LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh')
-rw-r--r--LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh b/LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh
new file mode 100644
index 0000000..82a1940
--- /dev/null
+++ b/LibOVR/Src/CAPI/Shaders/SimpleTexturedQuad_vs.vsh
@@ -0,0 +1,16 @@
+struct Values
+{
+ float4 Position : SV_Position;
+ float4 Color : COLOR0;
+ float2 TexCoord : TEXCOORD0;
+};
+
+float2 PositionOffset = float2(0, 0);
+float2 Scale = float2(1, 1);
+
+void main(in float3 Position : POSITION, in float4 Color : COLOR0, in float2 TexCoord : TEXCOORD0, out Values outputValues)
+{
+ outputValues.Position = float4(Position.xy * Scale + PositionOffset, 0.5, 1.0);
+ outputValues.Color = Color;
+ outputValues.TexCoord = TexCoord;
+}