diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-20 22:07:45 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-20 22:07:45 -0800 |
| commit | d24a5d839bad7ae0a9a6525f7c4d30fa0877e073 (patch) | |
| tree | 9647d7a3a55765b556a08d5cc2cef3efbad98d42 /tessellation.cginc | |
| parent | ffb4b6b861a7f4a5c2468824e16872883f64c290 (diff) | |
Introduce f2f, general purpose shared container for fragment shader
Diffstat (limited to 'tessellation.cginc')
| -rw-r--r-- | tessellation.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tessellation.cginc b/tessellation.cginc index 1aba684..e3bccb2 100644 --- a/tessellation.cginc +++ b/tessellation.cginc @@ -30,7 +30,6 @@ bool cullPatch(float4 p0, float4 p1, float4 p2, float bias) { float4 applyHeightmap(float4 objPos, float2 uv, float3 normal, float3 tangent) { #if defined(_TESSELLATION) && defined(_TESSELLATION_HEIGHTMAP) - float3 binormal = cross(tangent, normal); float3 height = 0; #if defined(_TESSELLATION_HEIGHTMAP_0) float3 heightmap_0_sample = _Tessellation_Heightmap_0.SampleLevel(bilinear_repeat_s, @@ -77,6 +76,7 @@ float4 applyHeightmap(float4 objPos, float2 uv, float3 normal, float3 tangent) { objPos.xyz += mul(unity_WorldToObject, height).xyz; #else #if defined(_TESSELLATION_HEIGHTMAP_DIRECTION_CONTROL) + float3 binormal = cross(tangent, normal); float3 heightmap_direction = normalize( normalize(normal) * _Tessellation_Heightmap_Direction_Control_Vector.x + normalize(tangent) * _Tessellation_Heightmap_Direction_Control_Vector.y + |
