Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

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

@TheNoswad

Description

@TheNoswad

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions