diff options
| author | yum <yum.food.vr@gmail.com> | 2025-12-01 16:16:20 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-12-01 16:16:20 -0800 |
| commit | d1e5b99e569113b0458edb5b0d71601d52ce9c47 (patch) | |
| tree | 14a233b610f6dcf23f7d749d1fcad455526379c6 /2ner.cginc | |
| parent | 66ea1231a2ae1c830269d7ecc2cdce78fc8e9897 (diff) | |
add basic shadows feature, a la liltoon
Diffstat (limited to '2ner.cginc')
| -rw-r--r-- | 2ner.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|
