diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-30 14:37:18 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-30 14:37:18 -0700 |
| commit | 586f15513edd509f6ea7258eca52c1038024ac07 (patch) | |
| tree | 6a5d165c9ae2bc2118348e833e4008e769b12857 /yum_brdf.cginc | |
| parent | 2939d79ba66d1b67561143e57df346a3e55206c3 (diff) | |
Simplify wrapped lighting function, fix how NoL is used in brdf
Diffstat (limited to 'yum_brdf.cginc')
| -rw-r--r-- | yum_brdf.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yum_brdf.cginc b/yum_brdf.cginc index 67c425c..364a183 100644 --- a/yum_brdf.cginc +++ b/yum_brdf.cginc @@ -129,7 +129,7 @@ float4 YumBRDF(v2f i, const YumLighting light, YumPbr pbr) { float3 diffuseColor = computeDiffuseColor(pbr.albedo, pbr.metallic); // Fd_Burley already includes 1/PI, so multiply by PI to match Unity intensities - float3 Fd = diffuseColor * Fd_Burley(pbr.roughness, NoV, NoL, LoH) * PI; + float3 Fd = diffuseColor * Fd_Burley(pbr.roughness, NoV, NoL_wrapped_d, LoH) * PI; Fd *= light.attenuation * pbr.ao; // Multiply by PI to match Unity intensities (same as Filament's implementation) |
