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

@@ -14,6 +14,7 @@ namespace Gameplay
public bool HasPublicContextDrawRenderersByType;
public bool HasPublicContextDrawRenderersByDesc;
public bool HasPublicContextDrawRenderersByDescAndSettings;
public bool HasPublicContextDrawSkybox;
public bool HasPublicContextDrawOpaqueRenderers;
public bool HasPublicContextDrawTransparentRenderers;
public bool HasPublicContextRecordOpaqueScenePhase;
@@ -149,6 +150,10 @@ namespace Gameplay
typeof(DrawingSettings)
},
null) != null;
HasPublicContextDrawSkybox =
contextType.GetMethod(
"DrawSkybox",
PublicInstanceMethodFlags) != null;
HasPublicContextDrawOpaqueRenderers =
contextType.GetMethod(
"DrawOpaqueRenderers",