mirror of
				https://github.com/maxartz15/SceneDebugViewer.git
				synced 2025-10-31 04:35:42 +01:00 
			
		
		
		
	Menu locations
This commit is contained in:
		| @@ -5,7 +5,7 @@ using UnityEngine; | |||||||
| namespace TAO.SceneDebugViewer.Editor | namespace TAO.SceneDebugViewer.Editor | ||||||
| { | { | ||||||
| #if UNITY_EDITOR | #if UNITY_EDITOR | ||||||
| 	[CreateAssetMenu(menuName = "SceneDebugViewer/ReplacementShaderSetup")] | 	[CreateAssetMenu(menuName = "ReplacementShaderSetup", order = 99999)] | ||||||
| 	public class ReplacementShaderSetupScriptableObject : ScriptableObject | 	public class ReplacementShaderSetupScriptableObject : ScriptableObject | ||||||
| 	{ | 	{ | ||||||
| 		[Header("GUI")] | 		[Header("GUI")] | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ namespace TAO.SceneDebugViewer.Editor | |||||||
| 		private static SceneDebugViewerWindow window = null; | 		private static SceneDebugViewerWindow window = null; | ||||||
| 		private static List<ReplacementShaderSetupScriptableObject> options = new List<ReplacementShaderSetupScriptableObject>(); | 		private static List<ReplacementShaderSetupScriptableObject> options = new List<ReplacementShaderSetupScriptableObject>(); | ||||||
|  |  | ||||||
| 		[MenuItem("Window/SceneDebugViewer")] | 		[MenuItem("Window/Analysis/SceneDebugViewer")] | ||||||
| 		static void Init() | 		static void Init() | ||||||
| 		{ | 		{ | ||||||
| 			Load(); | 			Load(); | ||||||
|   | |||||||
| @@ -41,8 +41,6 @@ Shader "Hidden/RS/TriPlanarUnlit" | |||||||
| 				fixed4 c = SampleTriPlanar(_RS_Texture, _RS_Texture_ST, i.worldPos, i.normal, _RS_Sharpness); | 				fixed4 c = SampleTriPlanar(_RS_Texture, _RS_Texture_ST, i.worldPos, i.normal, _RS_Sharpness); | ||||||
| 				c *= _RS_Color; | 				c *= _RS_Color; | ||||||
| 	            return c; | 	            return c; | ||||||
|  |  | ||||||
| 				//return fixed4(abs(i.normal.xyz), 1); |  | ||||||
| 			} | 			} | ||||||
| 			ENDCG | 			ENDCG | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user