diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-20 23:30:08 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-20 23:30:08 -0800 |
| commit | c9342de5bd708d309cd0df1e65fe668ecbb9a16a (patch) | |
| tree | 38a76d878f93dc2d3ca18a957b2929bac7aca433 /2ner.cginc | |
| parent | a54b415ab89302cf1f74f78360595ec0eff8fc7b (diff) | |
Fur: add depth-based ao
Diffstat (limited to '2ner.cginc')
| -rw-r--r-- | 2ner.cginc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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<v2f> 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)
);
|
