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 /globals.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 'globals.cginc')
| -rw-r--r-- | globals.cginc | 26 |
1 files changed, 26 insertions, 0 deletions
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;
|
