From 512357cd6ffe15c4e4fb40ee09d4f04c51df95a3 Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 1 Aug 2025 13:37:40 -0700 Subject: ocean wave work - add sea foam feature, which takes horizontal displacement derivatives and calculates folding areas (with a bias) using the Tessendorf Jacobian method. - add "isInViewFrustum" method to tessellation --- globals.cginc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc index 2b65fc0..9fdf417 100644 --- a/globals.cginc +++ b/globals.cginc @@ -369,6 +369,32 @@ texture2D _Gradient_Normals_3_Horizontal; float4 _Gradient_Normals_3_Horizontal_ST; #endif +#if defined(_SEA_FOAM) +float4 _Sea_Foam_Color; +float _Sea_Foam_Roughness; +float _Sea_Foam_Lambda; +float _Sea_Foam_Power; +float _Sea_Foam_Factor; +float _Sea_Foam_Bias; +#endif + +#if defined(_SEA_FOAM_0) +texture2D _Sea_Foam_0_Slope; +float4 _Sea_Foam_0_Slope_ST; +#endif +#if defined(_SEA_FOAM_1) +texture2D _Sea_Foam_1_Slope; +float4 _Sea_Foam_1_Slope_ST; +#endif +#if defined(_SEA_FOAM_2) +texture2D _Sea_Foam_2_Slope; +float4 _Sea_Foam_2_Slope_ST; +#endif +#if defined(_SEA_FOAM_3) +texture2D _Sea_Foam_3_Slope; +float4 _Sea_Foam_3_Slope_ST; +#endif + #if defined(_VERTEX_DOMAIN_WARPING) texture3D _Vertex_Domain_Warping_Noise; float _Vertex_Domain_Warping_Strength; -- cgit v1.2.3