dfranx/SHADERed

How to create multi-pass shader?

hful opened this issue · 3 comments

hful commented

How to create a multi-pass shader such as https://www.shadertoy.com/view/MsGSRd. "Import shadertoy plugin" dosen't work on this kind of shader.

hful commented

I figured it out

I figured it out

@hful How did you manage to solve this? Please comment here to document this 🙂

Try to port this shader. You need two passes in the pipeline, in the first one set RT (render texture ? ) to window
,then your pass name; in the second pass in properties set RT to window and your first pass name.

In the Objects tab you should have a render texture and uncheck clear, right click and bind this texture to both passes.

I've ported that shader and it behaves similarly to the original, but I'm having trouble with others that use 3 or more passes.
It would be helpful if there was documentation on this subject.