markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
911 stars 136 forks source link

Request: Support for read+write variable pairs #139

Open Asmageddon opened 1 year ago

Asmageddon commented 1 year ago

Even if it were to be something unwieldy like separate buffer0_in and buffer0_out variables, I would very, very much so like to request that. For both textures and other data types.

AntonPieper commented 1 year ago

What exactly do you mean by that?

Something like this?

uniform sampler2D backbuffer; // [bind = fragColor]
uniform sampler2D backbuffer2; // [bind = somethingElse]

out vec4 fragColor; // [output]
out vec2 somethingElse;

Or are you asking for a feature like ShaderToy's passes?

Asmageddon commented 1 year ago

Yes, exactly. Something that allows the transfer of information from one frame to the next.

Multiple passes would also be great to have, but that's not my current request.