summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-08-08 15:56:32 -0700
committeryum <yum.food.vr@gmail.com>2025-08-08 15:56:32 -0700
commit310dbc3a5393635e08faf78ddf47c57a37524d4b (patch)
treee00098d68266ed5125b7f167df6583db96313b63 /brdf.cginc
parent814d4cd95aebb79eabdf4ab31bf9fd7a093e9cef (diff)
use standard sh9 when light volumes not present
Diffstat (limited to 'brdf.cginc')
-rw-r--r--brdf.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/brdf.cginc b/brdf.cginc
index 2260c96..c2ebc22 100644
--- a/brdf.cginc
+++ b/brdf.cginc
@@ -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);
}