diff options
| author | yum <yum.food.vr@gmail.com> | 2025-08-08 15:56:32 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-08 15:56:32 -0700 |
| commit | 310dbc3a5393635e08faf78ddf47c57a37524d4b (patch) | |
| tree | e00098d68266ed5125b7f167df6583db96313b63 /brdf.cginc | |
| parent | 814d4cd95aebb79eabdf4ab31bf9fd7a093e9cef (diff) | |
use standard sh9 when light volumes not present
Diffstat (limited to 'brdf.cginc')
| -rw-r--r-- | brdf.cginc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -108,6 +108,7 @@ float4 brdf(Pbr pbr, LightData data) { } // Indirect +#if defined(FORWARD_BASE_PASS) if (true) { float remainder = 1.0f; #if defined(_CLEARCOAT) @@ -127,6 +128,7 @@ float4 brdf(Pbr pbr, LightData data) { float3 indirect_diffuse = Fd * remainder * pbr.albedo.xyz * data.indirect.diffuse; diffuse += indirect_diffuse; } +#endif return float4(diffuse + specular, 1); } |
