diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-30 10:14:43 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-30 10:14:43 -0700 |
| commit | c2f86fa940195d07e2c82614985b249418f0d4f6 (patch) | |
| tree | 3a060bc60e78f49be8cc6b6b6bcc1830e5219c03 /2ner.cginc | |
| parent | 4f786eba18f5535b1cba10ef0e4dc2a269dde705 (diff) | |
more brdf tweaks - mainly fix how reflectance is handled
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;
|
