feat(srp): add explicit skybox draw primitive

- add ScriptableRenderContext.DrawSkybox as a public main-scene draw primitive
- route default RecordScene and DrawSkyboxPass recording through explicit draw calls
- expose the new DrawSkybox API in the scriptable render context probe
This commit is contained in:
2026-04-20 23:02:49 +08:00
parent cd6f9aa4cf
commit 16788fec34
3 changed files with 15 additions and 5 deletions

View File

@@ -36,13 +36,13 @@ namespace XCEngine.Rendering
public bool RecordScene()
{
return RecordBeforeOpaqueInjection() &&
RecordOpaqueScenePhase() &&
DrawOpaqueRenderers() &&
RecordAfterOpaqueInjection() &&
RecordBeforeSkyboxInjection() &&
RecordSkyboxScenePhase() &&
DrawSkybox() &&
RecordAfterSkyboxInjection() &&
RecordBeforeTransparentInjection() &&
RecordTransparentScenePhase() &&
DrawTransparentRenderers() &&
RecordAfterTransparentInjection();
}
@@ -124,6 +124,12 @@ namespace XCEngine.Rendering
SceneRenderPhase.Skybox);
}
public bool DrawSkybox()
{
return RecordScenePhase(
SceneRenderPhase.Skybox);
}
public bool RecordTransparentScenePhase()
{
return RecordScenePhase(