diff options
| author | yum <yum.food.vr@gmail.com> | 2025-04-08 17:52:52 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-04-08 17:52:52 -0700 |
| commit | 40c33d438afa036acfcbc58ca4078f25db1624f2 (patch) | |
| tree | 045d3d3b44e785ad7d8fbaaa2ec874585a5d9773 /yum_brdf.cginc | |
| parent | 2dfd6322587eb095a5a4f7b22d70e1abcc14d5e3 (diff) | |
Add static flag to limit fallback cubemap to metallic
Diffstat (limited to 'yum_brdf.cginc')
| -rw-r--r-- | yum_brdf.cginc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yum_brdf.cginc b/yum_brdf.cginc index 8b0d659..9e44626 100644 --- a/yum_brdf.cginc +++ b/yum_brdf.cginc @@ -82,9 +82,9 @@ float4 YumBRDF(v2f i, const YumLighting light, YumPbr pbr) { #if defined(_MATERIAL_TYPE_CLOTH_SUBSURFACE)
// No need to multiply by NoL when using subsurface scattering
- direct_cloth = (Fd + Fr * NoL_wrapped_d) * light.direct * _Cloth_Direct_Multiplier;
+ direct_cloth = (Fd + Fr * NoL) * light.direct * _Cloth_Direct_Multiplier;
#else
- direct_cloth = (Fd + Fr) * NoL_wrapped_d * light.direct * _Cloth_Direct_Multiplier;
+ direct_cloth = (Fd + Fr) * NoL * light.direct * _Cloth_Direct_Multiplier;
#endif
}
#endif
|
