Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used with PBR Gltf grounds? #38

Open
kitaedesigns opened this issue Oct 24, 2023 · 2 comments
Open

Can this be used with PBR Gltf grounds? #38

kitaedesigns opened this issue Oct 24, 2023 · 2 comments

Comments

@kitaedesigns
Copy link

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
Copy link
Owner

StrandedKitty commented Oct 24, 2023

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
Copy link
Author

Just updated to version r157.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants