refactor(srp): move urp shadow and prepass core blocks into renderer

This commit is contained in:
2026-04-21 16:43:56 +08:00
parent eb5b51ddb1
commit 1cb23cd178
10 changed files with 289 additions and 22 deletions

View File

@@ -283,13 +283,15 @@ namespace XCEngine.Rendering.Universal
private void ApplyInferredStandaloneStageRequests(
ScriptableRenderPipelinePlanningContext context)
{
if (HasQueuedPassForStage(
if (!context.HasExplicitShadowCasterStageConfiguration() &&
HasQueuedPassForStage(
CameraFrameStage.ShadowCaster))
{
context.RequestShadowCasterStage();
}
if (HasQueuedPassForStage(
if (!context.HasExplicitDepthOnlyStageConfiguration() &&
HasQueuedPassForStage(
CameraFrameStage.DepthOnly))
{
context.RequestDepthOnlyStage();