summaryrefslogtreecommitdiffstats
path: root/brdf.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'brdf.cginc')
-rwxr-xr-xbrdf.cginc11
1 files changed, 11 insertions, 0 deletions
diff --git a/brdf.cginc b/brdf.cginc
index 058237b..47f3ccc 100755
--- a/brdf.cginc
+++ b/brdf.cginc
@@ -165,6 +165,17 @@ float4 brdf(Pbr pbr, LightData data) {
}
#endif
+#if defined(FORWARD_BASE_PASS)
+ {
+ [branch]
+ if (_UdonLightVolumeEnabled) {
+ specular += LightVolumeSpecular(pbr.albedo.xyz, pbr.smoothness,
+ pbr.metallic, pbr.normal, data.common.V, data.indirect.L00,
+ data.indirect.L01r, data.indirect.L01g, data.indirect.L01b);
+ }
+ }
+#endif
+
specular *= data.common.spec_ao;
return float4(diffuse + specular, 1);
}