StrandedKitty / three-csm

☀️ Cascaded shadow maps (CSMs) implementation for Three.js
MIT License
296 stars 21 forks source link

Can this be used with PBR Gltf grounds? #38

Open kitaedesigns opened 8 months ago

kitaedesigns commented 8 months ago

Been trying to get this to work correctly on an imported GLTF mesh with PBR materials but doesn't seem to work as expected out of the box, wondering if it only works with planes like many other threejs shadow plane examples.

StrandedKitty commented 8 months ago

What three.js version are you using? There've been reports that three-csm doesn't work with three.js >=156 because something has changed in the strandard material implementation recently. This lib heavily relies on the way PBR a.k.a standard material shaders are implemented because it injects custom code into them.

kitaedesigns commented 8 months ago

Just updated to version r157.