-
Notifications
You must be signed in to change notification settings - Fork 20
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
Custom vertex shader #15
Comments
Hi @glebka100500 ! sorry I didn't notice the issue... Currently REACT-VFX only accepts fragment shaders. void main() {
vec2 uv = (gl_FragCoord.xy - offset) / resolution;
// scale
uv = (uv - 0.5) * 1.5 + 0.5;
// offset
uv.x += sin(time) * 0.3;
gl_FragColor = texture2D(src, uv);
} I think this covers most usecases, but if you have any ideas to do something cool with vertex shaders, please tell me again. |
Hi, I really like this package, easy to use and to set up, is there a possibility to use custom vertex shader, or at least include my own model matrix? I think it would be really helpful and will expand project's versatility
The text was updated successfully, but these errors were encountered: