summaryrefslogtreecommitdiffstats
path: root/globals.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-07-29 09:00:59 -0700
committeryum <yum.food.vr@gmail.com>2025-07-29 09:00:59 -0700
commitf1ccfe1d74846df120be984cb09d45ec7e17810c (patch)
tree51ccf2280debaa8b962cc04d4793422ad6cfef95 /globals.cginc
parent33a4a6d93f5f6c98cfc1bda95f9d3903310bc511 (diff)
add 4 tessellation heightmap channels
Diffstat (limited to 'globals.cginc')
-rw-r--r--globals.cginc33
1 files changed, 27 insertions, 6 deletions
diff --git a/globals.cginc b/globals.cginc
index ec88c60..0017758 100644
--- a/globals.cginc
+++ b/globals.cginc
@@ -499,12 +499,33 @@ float4 _Shatter_Wave_Rotation_Strength;
float _Tessellation_Factor;
#endif // _TESSELLATION
-#if defined(_TESSELLATION_HEIGHTMAP)
-texture2D _Tessellation_Heightmap;
-float4 _Tessellation_Heightmap_ST;
-float _Tessellation_Heightmap_Scale;
-float _Tessellation_Heightmap_Offset;
-#endif // _TESSELLATION_HEIGHTMAP
+#if defined(_TESSELLATION_HEIGHTMAP_0)
+texture2D _Tessellation_Heightmap_0;
+float4 _Tessellation_Heightmap_0_ST;
+float _Tessellation_Heightmap_0_Scale;
+float _Tessellation_Heightmap_0_Offset;
+#endif // _TESSELLATION_HEIGHTMAP_0
+
+#if defined(_TESSELLATION_HEIGHTMAP_1)
+texture2D _Tessellation_Heightmap_1;
+float4 _Tessellation_Heightmap_1_ST;
+float _Tessellation_Heightmap_1_Scale;
+float _Tessellation_Heightmap_1_Offset;
+#endif // _TESSELLATION_HEIGHTMAP_1
+
+#if defined(_TESSELLATION_HEIGHTMAP_2)
+texture2D _Tessellation_Heightmap_2;
+float4 _Tessellation_Heightmap_2_ST;
+float _Tessellation_Heightmap_2_Scale;
+float _Tessellation_Heightmap_2_Offset;
+#endif // _TESSELLATION_HEIGHTMAP_2
+
+#if defined(_TESSELLATION_HEIGHTMAP_3)
+texture2D _Tessellation_Heightmap_3;
+float4 _Tessellation_Heightmap_3_ST;
+float _Tessellation_Heightmap_3_Scale;
+float _Tessellation_Heightmap_3_Offset;
+#endif // _TESSELLATION_HEIGHTMAP_3
#if defined(_TESSELLATION_HEIGHTMAP_DIRECTION_CONTROL)
float3 _Tessellation_Heightmap_Direction_Control_Vector;