summaryrefslogtreecommitdiffstats
path: root/Shaders/eyes_data.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-08-09 18:54:17 -0700
committeryum <yum.food.vr@gmail.com>2023-08-09 18:54:17 -0700
commit3bf013dc3b5479f4fbb458d44801403afe0bb1d2 (patch)
treed91ef918797b2036e1005afa1e9b221d293b696f /Shaders/eyes_data.cginc
parent1285caf31578d758c2b52b915eedb17cc12a1826 (diff)
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.
Diffstat (limited to 'Shaders/eyes_data.cginc')
-rw-r--r--Shaders/eyes_data.cginc24
1 files changed, 24 insertions, 0 deletions
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__
+