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

Resulting 3D Object doesn't react to lighting #89

Open
cyrilpreiss opened this issue Feb 2, 2023 · 2 comments
Open

Resulting 3D Object doesn't react to lighting #89

cyrilpreiss opened this issue Feb 2, 2023 · 2 comments

Comments

@cyrilpreiss
Copy link

Hi,
no matter what is the lighting (direction, color) the 3Dtiles object show exactly the same.
Any idea how to fix this ?
(using R3F)
Here for example with a red up directionallight:

WhatsApp Image 2023-02-02 at 12 13 45

@wanyanyan
Copy link

same problem here, is there any ideas?

@DerKorb
Copy link

DerKorb commented Apr 10, 2024

This is due to the face that the loader is using custom shaders that are missing all the magic threejs does in their shaders. You can add material: new PointsMaterial to the options then it will use a native threejs material that includes all stuff three does (clipping, lighting etc.)

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

3 participants