Hi, i want to implement simple Gaussian blur and i blur vertical and horizontal parts separately
in the second pass it seems my code uses the original texture instead from previous pass’s result

here’s my code:

[2103-gaussianblurpassquestion.txt|2103]

In the image below, as you can see the result is the combination of two passses

if you use two or more passes, shader’s parameters that are comes on pass input are the same for all passes. so you can’t change the _MainTex in one pass and use _MainTex with these changes in another pass. _MainTex comes without changes to the second pass. so you should use Blending between passes to combine results or pack all calculations to a sigle pass.

it’s a shader’s hardware limit. all shaders are executed in parralel threads so you can’t make sequential calculations

found the solution, simply use this: