refactor(rendering): split managed SRP layers and namespaces

This commit is contained in:
2026-04-19 02:38:48 +08:00
parent 612e3ba0b3
commit 7429f22fb1
46 changed files with 629 additions and 351 deletions

View File

@@ -0,0 +1,28 @@
using System;
using XCEngine;
using XCEngine.Rendering;
using XCEngine.Rendering.Renderer;
namespace XCEngine.Rendering.FirstParty
{
public class ForwardRendererData : ScriptableRendererData
{
public bool renderOpaque = true;
public bool renderSkybox = true;
public bool renderTransparent = true;
public ScriptableRendererFeature[] rendererFeatures =
Array.Empty<ScriptableRendererFeature>();
protected override ScriptableRenderer CreateRenderer()
{
return new ForwardRenderer(this);
}
protected override ScriptableRendererFeature[] CreateRendererFeatures()
{
return rendererFeatures ??
Array.Empty<ScriptableRendererFeature>();
}
}
}