|
|
|
|
|
|
using UnityEngine.Rendering; |
|
|
|
using UnityEngine.Experimental.Rendering.HDPipeline; |
|
|
|
|
|
|
|
namespace UnityEditor.Experimental.Rendering { |
|
|
|
namespace UnityEditor.Experimental.Rendering |
|
|
|
{ |
|
|
|
public class VolumeTextureTool : EditorWindow |
|
|
|
public class DensityVolumeTextureTool : EditorWindow |
|
|
|
{ |
|
|
|
private Texture2D sourceTexture = null; |
|
|
|
private string assetPath; |
|
|
|
|
|
|
|
|
|
|
private static GUIContent windowTitle = new GUIContent("Create Volume Texture"); |
|
|
|
private static GUIContent windowTitle = new GUIContent("Create Density Volume Texture"); |
|
|
|
[MenuItem("Tools/HDRP Volumetric System/Create Volume Texture")] |
|
|
|
[MenuItem("Window/Rendering/Density Volume Texture Tool")] |
|
|
|
VolumeTextureTool window = (VolumeTextureTool)EditorWindow.GetWindow(typeof(VolumeTextureTool)); |
|
|
|
DensityVolumeTextureTool window = (DensityVolumeTextureTool)EditorWindow.GetWindow(typeof(DensityVolumeTextureTool)); |
|
|
|
window.titleContent = windowTitle; |
|
|
|
window.Show(); |
|
|
|
} |
|
|
|