summaryrefslogtreecommitdiffstats
path: root/interpolators.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-12-14 16:31:10 -0800
committeryum <yum.food.vr@gmail.com>2023-12-14 16:31:10 -0800
commita5e0aaf10230c4690c6bf702b335edb700d5a8c5 (patch)
treed6d085945ddc548020e780bc200bc588c7803127 /interpolators.cginc
Initial commit
Basic functionality is complete.
Diffstat (limited to 'interpolators.cginc')
-rw-r--r--interpolators.cginc24
1 files changed, 24 insertions, 0 deletions
diff --git a/interpolators.cginc b/interpolators.cginc
new file mode 100644
index 0000000..3f278a7
--- /dev/null
+++ b/interpolators.cginc
@@ -0,0 +1,24 @@
+#ifndef __INTERPOLATORS_INC__
+#define __INTERPOLATORS_INC__
+
+struct appdata
+{
+ float4 position : POSITION;
+ float2 uv : TEXCOORD0;
+ float3 normal : NORMAL;
+};
+
+struct v2f
+{
+ float4 position : SV_POSITION;
+ float2 uv : TEXCOORD0;
+ float3 normal : TEXCOORD1;
+ float4 worldPos : TEXCOORD2;
+
+ #if defined(VERTEXLIGHT_ON)
+ float3 vertexLightColor : TEXCOORD3;
+ #endif
+};
+
+#endif // __INTERPOLATORS_INC__
+