From 3bf013dc3b5479f4fbb458d44801403afe0bb1d2 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 9 Aug 2023 18:54:17 -0700 Subject: Add ray-marched custom chatbox * Refactor shader code to make development easier. Templates are now as small as possible. * Update scaling code. Use Unity scaling instead of a blendshape. * Check in a fuckton of shader FOSS. Mostly unused. * Update TaSTT.fbx. Now has 6 faces instead of 2. --- Shaders/eyes_data.cginc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Shaders/eyes_data.cginc (limited to 'Shaders/eyes_data.cginc') diff --git a/Shaders/eyes_data.cginc b/Shaders/eyes_data.cginc new file mode 100644 index 0000000..d789116 --- /dev/null +++ b/Shaders/eyes_data.cginc @@ -0,0 +1,24 @@ +#ifndef __EYES_DATA_INC__ +#define __EYES_DATA_INC__ + +struct appdata +{ + float4 position : POSITION; + float2 uv : TEXCOORD0; + float3 normal : NORMAL; +}; + +struct v2f +{ + float4 position : SV_POSITION; + float4 uv : TEXCOORD0; + float3 normal : TEXCOORD1; + float3 worldPos : TEXCOORD2; + + #if defined(VERTEXLIGHT_ON) + float3 vertexLightColor : TEXCOORD3; + #endif +}; + +#endif // __EYES_DATA_INC__ + -- cgit v1.2.3