GLTFLoader: Fix U8/U16 skinning weights
Before this change, U8/U16 skinning weights didn't work - we attempted to normalize the skinning weights, but normalizeSkinWeights doesn't work for normalized integer data; it would divide weights by 255/65535 which would usually result in weights equal to 0. It's not *actually* necessary to normalize weights except to handle some models that violate the spec (that says that weights need to add up to 1). For this reason it seems fair to limit the scope of the normalization to just unnormalized inputs.
Showing
想要评论请 注册 或 登录