diff options
| author | yum <yum.food.vr@gmail.com> | 2025-08-01 13:37:40 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-01 13:37:40 -0700 |
| commit | 512357cd6ffe15c4e4fb40ee09d4f04c51df95a3 (patch) | |
| tree | 6d77e0bc7be53063fc95a1255d24fc59860afdc8 /features.cginc | |
| parent | 4186d84cccf1d0db4ba413dba63baf87c87b79bb (diff) | |
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
Diffstat (limited to 'features.cginc')
| -rw-r--r-- | features.cginc | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
