forked from BilalY/Rasagar
19 lines
682 B
C#
19 lines
682 B
C#
using UnityEngine;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Experimental.Rendering;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
class VolumetricMenuItems
|
|
{
|
|
[MenuItem("GameObject/Rendering/Local Volumetric Fog", priority = CoreUtils.Priorities.gameObjectMenuPriority + 2)]
|
|
static void CreateLocalVolumetricFogGameObject(MenuCommand menuCommand)
|
|
{
|
|
var parent = menuCommand.context as GameObject;
|
|
var localVolumetricFog = CoreEditorUtils.CreateGameObject("Local Volumetric Fog", parent);
|
|
localVolumetricFog.AddComponent<LocalVolumetricFog>();
|
|
}
|
|
}
|
|
}
|