summaryrefslogtreecommitdiffstats
path: root/Shaders/STT_generated_template.cginc
diff options
context:
space:
mode:
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__