Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On-Request Texture Buffers / Shader multi-pass & buffer access #8

Open
Stealthii opened this issue Oct 29, 2020 · 3 comments
Open

On-Request Texture Buffers / Shader multi-pass & buffer access #8

Stealthii opened this issue Oct 29, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Stealthii
Copy link

Stealthii commented Oct 29, 2020

I really appreciate the FFT source support. A feature I'd like to see is access to additional buffers we can write to, and retrieve in additional passes, in order to build more complex effects like the following examples:

https://www.shadertoy.com/view/3lKSz3
https://www.shadertoy.com/view/4tGfRd

In order to reduce development complexity, having access to the following on-request buffers would be a nice feature:

uniform texture2d image_previous;                 // previous frame of the source texture (same frame or blank if initialized)
uniform texture2d target_previous;                // shader output from the previous frame (as above)
uniform texture2d builtin_texture_source_<NAME>;  // selectable OBS source to use as additional texture

With access to additional sources, and previous pre-FX and post-FX texture buffers, most of the complex shader chains could be built using source mirrors and shader chaining.

@Limeth Limeth added the enhancement New feature or request label Oct 30, 2020
@HeyItsLollie
Copy link

I discovered tonight that I couldn't create my own uniform texture2d PreviousFrame; to attempt this manually, with SF+ returning the error "Textures as effect params are not yet supported." Hope this gets implemented soon!

@OvermindDL1
Copy link

It would also be very useful to be able to load a custom texture into the shader from an image file.

@MarioMey
Copy link

I also want plugin to have these features. I would want to recreate:
https://www.shadertoy.com/view/XsdGWj
https://www.shadertoy.com/view/Xs3GW2
Or maybe: https://www.shadertoy.com/view/Msd3W2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants