BITKit/Packages/Runtime~/Unity/Common/Scripts/URP/ScreenSpaceOutlines.cs

36 lines
1.4 KiB
C#
Raw Normal View History

2023-06-05 19:57:17 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
namespace BITKit
{
//public class ScreenSpaceOutlines : ScriptableRendererFeature
//{
// [System.Serializable]
// private class ViewSpaceNormalsTextureSettings { }
// private class ViewSpaceNormalsTexturePass : ScriptableRenderPass
// {
// private readonly RenderTargetHandle normals;
// public ViewSpaceNormalsTexturePass(RenderPassEvent renderPassEvent)
// {
// this.renderPassEvent = renderPassEvent;
// normals.Init("_SceneViewSpaceNormals");
// }
// public override void Configure(CommandBuffer cmd, RenderTextureDescriptor cameraTextureDescriptor)
// {
// cmd.GetTemporaryRT(normals.id, cameraTextureDescriptor, FilterMode.Point);
// }
// public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
// {
// throw new System.NotImplementedException();
// }
// public override void OnCameraCleanup(CommandBuffer cmd)
// {
// base.OnCameraCleanup(cmd);
// }
// }
// [SerializeField] private ViewSpaceNormalsTextureSettings ;
//}
}