Ejemplo n.º 1
0
 private void DisplayCubeMapSettings()
 {
     if (textureShape == TextureImporterShape.TextureCube)
     {
         EditorGUI.indentLevel++;
         mappingType = (MappingType)EditorGUILayout.EnumPopup("Mapping", mappingType);
         if (textureType == TextureType.Default)
         {
             convolutionType = (TextureImporterCubemapConvolution)EditorGUILayout.EnumPopup("Convolution Type", convolutionType);
         }
         fixupEdgeSeams = EditorGUILayout.Toggle("Fixup Edge Seams", fixupEdgeSeams);
         EditorGUI.indentLevel--;
     }
 }
 public void Apply(TextureImporterSettings settings)
 {
     this.seamlessCubemap                    = settings.seamlessCubemap;
     this.mipmapBias                         = settings.mipmapBias;
     this.wrapMode                           = settings.wrapMode;
     this.wrapModeU                          = settings.wrapModeU;
     this.wrapModeV                          = settings.wrapModeV;
     this.wrapModeW                          = settings.wrapModeW;
     this.alphaIsTransparency                = settings.alphaIsTransparency;
     this.spriteMode                         = settings.spriteMode;
     this.spritePixelsPerUnit                = settings.spritePixelsPerUnit;
     this.spriteTessellationDetail           = settings.spriteTessellationDetail;
     this.spriteExtrude                      = settings.spriteExtrude;
     this.spriteMeshType                     = settings.spriteMeshType;
     this.spriteAlignment                    = settings.spriteAlignment;
     this.spritePivot                        = settings.spritePivot;
     this.spriteBorder                       = settings.spriteBorder;
     this.spriteGenerateFallbackPhysicsShape = settings.spriteGenerateFallbackPhysicsShape;
     this.aniso                    = settings.aniso;
     this.filterMode               = settings.filterMode;
     this.cubemapConvolution       = settings.cubemapConvolution;
     this.textureType              = settings.textureType;
     this.textureShape             = settings.textureShape;
     this.mipmapFilter             = settings.mipmapFilter;
     this.mipmapEnabled            = settings.mipmapEnabled;
     this.sRGBTexture              = settings.sRGBTexture;
     this.fadeOut                  = settings.fadeOut;
     this.borderMipmap             = settings.borderMipmap;
     this.mipMapsPreserveCoverage  = settings.mipMapsPreserveCoverage;
     this.mipmapFadeDistanceStart  = settings.mipmapFadeDistanceStart;
     this.alphaTestReferenceValue  = settings.alphaTestReferenceValue;
     this.convertToNormalMap       = settings.convertToNormalMap;
     this.heightmapScale           = settings.heightmapScale;
     this.normalMapFilter          = settings.normalMapFilter;
     this.alphaSource              = settings.alphaSource;
     this.singleChannelComponent   = settings.singleChannelComponent;
     this.readable                 = settings.readable;
     this.streamingMipmaps         = settings.streamingMipmaps;
     this.streamingMipmapsPriority = settings.streamingMipmapsPriority;
     this.npotScale                = settings.npotScale;
     this.generateCubemap          = settings.generateCubemap;
     this.mipmapFadeDistanceEnd    = settings.mipmapFadeDistanceEnd;
 }
Ejemplo n.º 3
0
 public TextureCubemapSettings(TextureImporterCubemapConvolution convolution, TextureImporterGenerateCubemap mode, bool seamless)
 {
     this.convolution = convolution;
     this.mode        = mode;
     this.seamless    = seamless;
 }