Example #1
0
	void Goto(GUIType GUI,ShaderTransition.TransDir dir)
	{
		//if (GUI==GUIType.Presets)
		//GUI = GUIType.Layers;
		GUITrans.Start(dir);
		GUITransition = GUI;
		if (GUI == GUIType.Start)
		{
			StartNewTrans.Reset();
		}
	}
Example #2
0
	public static void LoadAssets(){
	
	if (SSSettings==null){
		SSSettings = (ShaderSandwichSettings)AssetDatabase.LoadAssetAtPath("Assets/Shader Sandwich/Internal/Editor/Shader Sandwich/SSSettings.asset",typeof(ShaderSandwichSettings));
		if (SSSettings==null){
			SSSettings = (ShaderSandwichSettings)ScriptableObject.CreateInstance(typeof(ShaderSandwichSettings));
			AssetDatabase.CreateAsset(SSSettings,"Assets/Shader Sandwich/Internal/Editor/Shader Sandwich/SSSettings.asset");
		}
	}
	
	if (GUITrans==null)
		GUITrans = new ShaderTransition();
	if (StartNewTrans==null)
		StartNewTrans = new ShaderTransition();
	//if (SCSkin==null)
	//	SCSkin = EditorGUIUtility.Load("Shader Sandwich/Misc/SCGUI.guiskin") as GUISkin;	
	if (UPArrow==null)
		UPArrow = EditorGUIUtility.Load("Shader Sandwich/Movement/UPArrow.fw.png") as Texture2D;
	if (DOWNArrow==null)
		DOWNArrow = EditorGUIUtility.Load("Shader Sandwich/Movement/DOWNArrow.fw.png") as Texture2D;
	if (QuestionMarkOff==null)
		QuestionMarkOff = EditorGUIUtility.Load("Shader Sandwich/Icons/QuestionMarkOff.png") as Texture2D;
	if (QuestionMarkOn==null)
		QuestionMarkOn = EditorGUIUtility.Load("Shader Sandwich/Icons/QuestionMarkOn.png") as Texture2D;
	if (LightBulbOff==null)
		LightBulbOff = EditorGUIUtility.Load("Shader Sandwich/Icons/LightBulbOff.fw.png") as Texture2D;
	if (LightBulbOn==null)
		LightBulbOn = EditorGUIUtility.Load("Shader Sandwich/Icons/LightBulbOn.fw.png") as Texture2D;	
	if (Warning==null)
		Warning = EditorGUIUtility.Load("Shader Sandwich/Icons/Warning.fw.png") as Texture2D;	
	if (ReloadIcon==null)
		ReloadIcon = EditorGUIUtility.Load("Shader Sandwich/Icons/Reload.fw.png") as Texture2D;	
	if (Plus==null)
		Plus = EditorGUIUtility.Load("Shader Sandwich/Movement/Plus.fw.png") as Texture2D;	
	if (Tick==null)
		Tick = EditorGUIUtility.Load("Shader Sandwich/Movement/On.fw.png") as Texture2D;
	if (Cross==null)
		Cross = EditorGUIUtility.Load("Shader Sandwich/Movement/Off.fw.png") as Texture2D;	
	if (CrossRed==null)
		CrossRed = EditorGUIUtility.Load("Shader Sandwich/Movement/Cross.fw.png") as Texture2D;	
	if (Banner==null)
		Banner = EditorGUIUtility.Load("Shader Sandwich/Icons/LineBannerPro.fw.png") as Texture2D;
	if (RightArrow==null)
		RightArrow = EditorGUIUtility.Load("Shader Sandwich/Movement/RightArrow.fw.png") as Texture2D;
	if (LeftArrow==null)
		LeftArrow = EditorGUIUtility.Load("Shader Sandwich/Movement/LEFTArrow.fw.png") as Texture2D;
	if (Literal==null)
		Literal = EditorGUIUtility.Load("Shader Sandwich/Resources/Literal.png") as Texture2D;
	if (PerlNoise==null)
		PerlNoise = EditorGUIUtility.Load("Shader Sandwich/Resources/PerlNoise.png") as Texture2D;
	if (BlockNoise==null)
		BlockNoise = EditorGUIUtility.Load("Shader Sandwich/Resources/BlockNoise.png") as Texture2D;
	if (GrabPass==null)
		GrabPass = EditorGUIUtility.Load("Shader Sandwich/Resources/GrabPass.png") as Texture2D;
	if (DepthPass==null)
		DepthPass = EditorGUIUtility.Load("Shader Sandwich/Resources/DepthPass.png") as Texture2D;
	if (CubistNoise==null)
		CubistNoise = EditorGUIUtility.Load("Shader Sandwich/Resources/CubistNoise.png") as Texture2D;
	if (CellNoise==null)
		CellNoise = EditorGUIUtility.Load("Shader Sandwich/Resources/CellNoise.png") as Texture2D;
	if (DotNoise==null)
		DotNoise = EditorGUIUtility.Load("Shader Sandwich/Resources/DotNoise.png") as Texture2D;
	if (KitchenCube==null)
		KitchenCube = EditorGUIUtility.Load("Shader Sandwich/Resources/KitchenCube.png") as Cubemap;
	if (BlackCube==null)
		BlackCube = EditorGUIUtility.Load("Shader Sandwich/Resources/BlackCube.png") as Cubemap;
	if (DayCube==null)
		DayCube = EditorGUIUtility.Load("Shader Sandwich/Resources/SSDaySky.exr") as Cubemap;
	if (SunsetCube==null)
		SunsetCube = EditorGUIUtility.Load("Shader Sandwich/Resources/SSSunsetSky.exr") as Cubemap;
	if (IconBase==null)
		IconBase = EditorGUIUtility.Load("Shader Sandwich/Icons/IconBase.png") as Texture2D;
	if (IconShell==null)
		IconShell = EditorGUIUtility.Load("Shader Sandwich/Icons/IconShell.png") as Texture2D;
	if (IconMask==null)
		IconMask = EditorGUIUtility.Load("Shader Sandwich/Icons/IconMask.png") as Texture2D;
	if (EditableOn==null)
		EditableOn = EditorGUIUtility.Load("Shader Sandwich/Icons/EditableOn.fw.png") as Texture2D;
	if (EditableOff==null)
		EditableOff = EditorGUIUtility.Load("Shader Sandwich/Icons/EditableOff.fw.png") as Texture2D;
	if (EyeClose==null)
		EyeClose = EditorGUIUtility.Load("Shader Sandwich/Icons/EyeClose.fw.png") as Texture2D;
	if (EyeOpen==null)
		EyeOpen = EditorGUIUtility.Load("Shader Sandwich/Icons/EyeOpen.fw.png") as Texture2D;
	if (AlphaOn==null)
		AlphaOn = EditorGUIUtility.Load("Shader Sandwich/Icons/Alpha.fw.png") as Texture2D;
	if (AlphaOff==null)
		AlphaOff = EditorGUIUtility.Load("Shader Sandwich/Icons/AlphaOff.fw.png") as Texture2D;
	if (Gear==null)
		Gear = EditorGUIUtility.Load("Shader Sandwich/Icons/Gear.fw.png") as Texture2D;
	if (GearLinked==null)
		GearLinked = EditorGUIUtility.Load("Shader Sandwich/Icons/GearLinked.fw.png") as Texture2D;

	//if (ShaderSandwich.Instance.OpenShader==null)
	if (EffectsList.Count==0)
		LoadPlugins();
	}