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/STT_generated_template.cginc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Shaders/STT_generated_template.cginc (limited to 'Shaders/STT_generated_template.cginc') 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__ -- cgit v1.2.3