mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
Merge pull request #1841 from Santarh/uvdir2
Invert UV rotation direction of MToon 1.0 import/export.
This commit is contained in:
commit
903cfde3f4
|
|
@ -154,9 +154,7 @@ namespace UniVRM10
|
|||
}
|
||||
// Speed unit Conversion
|
||||
const float rotationPerSecToRadianPerSec = Mathf.PI * 2f;
|
||||
// Coords conversion
|
||||
const float unityToGltfCoordsConversion = -1f;
|
||||
mtoon.UvAnimationRotationSpeedFactor = context.UvAnimationRotationSpeedFactor * rotationPerSecToRadianPerSec * unityToGltfCoordsConversion;
|
||||
mtoon.UvAnimationRotationSpeedFactor = context.UvAnimationRotationSpeedFactor * rotationPerSecToRadianPerSec;
|
||||
|
||||
// Texture Transforms
|
||||
var scale = context.TextureScale;
|
||||
|
|
|
|||
|
|
@ -226,9 +226,7 @@ namespace UniVRM10
|
|||
{
|
||||
// Speed unit Conversion
|
||||
const float radianPerSecToRotationPerSec = 1f / (Mathf.PI * 2f);
|
||||
// Coords conversion
|
||||
const float gltfToUnityCoordsConversion = -1f;
|
||||
yield return (MToon10Prop.UvAnimationRotationSpeedFactor.ToUnityShaderLabName(), uvAnimSpeedRotation.Value * radianPerSecToRotationPerSec * gltfToUnityCoordsConversion);
|
||||
yield return (MToon10Prop.UvAnimationRotationSpeedFactor.ToUnityShaderLabName(), uvAnimSpeedRotation.Value * radianPerSecToRotationPerSec);
|
||||
}
|
||||
|
||||
// UI
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user