diff options
Diffstat (limited to '2ner.cginc')
| -rw-r--r-- | 2ner.cginc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -430,8 +430,11 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace float4 lit = YumBRDF(i, l, pbr);
#endif
- lit.rgb += LightVolumeSpecular(pbr.albedo, pbr.smoothness, pbr.metallic,
- pbr.normal, l.view_dir, l.L00, l.L01r, l.L01g, l.L01b);
+ [branch]
+ if (_UdonLightVolumeEnabled) {
+ lit.rgb += LightVolumeSpecular(pbr.albedo, pbr.smoothness, pbr.metallic,
+ pbr.normal, l.view_dir, l.L00, l.L01r, l.L01g, l.L01b);
+ }
#if defined(_HARNACK_TRACING)
pbr.albedo = harnack_output.color;
|
