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

Objects with vertex normals with a value of f32::NaN have broken lighting #1

Open
TheNoswad opened this issue Mar 24, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@TheNoswad
Copy link

Description:
When objects with vertex normals containing f32::NaN values are rendered, the object appears completely dark when lighting is enabled. This can make it difficult to identify and troubleshoot issues with objects that have incorrect vertex normals.

Steps to reproduce:

Setup and initialize LightManager as usual
Create an object with vertex normals containing f32::NaN values.

Expected result:

The object should be rendered with appropriate lighting.

Actual result:

The object appears completely dark, indicating that lighting is not being applied correctly.
@ElhamAryanpur ElhamAryanpur self-assigned this Aug 12, 2024
@ElhamAryanpur ElhamAryanpur added the bug Something isn't working label Aug 12, 2024
@ElhamAryanpur ElhamAryanpur added this to the 0.6.0 milestone Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants