vrm-c / UniVRM

UniVRM is a gltf-based VRM format implementation for Unity. English is here https://vrm.dev/en/ . 日本語 はこちら https://vrm.dev/
https://vrm.dev/en
MIT License
2.62k stars 423 forks source link

bake 時に 法線 normalize するべきでは? #2352

Open ousttrue opened 3 months ago

ousttrue commented 3 months ago

https://github.com/vrm-c/UniVRM/pull/2329#discussion_r1650872748

スケールを含むモデルを bake したときに 法線に大きさが反映されてしまう可能性?

ousttrue commented 3 months ago

https://docs.unity3d.com/ja/2019.4/ScriptReference/Matrix4x4.MultiplyVector.html

https://github.com/Unity-Technologies/UnityCsReference/blob/master/Runtime/Export/Math/Matrix4x4.cs#L323

スケールの影響ありそう