Skip to content

Commit 91ef84e

Browse files
raquelpecesEvergreen
authored andcommitted
Set color RenderTarget at InvokeOnRenderObjectCallbackPass
1 parent cf230bb commit 91ef84e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Packages/com.unity.render-pipelines.universal/Runtime/Passes/InvokeOnRenderObjectCallbackPass.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ internal void Render(RenderGraph renderGraph, TextureHandle colorTarget, Texture
4242
builder.AllowPassCulling(false);
4343
builder.SetRenderFunc((PassData data, UnsafeGraphContext context) =>
4444
{
45+
context.cmd.SetRenderTarget(data.colorTarget, data.depthTarget);
4546
context.cmd.InvokeOnRenderObjectCallbacks();
4647
});
4748
}

0 commit comments

Comments
 (0)