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 --- features.cginc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'features.cginc') diff --git a/features.cginc b/features.cginc index b090113..80029bb 100644 --- a/features.cginc +++ b/features.cginc @@ -268,6 +268,22 @@ #pragma shader_feature_local _GRADIENT_NORMALS_3_HORIZONTAL //endex +//ifex _Sea_Foam_Enabled==0 +#pragma shader_feature_local _SEA_FOAM +//endex +//ifex _Sea_Foam_0_Enabled==0 +#pragma shader_feature_local _SEA_FOAM_0 +//endex +//ifex _Sea_Foam_1_Enabled==0 +#pragma shader_feature_local _SEA_FOAM_1 +//endex +//ifex _Sea_Foam_2_Enabled==0 +#pragma shader_feature_local _SEA_FOAM_2 +//endex +//ifex _Sea_Foam_3_Enabled==0 +#pragma shader_feature_local _SEA_FOAM_3 +//endex + //ifex _3D_SDF_Enabled==0 #pragma shader_feature_local _3D_SDF //endex -- cgit v1.2.3