This commit is contained in:
Masataka SUMI
2024-08-03 02:45:54 +09:00
parent eea8b6937e
commit de9713a768

View File

@@ -136,7 +136,8 @@ namespace UniGLTF
if (texture != null)
{
material.SetTexture(kv.Key, texture);
SetTextureOffsetAndScale(material, kv.Key, kv.Value.Offset, kv.Value.Scale);
material.SetTextureOffset(kv.Key, kv.Value.Offset);
material.SetTextureScale(kv.Key, kv.Value.Scale);
}
}
@@ -174,11 +175,5 @@ namespace UniGLTF
return material;
}
public static void SetTextureOffsetAndScale(Material material, string propertyName, Vector2 offset, Vector2 scale)
{
material.SetTextureOffset(propertyName, offset);
material.SetTextureScale(propertyName, scale);
}
}
}