mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 15:08:02 -05:00
後方互換
This commit is contained in:
parent
90b78b1add
commit
5f2afbfbcf
|
|
@ -22,7 +22,8 @@ namespace VRM
|
|||
public static bool TryGetTextureFromMaterialProperty(GltfParser parser, glTF_VRM_extensions vrm, int materialIdx, string textureKey, out (SubAssetKey, TextureDescriptor) texture)
|
||||
{
|
||||
var vrmMaterial = vrm.materialProperties[materialIdx];
|
||||
if (vrmMaterial.shader == MToon.Utils.ShaderName && vrmMaterial.textureProperties.TryGetValue(textureKey, out var textureIdx))
|
||||
// 任意の shader の import を許容する
|
||||
if (/*vrmMaterial.shader == MToon.Utils.ShaderName &&*/ vrmMaterial.textureProperties.TryGetValue(textureKey, out var textureIdx))
|
||||
{
|
||||
var (offset, scale) = (new Vector2(0, 0), new Vector2(1, 1));
|
||||
if (TryGetTextureOffsetAndScale(vrm, materialIdx, textureKey, out var os))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user