I am trying to build a shader (my first one) which will require feedback. Before trying to implement what I need I decided to build the simplest possible feedback shader based on Mr.Benedikt example “difference_textures” copying the feedback trick from his other example “game_of_life”.
I created a new technique which simply does a bypass based on the feedback texture and much to my surprise the result is a dissolving scroll moving down and to the right.
First I thought the problem was related to the scale applied to the Shader and tried to tweak its value without success.
Now I rest clueless looking at the feedbacked texture scroll and dissolve into something useless for my purposes.
Here attached I send the patch, shader and textures. The technique I created is called “feedback”.
What am I doing wrong? how to make a feedback which results in a stable image?
Thanks in advance,
CrossfadeShader.rar (31.0 kB)