diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-23 23:14:14 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-23 23:14:14 -0800 |
| commit | 12da92ff5055748dbcfdb165310a7f83a84c2228 (patch) | |
| tree | 8214ebe0bb6a8326844ebdc4bcefc01a0e67b815 /pbr.cginc | |
| parent | ede8bbae3496315e5ef821d4c00cf04022a3d453 (diff) | |
Adjust how bent normal strength is applied
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x | pbr.cginc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -215,8 +215,9 @@ Pbr getPbr(v2f i) { pbr.normal = normalize(mul(normal_tangent, pbr.tbn)); #if defined(_BENT_NORMALS) - float3 bent_ts = UnpackNormal(_Bent_Normals_Map.Sample(aniso4_trilinear_repeat_s, uv_parallax * _Bent_Normals_Map_ST.xy + _Bent_Normals_Map_ST.zw)); - bent_ts.xy *= _Bent_Normals_Strength; + float3 bent_ts = UnpackNormal(_Bent_Normals_Map.Sample( + aniso4_trilinear_repeat_s, uv_parallax * _Bent_Normals_Map_ST.xy + + _Bent_Normals_Map_ST.zw)); pbr.bent_normal = normalize(mul(bent_ts, pbr.tbn)); #endif |
