forked from BilalY/Rasagar
24 lines
888 B
C#
24 lines
888 B
C#
using UnityEditor.SceneTemplate;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition
|
|
{
|
|
class HDRPBasicDxrScenePipeline : ISceneTemplatePipeline
|
|
{
|
|
void ISceneTemplatePipeline.AfterTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, Scene scene, bool isAdditive, string sceneName)
|
|
{ }
|
|
|
|
void ISceneTemplatePipeline.BeforeTemplateInstantiation(SceneTemplateAsset sceneTemplateAsset, bool isAdditive, string sceneName)
|
|
{ }
|
|
|
|
bool ISceneTemplatePipeline.IsValidTemplateForInstantiation(SceneTemplateAsset sceneTemplateAsset)
|
|
{
|
|
var hdrpAsset = HDRenderPipeline.currentAsset;
|
|
if (hdrpAsset == null)
|
|
return false;
|
|
return hdrpAsset.currentPlatformRenderPipelineSettings.supportRayTracing;
|
|
}
|
|
}
|
|
}
|