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

Wrong shadows orientation and position when billboarding is used #49

Open
Rezi opened this issue Nov 21, 2024 · 0 comments
Open

Wrong shadows orientation and position when billboarding is used #49

Rezi opened this issue Nov 21, 2024 · 0 comments

Comments

@Rezi
Copy link

Rezi commented Nov 21, 2024

Hi, I am trying to use instancedSprite with shadows and billboarding. I am experiencing that the shadow is casted based on the light position, but the the rotation of the sprite from which the shadow is casted is incorrect (the shadow is calculated from a sprite facing the light). But the billboarded sprite is actually not facing the light. You can clearly see it in the example https://threlte.xyz/docs/reference/extras/instanced-sprite just turn billboarding on and start rotating the scene.
Is there any solution to this? Can I make it cast shadows based on the billboard position (roatation relative to light position)?

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

1 participant