revival/game/Assets/Scripts/Rendering/GlitchRenderPipelineInstanc...

24 lines
615 B
C#
Raw Normal View History

2021-04-24 03:06:03 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
2021-04-26 00:44:43 +02:00
using UnityEngine.Rendering.Universal;
2021-04-24 03:06:03 +02:00
public class GlitchRenderPipelineInstance : RenderPipeline
{
2021-04-26 00:44:43 +02:00
private readonly CameraRenderer _renderer = new CameraRenderer();
private ForwardRenderer _forwardRenderer;
public GlitchRenderPipelineInstance()
{
}
2021-04-24 03:06:03 +02:00
protected override void Render(ScriptableRenderContext context, Camera[] cameras)
{
2021-04-26 00:44:43 +02:00
foreach (var camera in cameras)
{
_renderer.Render(context, camera);
}
2021-04-24 03:06:03 +02:00
}
}