summaryrefslogtreecommitdiffstats
path: root/globals.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-03-27 21:38:46 -0700
committeryum <yum.food.vr@gmail.com>2025-03-27 21:38:46 -0700
commit6d01be1827eea13d5f6cc66de763ea67e7fca631 (patch)
tree9a1d4595ea76714783bff0ae813b886f598e288f /globals.cginc
parent36dbdde9a08c66c5be2e8b8b6c822968a73041b6 (diff)
Use 3d textures for vertex domain warping
Diffstat (limited to 'globals.cginc')
-rw-r--r--globals.cginc16
1 files changed, 12 insertions, 4 deletions
diff --git a/globals.cginc b/globals.cginc
index 3a54bb8..c1a9fb2 100644
--- a/globals.cginc
+++ b/globals.cginc
@@ -6,6 +6,7 @@
SamplerState point_repeat_s;
SamplerState linear_repeat_s;
SamplerState linear_clamp_s;
+SamplerState trilinear_repeat_s;
sampler2D _MainTex;
float4 _MainTex_ST;
@@ -286,11 +287,11 @@ DECLARE_DECAL_VARIABLES(3)
#endif
#if defined(_VERTEX_DOMAIN_WARPING)
-float _Vertex_Domain_Warping_Spatial_Strength;
-float _Vertex_Domain_Warping_Spatial_Scale;
-float _Vertex_Domain_Warping_Spatial_Octaves;
+texture3D _Vertex_Domain_Warping_Noise;
+float _Vertex_Domain_Warping_Strength;
+float _Vertex_Domain_Warping_Scale;
+float _Vertex_Domain_Warping_Octaves;
float _Vertex_Domain_Warping_Speed;
-float _Vertex_Domain_Warping_Temporal_Strength;
#endif // _VERTEX_DOMAIN_WARPING
#if defined(_UV_DOMAIN_WARPING)
@@ -439,6 +440,13 @@ float _Tessellation_Heightmap_Scale;
float _Tessellation_Heightmap_Offset;
#endif // _TESSELLATION_HEIGHTMAP
+#if defined(_TESSELLATION_RANGE_FACTOR)
+float _Tessellation_Range_Factor_Distance_Near;
+float _Tessellation_Range_Factor_Factor_Near;
+float _Tessellation_Range_Factor_Distance_Far;
+float _Tessellation_Range_Factor_Factor_Far;
+#endif // _TESSELLATION_RANGE_FACTOR
+
#if defined(_SPHERIZE)
float _Spherize_Radius;
float _Spherize_Strength;