From c9342de5bd708d309cd0df1e65fe668ecbb9a16a Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 20 Jan 2026 23:30:08 -0800 Subject: Fur: add depth-based ao --- 2ner.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2ner.cginc') diff --git a/2ner.cginc b/2ner.cginc index 736210f..0b5ee9f 100644 --- a/2ner.cginc +++ b/2ner.cginc @@ -225,7 +225,7 @@ v2f vert(appdata v) { } //ifex _Fur_Enabled==0 -[maxvertexcount(3 * 9)] +[maxvertexcount(3 * 10)] void geom(triangle v2f input[3], inout TriangleStream stream) { #if defined(_FUR) #if defined(_FUR_MASK) @@ -431,7 +431,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace float4x4 tangentToWorld = float4x4( float4(i.tangent, 0), - float4(cross(i.tangent, i.normal), 0), + float4(f.binormal, 0), float4(i.normal, 0), float4(0, 0, 0, 1) ); -- cgit v1.2.3