示例#1
0
 // 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));
 }