diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-24 18:00:57 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-24 18:00:57 -0800 |
| commit | 142805d05c999ab1c36cdecffcc305c66dd15feb (patch) | |
| tree | bac7e59f9ca610400fb5829ed2726ac0ca210fed /brdf.cginc | |
| parent | 7e060334a8af4bb47464903a0c09c76be8f0823a (diff) | |
Add light volumes specular
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); } |
