// Unity texture to GLTF data // ConvertToRawColorWhenNormalValueIsCompressed public static Texture2D Export(Texture texture) { return(TextureConverter.Convert(texture, ColorSpace.Linear, null, Decoder)); }
// Unity texture to GLTF data // ConvertToRawColorWhenNormalValueIsCompressed public static Texture2D Export(Texture texture) { return(TextureConverter.Convert(texture, TextureImportTypes.NormalMap, null, Decoder)); }