bevy/crates/bevy_render/src
devil ira 48ac955afd Fix loading non-TriangleList meshes without normals in gltf loader (#4376)
# Objective
Make it so that loading in a mesh without normals that is not a `TriangleList` succeeds.

## Solution
Flat normals can only be calculated on a mesh made of triangles.
Check whether the mesh is a `TriangleList` before trying to compute missing normals.

## Additional changes
The panic condition in `duplicate_vertices` did not make sense to me. I moved it to `compute_flat_normals` where the algorithm would produce incorrect results if the mesh is not a `TriangleList`.

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2022-03-31 20:43:01 +00:00
..
camera ParamSet for conflicting SystemParam:s (#2765) 2022-03-29 23:39:38 +00:00
color Add conversions from Color to u32 (#4088) 2022-03-08 00:46:03 +00:00
mesh Fix loading non-TriangleList meshes without normals in gltf loader (#4376) 2022-03-31 20:43:01 +00:00
primitives Faster view frustum culling (#4181) 2022-03-19 04:41:28 +00:00
render_graph bevy_render: Support removal of nodes, edges, subgraphs (#3048) 2022-03-21 23:58:37 +00:00
render_phase Compute Pipeline Specialization (#3979) 2022-03-23 00:27:26 +00:00
render_resource use error scope to handle errors on shader module creation (#3675) 2022-03-29 22:39:14 +00:00
renderer Use more ergonomic span syntax (#4246) 2022-03-18 04:19:21 +00:00
texture Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
view ParamSet for conflicting SystemParam:s (#2765) 2022-03-29 23:39:38 +00:00
lib.rs unsafeify World::entities_mut (#4093) 2022-03-30 23:52:45 +00:00
render_asset.rs Introduce SystemLabel's for RenderAssetPlugin, and change Image preparation system to run before others (#3917) 2022-03-29 19:44:45 +00:00
render_component.rs Obviate the need for RunSystem, and remove it (#3817) 2022-03-15 02:16:55 +00:00
settings.rs bevy_render: Use RenderDevice to get limits/features and expose AdapterInfo (#3931) 2022-02-16 21:17:37 +00:00