From be4c8a8ee8eaf892d008835225dfd897d259d793 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 30 Jul 2025 17:10:34 -0700 Subject: buncha shit - overhaul gradient normals to take a (dFy/dx, dFy/dz) input, and optionally two more: (dFx/dx, dFx/dz) and (dFz/dx, dFz/z) - this is what fft water needs - put YumPbr into data.cginc - fix tessellation compiler errors - remove tessellation frustum culling, seems to have been buggy - remove not impactful brdf code --- 2ner.cginc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '2ner.cginc') diff --git a/2ner.cginc b/2ner.cginc index 10dde42..861cd16 100644 --- a/2ner.cginc +++ b/2ner.cginc @@ -305,6 +305,18 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace #endif #if defined(_TESSELLATION_HEIGHTMAP_3) || _Tessellation_Heightmap_3_Scale > 1E-4 +#endif +#if defined(_TESSELLATION_HEIGHTMAP_4) + || _Tessellation_Heightmap_4_Scale > 1E-4 +#endif +#if defined(_TESSELLATION_HEIGHTMAP_5) + || _Tessellation_Heightmap_5_Scale > 1E-4 +#endif +#if defined(_TESSELLATION_HEIGHTMAP_6) + || _Tessellation_Heightmap_6_Scale > 1E-4 +#endif +#if defined(_TESSELLATION_HEIGHTMAP_7) + || _Tessellation_Heightmap_7_Scale > 1E-4 #endif ) { float4 clip_pos = UnityObjectToClipPos(i.objPos); -- cgit v1.2.3