I got a solution in my other question but I cant import a github thingy into my website all its giving me is errors. its this link GitHub - StrandedKitty/three-csm: ☀️ Cascaded shadow maps (CSMs) implementation for Three.js. i dont know how to really put in github things because im a beginner in three js.
The best answer will depend on your build environment.
Are you using,
- using CDN links or self hosting the threejs libs?
- bundling using webpack, parcel, et.al.
- using R3F?
Search for examples of using CSM
I never knew there was an official csm import for this, thanks.