Open mousetail opened 3 years ago
Good call! This would be a welcome addition.
I think this should be labelled as C-Enhancement
rather than C-bug
as it's an addition / new thing, rather than something working incorrectly
From #6203, it looks like this is not planned, as it incurs additional costs that users may not necessarily want to pay if they are not using some rendering features.
IMO this can't be closed. It's still a major footgun though. bevy should show a warning with generated meshes similarly to #11854. Currently it only works with glTF scenes.
What problem does this solve or what need does it fill?
Normal maps are a pretty standard cheap way to make meshes look a bit better. Often when prototyping you use basic shapes, and it would be quite nice to test real materials on these shapes.
Error:
I checked the code and the issue seems to still exist in the current version of main.
What solution would you like?
The
From<Box> for Mesh
function should generate tangents in addition to normals and UV coordinates.What alternative(s) have you considered?
You could write your own box generator, and I will but I think this is a pretty basic feature.
Additional context
I could probably fix this myself and submit a MR if you think this is a worthwhile feature. No guarantees.