summaryrefslogtreecommitdiffstats
path: root/interpolators.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-04-22 16:02:38 -0700
committeryum <yum.food.vr@gmail.com>2024-04-22 16:02:38 -0700
commitdcb15c0d7425f2b3ede070cd97ac8f1bd8386df1 (patch)
treee17e5b620e0784226b6d24acce43c8bbcee22f1f /interpolators.cginc
Initial commit
Code bomb. Put tooner in version control.
Diffstat (limited to 'interpolators.cginc')
-rw-r--r--interpolators.cginc50
1 files changed, 50 insertions, 0 deletions
diff --git a/interpolators.cginc b/interpolators.cginc
new file mode 100644
index 0000000..9b9bcb2
--- /dev/null
+++ b/interpolators.cginc
@@ -0,0 +1,50 @@
+#ifndef __INTERPOLATORS_INC
+#define __INTERPOLATORS_INC
+
+#include "AutoLight.cginc"
+
+#if defined(_OUTLINE_INTERPOLATORS)
+
+struct appdata
+{
+ float4 vertex : POSITION;
+ float3 normal : NORMAL;
+ float2 uv : TEXCOORD0;
+};
+
+struct v2f
+{
+ float4 clipPos : POSITION;
+ float2 uv : TEXCOORD0;
+ float3 worldPos : TEXCOORD1;
+ float3 normal : TEXCOORD2;
+};
+
+#else
+
+struct appdata
+{
+ float4 position : POSITION;
+ float2 uv : TEXCOORD0;
+ float3 normal : NORMAL;
+ float4 tangent : TANGENT;
+};
+
+struct v2f
+{
+ float4 clipPos : SV_POSITION;
+ float2 uv : TEXCOORD0;
+ float3 normal : TEXCOORD1;
+ float4 tangent : TEXCOORD2;
+ float3 worldPos : TEXCOORD3;
+
+ SHADOW_COORDS(4)
+
+ #if defined(VERTEXLIGHT_ON)
+ float3 vertexLightColor : TEXCOORD5;
+ #endif
+};
+#endif
+
+#endif // __INTERPOLATORS_INC
+