summaryrefslogtreecommitdiffstats
path: root/Shaders/STT_generated_template.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/STT_generated_template.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/STT_generated_template.cginc')
-rw-r--r--Shaders/STT_generated_template.cginc19
1 files changed, 19 insertions, 0 deletions
diff --git a/Shaders/STT_generated_template.cginc b/Shaders/STT_generated_template.cginc
new file mode 100644
index 0000000..9091e8e
--- /dev/null
+++ b/Shaders/STT_generated_template.cginc
@@ -0,0 +1,19 @@
+#ifndef __STT_GENERATED_INC__
+#define __STT_GENERATED_INC__
+
+// %TEMPLATE__CG_ROW_COL_CONSTANTS%
+
+// %TEMPLATE__CG_ROW_COL_PARAMS%
+
+// Get the value of the parameter for the cell we're in.
+uint GetLetterParameter(float2 uv)
+{
+ float CHAR_COL = floor(uv.x * BOARD_NCOLS);
+ float CHAR_ROW = floor(uv.y * BOARD_NROWS);
+ int res = 0;
+
+ // %TEMPLATE__CG_LETTER_ACCESSOR%
+ return res;
+}
+
+#endif // __STT_GENERATED_INC__