summaryrefslogtreecommitdiffstats
path: root/globals.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-12-17 16:48:23 -0800
committeryum <yum.food.vr@gmail.com>2025-12-17 16:48:23 -0800
commit32adb54e347faa86c63639a102930fe874808e39 (patch)
treefc06980b77b6ced2a85f016996df92522335670e /globals.cginc
parent3fa58d15452657fdf28ccecd4a87332e9652c9fa (diff)
add "axis align" feature to fix distortion after unbending the tube
Diffstat (limited to 'globals.cginc')
-rw-r--r--globals.cginc7
1 files changed, 7 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc
index b5d6b21..21d9889 100644
--- a/globals.cginc
+++ b/globals.cginc
@@ -82,6 +82,13 @@ float3 _Vertex_Deformation_Tube_To_Plane_0_s;
float _Vertex_Deformation_Tube_To_Plane_0_t;
#endif // _VERTEX_DEFORMATION_TUBE_TO_PLANE_0
+#if defined(_VERTEX_DEFORMATION_AXIS_ALIGN)
+float3 _Vertex_Deformation_Axis_Align_po;
+float3 _Vertex_Deformation_Axis_Align_pp;
+float3 _Vertex_Deformation_Axis_Align_r;
+float _Vertex_Deformation_Axis_Align_t;
+#endif // _VERTEX_DEFORMATION_AXIS_ALIGN
+
#if defined(_VERTEX_DEFORMATION_TUBE_TO_PLANE_1)
float3 _Vertex_Deformation_Tube_To_Plane_1_p;
float3 _Vertex_Deformation_Tube_To_Plane_1_r;