Hello to all
Sorry, I disturbed you
This shader that I converted works well with iMouse, but I made every change in it and even got help from artificial intelligence. Unfortunately, I could not replace opticalflow with iMouse.
Can you help me fix this problem?
In buffera, mouse movement causes the cubes to rotate in the next buffer
In general, iMouse is used only in this buffer in this shader
Now, instead of using iMouse, we want to use the input texture sTD2DInputs[1]
This texture is actually the output of opticalflow, which shows the movement in the original movie with a black background as green, yellow, and red lines
I carefully observe the output of this buffer when iMouse is used
First, the mouse movement is not shown on the entire screen, but as a small image in the left and bottom corners of the screen
Second, in each direction the mouse moves, a color specific to that direction is drawn in that small image
When it is moved to the left, a green line is drawn, when it is moved to the right, a blue line is drawn, when it is moved up, a black line is drawn, and when it is moved down, a pink line is drawn. In my opinion, these colors make the direction of rotation of the cubes in the next buffer
I explained what I see