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

Combine shaders? #193

Open
rolfb opened this issue May 29, 2024 · 0 comments
Open

Combine shaders? #193

rolfb opened this issue May 29, 2024 · 0 comments

Comments

@rolfb
Copy link

rolfb commented May 29, 2024

Not sure if this is the correct place to comment upon this, but was looking at the great video and it seems like the source code has been updated compared to what was shown.

Attempted to use this with a many images and FlashList, but the performance was terrible seemingly due to the nested components. Is there a good way to combine them so there's only one Shader-component but retaining the same effect?

My shady attempts to make multiple passes didn't work so well, perhaps because the mask needs to be applied before each blur pass?

<Fill>
<Shader
source={source}
uniforms={{
direction: vec(1, 0),
}}
>
<Shader
source={source}
uniforms={{
direction: vec(0, 1),
}}
>
{children}
{mask}
</Shader>

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

No branches or pull requests

1 participant