diff --git a/Scripts/Format/glTF_VRM_Material.cs b/Scripts/Format/glTF_VRM_Material.cs index a7eeecfae..5f88974c0 100644 --- a/Scripts/Format/glTF_VRM_Material.cs +++ b/Scripts/Format/glTF_VRM_Material.cs @@ -131,7 +131,7 @@ namespace VRM case ShaderUtil.ShaderPropertyType.TexEnv: { - var texture = m.GetTexture(name) as Texture2D; + var texture = m.GetTexture(name); if (texture != null) { var value = textures.IndexOf(texture);