Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions Runtime/StencilDebug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,7 @@ public override void RecordRenderGraph(RenderGraph renderGraph, ContextContainer
});
}

// 2. Compose.
// -> Compose stencil texture with scene.
using (var builder = renderGraph.AddRasterRenderPass<PassData>(ShaderPassName.Compose, out _, profilingSampler))
{
builder.UseTexture(debugHandle);
builder.SetRenderAttachment(resourceData.activeColorTexture, 0);

builder.AllowPassCulling(false);
builder.AllowGlobalStateModification(false);

builder.SetRenderFunc((PassData _, RasterGraphContext context) =>
{
Blitter.BlitTexture(context.cmd, debugHandle, new Vector4(1, 1, 0, 0), 0, false);
});
}
resourceData.cameraColor = debugHandle;
}
#endif
private RTHandle cameraDepthRTHandle;
Expand Down