bevy/crates/bevy_gltf
Jakob Hellermann cf221f9659 calculate flat normals for mesh if missing (#1808)
If the gltf loader encounters a mesh without normal attributes, it will duplicate the vertex attributes and compute flat normals, as defined by https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes:

> **Implementation Note**: When normals are not specified, client implementations should calculate flat normals.

![image](https://user-images.githubusercontent.com/22177966/113483243-bb204880-94a2-11eb-8fa1-c4828a4882c5.png)

Helps with #1802 

Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2021-04-15 21:06:49 +00:00
..
src calculate flat normals for mesh if missing (#1808) 2021-04-15 21:06:49 +00:00
Cargo.toml calculate flat normals for mesh if missing (#1808) 2021-04-15 21:06:49 +00:00