Hi, we recently upgraded to Unity6 and migrated our Blur shader to RenderGraph.
I'm using KawaseBlur, so we are running multiple ping pong passes and want to increase the Offset parameter with each iteration.
Currently I'm doing the pingpong passes like this in RenderGraph
{
Shader.SetGlobalFloat(OffsetProp, data.Offset);
Blitter.BlitTexture(context.cmd, passData.Source, Vector2.one, data.BlurMaterial, 0);
});```
However, I've just come to realize, that the blitting is only QUEUED at this point, not actually performed.
This results in the Offset of the LAST queued render func to be used, not the one i've defined here.
What is the intended way to set material properties here?
The only thing I found to work so far would be to actually duplicate the Material a bunch of times, giving each one a separate Offset Property value. Is there a better approach? 😅 Thanks!