diff options
Diffstat (limited to 'brdf.cginc')
| -rwxr-xr-x | brdf.cginc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); } |
