32 lines
797 B
C#
32 lines
797 B
C#
using XCEngine;
|
|
using XCEngine.Rendering;
|
|
|
|
namespace XCEngine.Rendering.Universal
|
|
{
|
|
public sealed class DrawSkyboxPass : ScriptableRenderPass
|
|
{
|
|
public DrawSkyboxPass(
|
|
RenderPassEvent passEvent =
|
|
RenderPassEvent.RenderSkybox)
|
|
{
|
|
Configure(passEvent);
|
|
}
|
|
|
|
public void Configure(
|
|
RenderPassEvent passEvent)
|
|
{
|
|
renderPassEvent = passEvent;
|
|
}
|
|
|
|
protected override bool RecordRenderGraph(
|
|
ScriptableRenderContext context,
|
|
RenderingData renderingData)
|
|
{
|
|
return context != null &&
|
|
renderingData != null &&
|
|
renderingData.isMainSceneStage &&
|
|
context.DrawSkybox();
|
|
}
|
|
}
|
|
}
|