Skip to content

Wrong shadows orientation and position when billboarding is used #49

@Rezi

Description

@Rezi

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions