From dcb15c0d7425f2b3ede070cd97ac8f1bd8386df1 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 22 Apr 2024 16:02:38 -0700 Subject: Initial commit Code bomb. Put tooner in version control. --- interpolators.cginc | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 interpolators.cginc (limited to 'interpolators.cginc') 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 + -- cgit v1.2.3