You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/soba/misc/README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This secondary entry point includes miscellaneous utilities and components for a
8
8
-[fbo](#fbo)
9
9
-[NgtsFBO](#ngtsfbo)
10
10
-[NgtsBakeShadows](#ngtsbakeshadows)
11
+
-[NgtsSoftShadows](#ngtssoftshadows)
11
12
-[depthBuffer](#depthbuffer)
12
13
-[NgtsSampler](#ngtssampler)
13
14
-[surfaceSampler](#surfacesampler)
@@ -133,6 +134,24 @@ A directive that bakes shadows in your scene. It sets `gl.shadowMap.autoUpdate`
133
134
<ngts-bake-shadows />
134
135
```
135
136
137
+
## NgtsSoftShadows
138
+
139
+
A directive that injects Percentage-Closer Soft Shadows (PCSS) into the scene. PCSS produces contact-hardening soft shadows where shadows are sharper near the contact point and softer further away, creating more realistic shadow effects.
140
+
141
+
This works by patching Three.js's shadow shader chunk at runtime. When the directive is destroyed or options change, it restores the original shader and recompiles affected materials.
0 commit comments