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

How to use gl-transitions in pixijs? #216

Closed
xeoshow opened this issue Apr 23, 2024 · 1 comment
Closed

How to use gl-transitions in pixijs? #216

xeoshow opened this issue Apr 23, 2024 · 1 comment

Comments

@xeoshow
Copy link

xeoshow commented Apr 23, 2024

Hello,

Just would like to know how to integrate gl-transitions into pixijs?
I found in most of the transitions, it used getFromColor and getToColor methods, but just could not find where are the two methods defined.
Could you please kindly help? Thanks a lot.

@benoitlahoz
Copy link

You have to define your own, for example :

vec4 getFromColor(vec2 uv) {
  return texture2D(from, uv);
}

vec4 getToColor(vec2 uv) {
  return texture2D(to, uv);
}

@xeoshow xeoshow closed this as completed Jun 6, 2024
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

2 participants