Align managed raster RenderGraph authoring with URP
This commit is contained in:
@@ -46,12 +46,24 @@ namespace ProjectScripts
|
||||
ScriptableRenderContext context,
|
||||
RenderingData renderingData)
|
||||
{
|
||||
return context != null &&
|
||||
renderingData != null &&
|
||||
renderingData.isPostProcessStage &&
|
||||
RecordColorScaleFullscreenPass(
|
||||
context,
|
||||
new Vector4(1.15f, 0.95f, 1.05f, 1.0f));
|
||||
if (context == null ||
|
||||
renderingData == null ||
|
||||
!renderingData.isPostProcessStage ||
|
||||
!context.sourceColorTexture.isValid ||
|
||||
!context.primaryColorTarget.isValid)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return context
|
||||
.AddRasterPass("Project.PostProcessColorScale")
|
||||
.UseColorSource(context.sourceColorTexture)
|
||||
.SetColorAttachment(context.primaryColorTarget)
|
||||
.SetRenderFunc(
|
||||
rasterContext =>
|
||||
{
|
||||
})
|
||||
.Commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user