unavi-xyz / bevy_vrm

Bevy plugin for loading VRM avatars.
https://unavi-xyz.github.io/bevy_vrm/
Apache License 2.0
28 stars 5 forks source link

Better first person mesh culling #38

Closed kayhhh closed 1 month ago

kayhhh commented 1 month ago

When a first person mesh annotation is set to Auto, the VRM spec says to exclude individual vertices from the first person layer if they are weighted to the head bone. Currently we exclude the entire primitive. I started work on the more correct version https://github.com/unavi-xyz/bevy_vrm/tree/first-person-mesh, which requires creating a duplicate primitive with the removed vertices, but ran into wgpu panics from bevy.

kayhhh commented 1 month ago

fixed was dumb