summaryrefslogtreecommitdiffstats
path: root/2ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-12-01 16:16:20 -0800
committeryum <yum.food.vr@gmail.com>2025-12-01 16:16:20 -0800
commitd1e5b99e569113b0458edb5b0d71601d52ce9c47 (patch)
tree14a233b610f6dcf23f7d749d1fcad455526379c6 /2ner.cginc
parent66ea1231a2ae1c830269d7ecc2cdce78fc8e9897 (diff)
add basic shadows feature, a la liltoon
Diffstat (limited to '2ner.cginc')
-rw-r--r--2ner.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/2ner.cginc b/2ner.cginc
index 39d0fa8..7cbc96f 100644
--- a/2ner.cginc
+++ b/2ner.cginc
@@ -478,7 +478,6 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
#if defined(FORWARD_BASE_PASS) || defined(FORWARD_ADD_PASS) || defined(OUTLINE_PASS) || defined(EXTRA_STENCIL_COLOR_PASS)
YumLighting l = GetYumLighting(i, pbr);
- //return float4(l.occlusion, l.occlusion, l.occlusion, 1);
#if defined(FORWARD_BASE_PASS) || defined(FORWARD_ADD_PASS)
applyMatcapsAndRimLighting(i, pbr, l);
@@ -487,6 +486,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
#endif
pbr.albedo.rgb = visualizeInFalseColor(pbr.albedo.rgb);
+ pbr.albedo.rgb = applyQuasiShadows(pbr.albedo.rgb, l);
#if defined(_UNLIT)
float4 lit = pbr.albedo;