summaryrefslogtreecommitdiffstats
path: root/interpolators.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-08-06 16:42:42 -0700
committeryum <yum.food.vr@gmail.com>2025-08-06 16:42:42 -0700
commit99d161288bfe2d10c331c97e6b7571f9c884e912 (patch)
tree6ef130c4801de52f697c8d6996d9c4b0fb5f3964 /interpolators.cginc
initial commit
Diffstat (limited to 'interpolators.cginc')
-rw-r--r--interpolators.cginc29
1 files changed, 29 insertions, 0 deletions
diff --git a/interpolators.cginc b/interpolators.cginc
new file mode 100644
index 0000000..94f2613
--- /dev/null
+++ b/interpolators.cginc
@@ -0,0 +1,29 @@
+#ifndef __INTERPOLATORS_INC
+#define __INTERPOLATORS_INC
+
+#include "AutoLight.cginc"
+
+struct appdata {
+ float4 vertex : POSITION;
+ float2 uv0 : TEXCOORD0;
+ float4 color : COLOR; // vertex color
+
+ UNITY_VERTEX_INPUT_INSTANCE_ID
+};
+
+struct v2f {
+#if defined(_TESSELLATION)
+ float4 tpos : INTERNALTESSPOS;
+#endif
+ linear noperspective centroid float4 pos : SV_POSITION;
+ float2 uv0 : TEXCOORD0;
+ float3 objPos : TEXCOORD1;
+ float3 worldPos : TEXCOORD2;
+ float4 eyeVec : TEXCOORD3; // eyeVec.xyz | fogCoord
+ UNITY_LIGHTING_COORDS(4,5)
+
+ UNITY_VERTEX_INPUT_INSTANCE_ID
+ UNITY_VERTEX_OUTPUT_STEREO
+};
+
+#endif // __INTERPOLATORS_INC