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