summaryrefslogtreecommitdiffstats
path: root/2ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-05-26 17:30:05 -0700
committeryum <yum.food.vr@gmail.com>2025-05-26 17:30:05 -0700
commited7bb9bbfad50edb88d16005618f2487434d61c4 (patch)
tree136f126d5e148c39f2e90dc520e6c5b7bfa81140 /2ner.cginc
parent5c54a56dd2416aaf82d7f5d56063c0a306574d19 (diff)
Add vrc light volumes, double decal slots
Light volumes: https://github.com/REDSIM/VRCLightVolumes
Diffstat (limited to '2ner.cginc')
-rw-r--r--2ner.cginc3
1 files changed, 3 insertions, 0 deletions
diff --git a/2ner.cginc b/2ner.cginc
index f37a45e..bac9ee6 100644
--- a/2ner.cginc
+++ b/2ner.cginc
@@ -280,6 +280,9 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
float4 lit = YumBRDF(i, l, pbr);
+ 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;
pbr.smoothness = 0;