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

Fix spot lights imported from glTF files. #21

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

dasmysh
Copy link
Collaborator

@dasmysh dasmysh commented Jun 20, 2023

Spot lights currently only work correctly if they have a non-zero radius. When exported from glTF they always have a radius of 0.0f (non-point shapes are not supported there).
This PR adds some code to correctly handle spot lights with zero radius (similar to point lights with zero radius).

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

Successfully merging this pull request may close these issues.

4 participants