public Texture2D GetImportTexture(Texture2D texture) { var converted = TextureConverter.Convert(texture, GLTFTextureType.Metallic, Import, null); TextureConverter.AppendTextureExtension(converted, m_extension); return(converted); }
public Texture2D GetImportTexture(Texture2D texture) { #if UNITY_WEBGL && !UNITY_EDITOR return(texture); #endif var mat = GetEncoder(); var converted = TextureConverter.Convert(texture, GLTFTextureType.Normal, null, mat); TextureConverter.AppendTextureExtension(converted, m_extension); return(converted); }