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

globalCompositeOperation #12

Closed
WeslleyDeSouza opened this issue Dec 7, 2019 · 5 comments
Closed

globalCompositeOperation #12

WeslleyDeSouza opened this issue Dec 7, 2019 · 5 comments

Comments

@WeslleyDeSouza
Copy link

is this now supported?

@jagenjo
Copy link
Owner

jagenjo commented Dec 8, 2019

no, I haven't figure out the equivalent of the globalcompositeoperation modes with the blend modes of opengl

@andrewdevcup
Copy link

What about creating custom shaders for it?

@jagenjo
Copy link
Owner

jagenjo commented Jul 20, 2021

thats not how global composite operation works, as it doesnt involve shaders but blending operations

@jagenjo jagenjo closed this as completed Jul 20, 2021
@andrewdevcup
Copy link

thats not how global composite operation works, as it doesnt involve shaders but blending operations

I'm not an expert at glsl programming, but i've always used shaders to do color math, i'm sure you can emulate almost all composite operations

@jagenjo
Copy link
Owner

jagenjo commented Jul 20, 2021

shaders are not allowed to read the destination pixel. it can be overpass by rendering all to a texture, but that makes it way slower.
there is a extension proposed to solve this but it is not supported yet by browsers.

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

3 participants