8k texture solution

//----------------how to get 8k psd normal map--------------------------------------------
//----------------download and install NVIDIA Texture Tools for Adobe Photoshop ----------
//----------------find the tools under filter menu in Photoshop --------------------------

//-----------1. save this as C# format----------------------------------------------------
//-----------2. import as Asset-----------------------------------------------------------
//-----------3. find the tools menu --> textsize
//-----------4. drag your 4k limited texture --> click apply --> got a 8k texture
//-----------5. delete the TexSize C# script before compiling the .exe
//----------------------------------------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEditor;

public class TexSize : EditorWindow {
 
 public Texture2D _tex;
 public GUILayoutOption[] par;
 
 [MenuItem("Tools/TexSize")]
 static void OpenWindow()
 {
 TexSize window = (TexSize)EditorWindow.GetWindow(typeof(TexSize));
 }
 
 void OnGUI()
 {
 GUILayout.Label("Base Settings", EditorStyles.boldLabel);
 _tex = (Texture2D)EditorGUILayout.ObjectField("L",_tex,typeof(Texture2D),false,par);
 if (GUILayout.Button("Apply", par))
 {
 string path = AssetDatabase.GetAssetPath(_tex);
 TextureImporter t = AssetImporter.GetAtPath(path) as TextureImporter;
 t.maxTextureSize = 8192;
 AssetDatabase.ImportAsset(path);
 }
 }
}
//----------------------------------------------------------------------------------------

Leave a Reply