From d0c27e80cefa593641f3525ef23e7fc5631b136b Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 24 Jan 2026 16:54:26 -0800 Subject: Add anisotropic reflections --- yum_pbr.cginc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yum_pbr.cginc') diff --git a/yum_pbr.cginc b/yum_pbr.cginc index 6049b35..2b746d5 100644 --- a/yum_pbr.cginc +++ b/yum_pbr.cginc @@ -327,6 +327,10 @@ YumPbr GetYumPbr(v2f i, f2f f) { result.emission += glitter_albedo.rgb * glitter_albedo.a * _Glitter_Emission; #endif +#if defined(_ANISOTROPY) + result.binormal = normalize(cross(result.normal, i.tangent.xyz) * i.tangent.w); +#endif + return result; } -- cgit v1.2.3